Parsing date_field with date plugin and set it as @timestamp

Hello all,

i am having problems trying to parse this date field and set as @timestamp

{
     "field_date" => "2020-09-08 0:00:00.0"
}

This try is not running

date {
    timezone => "UCT"
    match => ["field_date", "yyyy MM dd HH:mm:ss"]
    target => "@timestamp"
}

Regards

  date {
    timezone => "UCT"
    match => ["field_date", "yyyy-MM-dd H:mm:ss.s"]
    target => "@timestamp"
  }

The format needs to match your input.
2020-09-08 0:00:00.0
yyyy-MM-dd H:mm:ss.s

1 Like

Thanks aaron! i was on the moon

Best

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.