Hello everyone,
I am trying to load a CSV file with the following config :
###############################################################################################################
input
{
file
{
path => "C:/Users/BEKRISO/KIBANA7.0.1/INPUT/ESHMA_V2_9r_piste_audit.csv"
start_position => "beginning"
sincedb_path => "C:/Users/BEKRISO/KIBANA7.0.1/sincedb"
codec => plain{charset =>"UTF-8"}
}
}
############################################################################################################################
filter
{
csv
{
separator => ","
columns => ["Date et heure","Utilisateur","Code","Libelle evenement","Code retour","Application","Code site","Type de table","Objet Start","Usage cache","Valeur avant modif","Valeur apres modif","SDT"]
}
mutate{
convert => {
"Date et heure" => "string"
"Utilisateur" => "string"
"Code" => "integer"
"Libellé évènement" => "string"
"Code retour" => "string"
"Application" => "string"
"Code site" => "integer"
"Type de table" => "string"
"Objet Start" => "string"
"Usage cache" => "string"
"Valeur avant modif" => "string"
"Valeur après modif" => "string"
"SDT" => "string"
}
#Gestion des accents
rename => { "Libelle evenement" => "Libellé évènement"
"Valeur apres modif" => "Valeur après modif" }
#Suppression des carriage returns(\r) du dernier champs
gsub => [ "message", "[\r]", "" ]
}
date { match => [ "Date et heure", "dd/MM/YY HH:mm" ] }
}
##############################################################################################################################
output
{
elasticsearch
{
hosts => "cas0000658713:9200"
index => "monbeaunode_1"
}
stdout { codec => rubydebug }
}
and with the following mapping :
PUT monbeaunode_1/_mapping
{
"properties":{
"Date et heure":{
"type":"text"
},
"Utilisateur":{
"type":"keyword"
},
"Code":{
"type":"keyword"
},
"Libellé évènement":{
"type":"text"
},
"Code retour":{
"type":"keyword"
},
"Application":{
"type":"keyword"
},
"Code site":{
"type":"keyword"
},
"Type de table":{
"type":"keyword"
},
"Objet start":{
"type":"keyword"
},
"Usage cache":{
"type":"keyword"
},
"Valeur avant modif":{
"type":"text"
},
"Valeur après modif":{
"type":"text"
},
"SDT":{
"type":"keyword"
}
}
}
but data isn't loaded, when I check the fields contents in Kibana, I find only the name of any field like in the following picture :
Can anyone help me PLS,