Hi,
I want to change the @timestamp to the timestamp out of event.original or message. I don't know what I do wrong.
right now the @timestamp is the time where the filebeat logfile ist importet thru logstash into elasticsearch.
@timestamp: Feb 15, 2023 @ 10:36:22.692
event.original: 06-02-2023 13:10:58:034, INFO , ....
message: 06-02-2023 13:10:58:034, INFO , ...
in my sample.conf I try it with:
filter {
date {
match => [ "Event Time", "dd-MM-YYYY HH:mm:ss:SSS" ]
target => "@timestamp"
}
}
I think that's one of my problems or challenges. I entered Grok, but I suspect that this is where the error lies. I already apologize for my ignorance.
filter {
grok {
match => ["message", "%{SYSLOGBASE} %{GREEDYDATA:new_message}"]
}
date {
match => [ "Event Time", "dd-MM-YYYY HH:mm:ss:SSS" ]
target => "@timestamp"
}
}
Also, the message format is not going to match SYSLOGBASE. That expects %{MONTH} +%{MONTHDAY} %{TIME}, whereas the [message] field appears to match ISO8601.
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.