-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
SNMP input with tables appear to split some events into separate table rows for the same index. #16164
Comments
Hi @DanSheps! Thank you for reporting! I'm not sure if I fully understood this issue, could you please provide more context on the expected behaviour and the used pipeline's The SNMP table is mapped as an array by the For example, the following snmp event would be split into two events, one per per "aps" item: "aps" => [
[0] {
"index" => "1.2.1",
"1.3.6.1.2.1.1.9.1.2.1" => "1.3.6.1.6.3.11.2.3.1.1"
},
[1] {
"index" => "1.2.2",
"1.3.6.1.2.1.1.9.1.2.2" => "1.3.6.1.6.3.15.2.1.1"
}
] Nevertheless, we've an open issue with the "index" value that may be related to this case. My suggestion for now is to try it out with the new SNMP integration plugin, which uses the latest underline SNMP libraries and maybe already fixed the problem. Thank you! |
Thanks @edmocosta that looks like the exact same issue. I did capture some data from the output and what you get is something like this
And my appologies I was unaware there was a separate repo for plugins for logstash, which likely explains why I was unable to find any issues here. You could likely close this since I suspect the bug linked in the plugin repo is the same bug. |
Duplicate of logstash-plugins/logstash-integration-snmp#30 |
Logstash information:
Please include the following information:
Plugins installed:
JVM: Bundled
OS version (
uname -a
if on a Unix-like system): 3.10.0-1160.49.1.el7.x86_64 #1 SMP Tue Nov 30 15:51:32 UTC 2021 x86_64 x86_64 x86_64 GNU/LinuxDescription of the problem including expected versus actual behavior:
I am using the SNMP input plugin with SNMP tables querying the following mibs:
The full table config is:
When querying some of our access points, a few of the mib entries overflow into a new "index" object (same index for the table, but a new object within the table array).
This means that if I
split {}
aps, it results in 2 partial events instead of 1 full event. I would expect it would keep all indexed mibs together.This may be related to data size perhaps, however I cannot confirm. This only happens on 4 of the Wireless Access Points in the table list our of 489.
Steps to reproduce:
split {}
the table into separate eventsThe text was updated successfully, but these errors were encountered: