Hello everyone,
i am uploading a csv file with the following code :
###############################################################################################################
input
{
file
{
path => "C:/Users/BEKRISO/KIBANA7.0.1/INPUT/9r_piste_audit.csv"
start_position => "beginning"
sincedb_path => "C:/Users/BEKRISO/KIBANA7.0.1/sincedb"
}
}
############################################################################################################################
filter
{
csv
{
separator => ","
columns => ["Date et heure","Utilisateur","Code","Libellé évènement","Code retour","Application","Code site","Objet Start","Usage cache","Valeur avant modif","Valeur après modif"]
mutate { convert => { "Date et heure" => "keyword" }}
mutate { convert => { "Utilisateur" => "keyword" }}
mutate { convert => { "Code" => "keyword" }}
mutate { convert => { "Libellé évènement" => "keyword" }}
mutate { convert => { "Code retour" => "keyword" }}
mutate { convert => { "Application" => "keyword" }}
mutate { convert => { "Code site" => "keyword" }}
mutate { convert => { "Objet Start" => "keyword" }}
mutate { convert => { "Usage cache" => "keyword" }}
mutate { convert => { "Valeur avant modif" => "keyword" }}
mutate { convert => { "Valeur après modif" => "keyword" }}
}
}
##############################################################################################################################
output
{
elasticsearch
{
hosts => "cas0000658713:9200"
index => "monbeaunode_1"
}
stdout {}
}
############################################################################################################################
when i run this code, i receive the following error :
[2019-05-29T16:50:13,482][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of #, => at line 23, column 10 (byte 673) after filter\r\n{\r\n\tcsv\r\n\t{\r\n\t\tseparator => ","\r\n\t\t\r\n\t\tcolumns => ["Date et heure","Utilisateur","Code","Libell├® ├®v├¿nement","Code retour","Application","Code site","Objet Start","Usage cache","Valeur avant modif","Valeur apr├¿s modif"]\r\n\t\t\r\n\t\tmutate ", :backtrace=>["C:/Users/BEKRISO/KIBANA7.0.1/logstash/logstash-core/lib/logstash/compiler.rb:41:in compile_imperative'", "C:/Users/BEKRISO/KIBANA7.0.1/logstash/logstash-core/lib/logstash/compiler.rb:49:in
compile_graph'", "C:/Users/BEKRISO/KIBANA7.0.1/logstash/logstash-core/lib/logstash/compiler.rb:11:in block in compile_sources'", "org/jruby/RubyArray.java:2577:in
map'", "C:/Users/BEKRISO/KIBANA7.0.1/logstash/logstash-core/lib/logstash/compiler.rb:10:in compile_sources'", "org/logstash/execution/AbstractPipelineExt.java:151:in
initialize'", "org/logstash/execution/JavaBasePipelineExt.java:47:in initialize'", "C:/Users/BEKRISO/KIBANA7.0.1/logstash/logstash-core/lib/logstash/java_pipeline.rb:23:in
initialize'", "C:/Users/BEKRISO/KIBANA7.0.1/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:36:in execute'", "C:/Users/BEKRISO/KIBANA7.0.1/logstash/logstash-core/lib/logstash/agent.rb:325:in
block in converge_state'"]}
can anyone pls tell me what is the problem?