hi, I am retrieving SNMP data from our webcast servers. I would like to know how to process the results in a filter stage in logstash e.g
{
"httpClientCountGetUserQueryStr.1.1.1.1.3" => "liveoutside/smil:1234_camera_all.smil/playlist.m3u8",
"@version" => "1",
"httpClientCountGetUserQueryStr.1.1.1.1.144" => "liveoutside/1234_camera_720p/playlist.m3u8",
"fields" => {
"document_type" => "wowzasnmp"
},
"httpClientCountGetIsFirstChunk.1.1.1.1.3" => "118.185.62.42",
"@timestamp" => 2020-07-01T22:28:48.704Z,
"httpClientCountGetIsFirstChunk.1.1.1.1.144" => "118.141.203.207"
}
I could have a big number of httpClientCountGetIsFirstChunk & httpClientCountGetUserQueryStr not always in a 1 to 1 relationship as a client could demand several streams from the server.
Just for completeness this is how I collect data:
input {
snmp {
walk => [".1.3.6.1.4.1.46706.100.70.1.1.1.5",".1.3.6.1.4.1.46706.100.70.1.1.1.28"]
hosts => [{host => "udp:wowzaqa.domain.com/1611" community => "public" version => "2c" retries => 2 timeout => 1000}]
mib_paths => ["/usr/share/snmp/mibs/WOWZASTREAMINGENGINE.dic"]
oid_path_length => 6
add_field => {"[fields][document_type]" => "wowzasnmp"}
}
}
Thank you