i need to add a new column to my logstash file
i have to add a column that shows a date in all my lines exmpl : 2020-01-01
i don't get it
i tried this but it's not working
date {
match => [ "DATE", "2020-01-01" ]
target => "DATE"
}
help me please it's urgent
i'm asked to add a column that specify one certain samae date for all my lines
cuz i need to acess to that index with the date i specified
You could simply add a field DATE with the mutate filter (or any other filter) and than parse that added field with the date filter.
mutate {
add_field => {
"DATE" => "2020-01-01"
}
}
date {
match => [ "DATE", "yyyy-MM-dd" ]
target => "DATE"
}
ty it's working
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.