-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adding support of SFlow drop packets #15375
Comments
Hi, Can you please look at using the inputs.netflow plugin instead. It does look to already support the extended gateway. Thanks |
Hey @powersj , Thanks for prompt response. I did look into that plug-in, but sadly I was getting errors for every packet I was receiving; hence, I switched to sflow plug-in, which worked quite nicely apart from missing this struct. What is the long-term goal in InfluxData? are you supporting both plug-ins or going to sunset one in a favour of another? Thanks, |
sflow is deprecated in favor of netflow. If you are getting errors please do let us know and we can take a look. |
Hey @powersj , understood. So, here is my issue with
When I send sFlow data to Telegraf, I see the following errors in the Telegarf log:
Thanks, |
@powersj will look into it... @akarneliuk could you please post the data after the |
Hey @srebhan , Thanks for looking into that one. I'm looking how I can anonymise the packet for compliance reasons. What I was able to detect by digging into pcap with sflowtool is that the packets causing problems are drop notifications: Which I believe raises an interesting difference in behaviour between sflow plugins and netflow plguins in Telegraf: sflow plugin ignnores things it cannot decode and decode the rest. The netflow throws an error. Perhaps, the later is more preferable (it would be nice though to have possibility (like flag or so ) to ignore problematic issues. Going back to original issue, do you think you can look into implementing drop notifications? Also if you can DM me your mail so I can share anonymised pcap. Best, |
@akarneliuk it would be nice if you could send me an anonymized dump of such a packet in this issue so I can create an unit-test from it. Alternatively, you can drop the non-redacted dump into a personal message on Slack (@ Sven Rebhan)... |
@akarneliuk please test the binary in PR #15396, available as soon as CI finished tests, and let me know if this works for you! |
Hey @srebhan, |
@akarneliuk please be aware that merging my required changes upstream (into the goflow2 library) might take some time, so do not expect this feature to land in v1.31.0 yet! |
@akarneliuk rebase the PR against the latest master to include additional fields for extended-gateway etc... |
@akarneliuk please test the binary in PR #15396 again after CI finished the build. Upstream has merged the required PRs and I would like to make sure that everything still works as intended. |
Use Case
Hey team,
I'm evaluating usage of SFlow to collect data from internet devices, where BGP information is crucial. Sflow v5 supports this information per their specification: https://sflow.org/SFLOW-STRUCTS5.txt
This information is missing however in input.sflow plugin.
Expected behavior
Telegraf parses struct extended_gateway and this information is available within tags along with already parsed structs
extended_router
andextended_switch
. SFlow plugin configurationActual behavior
This struct is currently not parsed and therefore information isn't available.
Additional info
No response
The text was updated successfully, but these errors were encountered: