Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socket-udp mode not working #21837

Open
sosop opened this issue Nov 20, 2024 · 5 comments
Open

socket-udp mode not working #21837

sosop opened this issue Nov 20, 2024 · 5 comments
Labels
type: bug A code related bug.

Comments

@sosop
Copy link

sosop commented Nov 20, 2024

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

Sinks is using socket-udp mode, after some time its not working anymore, after restarting vector the mode is working fine again. Please tell me what is going on and how to solve this problem.

Configuration

sources:
safety_log:
type: "socket"
mode: udp
address: 127.0.0.1:6604

transforms:
addmetadata:
type: remap
inputs: ["safety_log"]
source: |-
.id = "xxxx"

sinks:
console:
type: console
inputs:
- addmetadata
encoding:
codec: json

remote:
encoding:
codec: json
type: socket
inputs:
- addmetadata
mode: udp
address: test.com:4590

Version

0.37.0

Debug Output

No response

Example Data

No response

Additional Context

No response

References

No response

@sosop sosop added the type: bug A code related bug. label Nov 20, 2024
@jszwedko
Copy link
Member

Hi @sosop ,

Thanks for this report. It is going to be difficult to troubleshoot an issue like this without additional details. Do you mind filling in the other fields mentioned in the issue template? Even better if you can provide a reproduction case.

@sosop
Copy link
Author

sosop commented Nov 20, 2024

Hi @sosop ,

Thanks for this report. It is going to be difficult to troubleshoot an issue like this without additional details. Do you mind filling in the other fields mentioned in the issue template? Even better if you can provide a reproduction case.

thanks

sources:
safety_log:
type: "socket"
mode: udp
address: 127.0.0.1:6604

transforms:
addmetadata:
type: remap
inputs: ["safety_log"]
source: |-
.id = "xxxx"

sinks:
console:
type: console
inputs:
- addmetadata
encoding:
codec: json

remote:
encoding:
codec: json
type: socket
inputs:
- addmetadata
mode: udp
address: test.com:4590

@pront
Copy link
Member

pront commented Nov 20, 2024

We are still lacking key info here.

  • Do you see any warnings or errors?
  • How long are you running this config?
  • Did you check if the sockets are still open when this starts happening?
  • Do you have a sample source log?
  • You can also turn on inspect internal telemetry and see what's going on there

@taikula-8
Copy link

The vector service has been running for about a month or so, and from the log messages, there are no warnings or error logs, before restarting the vector service, we used the nc command to check the destination address and port, and it is fine. vector will there be a number of attempts again, and then found that the network is not available, and the subsequent direct deprecation of the sinks? vector's startup commands The startup commands for vector are as follows:

vector -w --allow-empty-config -C /etc/vector

@pront
Copy link
Member

pront commented Nov 25, 2024

Thank you, I appreciate the extra context!

Based on the new info, I don't have any guesses. It is quite challenging to get to the bottom of this since I cannot replicate your environment and it happens after running the process for a very long time.

The vector service has been running for about a month or so

Do you restart the process on an interval?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

4 participants