Hi,
i have a problem concerning the @timestamp.
So the timestamp should be the date from the logs and not the time filebeat read somthing into ELK.
Please find attached my Logs:
19.03.2018 19:50:55 Hostname : Message
19.03.2018 19:50:56 Hostname : Message
19.03.2018 19:50:56 Hostname : Message
My config from Logstash is the following:
filter {
if [fields][LogEvent] == "Schnittstellen" {
grok {
match => {"message" => "%{DATE:Datum} %{TIME:Uhrzeit} %{HOSTNAME:Hostname} :\ %{GREEDYDATA:message}"}
overwrite => ["message"]
}
date {
match => ["timestamp", ${DATE:Datum} ${TIME:Uhrzeit}]
target => ["@timestamp"]
}
}
}
I am trying to generate a timestamp from the fields DATE:Datum and TIME:Uhrzeit, but that seems to be bad formatting.
Thanks for some advice