Based on the example documentation, it looks like you can use ranges as well. You may also be able to use regex or wildcard. I've not tried to get as granular as you are going so I don't really know what's possible.
Using eventcreate on windows to create an windows event_id of 999. I can see it in the debug logs and I can see it if I write it out to file without the filter but I CANNOT seem to get this rule to fire.
Any help would be appreciated.
if [type]=="wineventlog" and [event_id]=="999" {
file {
path => "/opt/logs/logstash/%{host}-eventid.json"
codec => "json_lines"
}
}
if [type]=="wineventlog" and "DC" in [tags] {
tcp {
host => "loghost"
port => "5142"
mode => "client"
codec => "json_lines"
}
Update: Found a reply from Magnus Bäck on another post. event_id is a numeric type 'm' so you are required to used a non string match.
The question is how can I match multiple values.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.