Hey there, my first topic here.
Wanted to ask some help because I can´t find a answer/solution for my problem.
So, I have a Logstash filter that copy the @timestamp filed to make Timestamp more friendly for elastalert.
My logstash filter:
Input into logstash: @timestamp: 2021-07-29T12:00:00.000Z
filter {
grok {
match => { "@timestamp" => "%{GREEDYDATA:logDATE}T%{NOTSPACE:logTIME}\.%{NOTSPACE}" }
mutate
{
add_field => { "elasticalert_timestamp" => "%{logDATE} %{logTIME}" } }
mutate
{
remove_field => [ "logDATE", "logTIME" ] }
}
}
Output of elasticalert_timestamp: 2021-07-29 12 :00:00
Kibana view of @timestamp: 2021-07-29T13:00:00.000Z
Today, I noticed that @timestamp and elasticalert_timestamp are 1h behind.
So in Kibana Index View I have it at 13:00 but on @timestamp json view is 12:00.. and I wanted to have the right time in elasticalert_timestamp (that is 13:00).