Syslog source has no received events metrics when the mode is UDP
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
I'm using Syslog source in UDP mode with internal metrics turned on. It turns out that the received events related metrics of the source like component_received_event_bytes_total and component_received_event_total are missing.
FYI, using Syslog source in TCP mode do have those received events related metrics.
Configuration
{
"type": "syslog",
"address": "0.0.0.0:514",
"mode": "udp",
"tls": {
"enabled": false
}
}
Version
vector 0.26.0 (x86_64-apple-darwin c6b5bc2 2022-12-05)
Debug Output
No response
Example Data
No response
Additional Context
No response
References
No response
@youtian001 I confirm this behavior. I have checked the source code of syslog source in udp mode - it doesn't send these metrics. I guess it's a bug and should be fixed.
I think the fix shouldn't be a difficult one - just add the required metrics in the corresponding places. The only possible caveat here - if the code is shared with something and it will interfere with other functionality. We will need to check it more carefully.
Hi team, any progress on this bug? thanks.
Hi team, any progress on this bug? thanks.
Not yet unfortunately, but happy to support a PR from anyone so motivated.
Hi team, is there any progress on this bug?
Thanks
Hi team, is there any progress on this bug?
Thanks
No updates unfortunately, as always happy to review a PR.