Hello,
I need convert a data field to date field. I am working in restore processed, where I get an old file and insert into elasticsearch by logstash.
I received a file with this date format [06/Jun/2022:13:20:01 -0300]. I've tried use many grok patern(SYSLOGTIMESTAMP, TIMESTAMP_ISO8601, DATESTAMP_EVENTLOG) any one work, only data or greedydata.
I parsed this information with this grok: [%{DATA:Data_Evento} -0300], I keep only date and hour. I didn't use -0300.
But I need to convert to date, because I use this information to make search.
I tried use date inside grok.
< date {
match => ["Data_Evento", Date]
target => "Data_Evento" />
But it didn't work.
Is there any grok timestamp format to resolved it ? Or I will need to make a patter_custom to resolve it ?
Regards,
Silas Muniz