Config field as date

I'm trying to import a file csv that in one of the fields has a field of time according to the above format

20200402 133001

Also attached is the definition in the file

filter {
csv {
separator => ","
columns => ["time","file type","Product name","Side","Test result","Machine NAME","Barcode","Barcode slave","Component Qty","NG Amount","NG Qty","Operator","Working Order","module number","location","Matiral NO","NG name","result"]
mutate {convert => ["Component Qty" , "integer"] }
mutate {convert => ["NG Amount" , "integer"] }
mutate {convert => ["NG Qty" , "integer"] }
date {
match => [ "time", "YYYYMMdd HHmmss"]}

Still, I see it as a text field in the system.
Thanks for the helpers

I moved the question to #logstash

Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:


This is the icon to use if you are not using markdown format:

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.
Please update your post.

By default a date filter parses the field you give it and overwrites [@timestamp]. If you want it to overwrite the [time] field then you need to set the target option

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