Hi,
I am using Ossec https://www.ossec.net/docs/ to log alerts locally to alerts.json which already has a timestamp in the log. Can I use this timestamp in the logstash output to elastic ?
The input is below. All my beats aggregate to logstash then split or direct events to SUMO, Elastic or whatever is needed.
{"timestamp":"2018-07-31T15:56:06.373-0400","rule":{"level":3,"description":"Windows: Service startup type was changed." ...., "blaa"}
filebeat.inputs:
- type: log
json.keys_under_root: true
json.add_error_key: true
json.overwrite_keys: true
enabled: true
paths:- /var/ossec/logs/alerts/alerts.json