I am using logstash
to read the postgres
data using jdbc
input plugin and push to elastic
The data is coming properly and things seems to be working fine just for a small problem i.e.
My logs table has a field requesttimestamp
with datatype of timestamp
. Since there is a historical data and also to ensure that the timelines are based on the data and not the time of run, I am trying to set the value of @timestamp
with requettimestamp
.
the filter configuration is as follows:
{
match => ["requesttimestamp", "yyyy-MM-dd HH:mm:ss.SSS"]
}
but while running it is tagging it as _dateparsefailure
and using the system time as @timestamp
I also tried using the following format : ISO8601
but nothing seems to be working.
I am sure it is something simple but not able to put the finger to it.