i want to convert mytimestamp to @timestamp
i merge two string field to mytimestamp field. now i want to convert this field to date & target to @timestamp.
My code:
add_field => {
"mytimestamp" => "%{filedate} %{MyTimeStamp}"
}
convert => { "mytimeStamp" => "date" }
}
date {
match => [ "mytimestamp", "MM-dd-yyyy HH:mm:ss,SSS" ]
target => "@timestamp"
}
getting logstash error on above change.
help me on this.