vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
18.2k stars 1.6k forks source link

socket-udp mode not working #21837

Open sosop opened 2 days ago

sosop commented 2 days ago

A note for the community

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

jszwedko commented 2 days ago

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 commented 2 days ago

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:

pront commented 1 day ago

We are still lacking key info here.

taikula-8 commented 1 day ago

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