Hello everyone,
I have a column called "Date et heure" that is formatted as [dd/MM/YY HH:mm] (ie 04/12/2019 17:45),
I am using a date filter in order to treat this as a date when passing to ElasticSearch but it doesn't work, for example for "04/12/2019 17:45" it only loads "4",
Here is my config:
#######################################################
filter
{
csv
{
separator => ","
columns => ["Date et heure","Utilisateur","Code","Libelle evenement","Code retour","Application","Code site","Objet Start","Usage cache","Valeur avant modif","Valeur apres modif"]
}
mutate{
convert => {
"Date et heure" => "string"
"Utilisateur" => "string"
"Code" => "integer"
"Libellé évènement" => "string"
"Code retour" => "integer"
"Application" => "string"
"Code site" => "integer"
"Objet Start" => "string"
"Usage cache" => "string"
"Valeur avant modif" => "string"
"Valeur après modif" => "string"
}
#Gestion des accents
rename => { "Libelle evenement" => "Libellé évènement"
"Valeur apres modif" => "Valeur après modif" }
}
date {
match => [ "Date et heure", "dd/MM/YY HH:mm" ]
}
}
############################################################