mutate {
remove_field => [ "timestamp", "beat", "input_type", "tags", "count", "@version", "log", "offset", "type", "@src_ip", "host"]
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
user => "logstash_internal"
password => "REMOVED"
index => "wazuh-alerts-3.x-%{+YYYY.MM.dd}"
document_type => "wazuh"
}
}
---------------------------------------------------------------
Here is some extras..
In prd (prof of concept) , I am doing everything the same with Wazuh 3.2 mins the addition of the cisco ASA logs.
For the asa, I have updated the wazuh-manager host syslog so save ASA logs to /var/log/remote_syslog.log
in the ossec.conf I have added this config to include the logs...
<localfile>
<log_format>syslog</log_format>
<location>/var/log/remote_syslog.log</location>
</localfile>
Looking at the JSON, I can see the winevtlog decoding as
predecoder":{"program_name":"WinEvtLog","timestamp":"2018 Aug 10 16:56:11"}
Looking at the JSON for the ASA it shows "predecoder":{"timestamp":"2018-08-10T11:57:07-04:00"}
The json for the ASA is getting into elasticsearh, but not the winevtlog...
Could this addition be hurting me in a Unpredictable manner.
Thanks Again..
Corey