Set custom @timestamp from fields not working

Hello all,

i need help setting @timestamp from fields, why date plugin is not parsing my custom fill_date correctly?

mutate {
    add_field => { "fill_date" => "%{FillDate} %{FillTime}" }
}

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

logstash output

{
     "FillDate" => "2020-11-10",
     "FillTime" => "10:30:33.286000",
     "fill_date" => "2020-11-10 10:30:33.286000",
     "@timestamp" => 2020-11-22T11:56:02.736Z
}

Try "yyyy-MM-dd HH:mm:ss.SSSSSS"

Thank you Badger!. I forgot to map every digit.

Regards

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