Add colonne in CSV file

hello everyone , please i need ur help
i want add new columns in my logstash config file but i don't how do it ??
there is my config file ??

input {
beats  {
port => "5044"
}
}  

filter {

csv {
separator => ","
columns => ["chaine", "job", "date_plan", "statut", "date_debut", "date_fin", "serveur", "numero_passage", "application", "sous_application"]
skip_header => "true"

}

date {
match => [ "date_plan" , "YYYY-MM-dd" ]
timezone => "Europe/Paris"
}

date {
match => [ "date_debut" , "YYYY-MM-dd HH:mm:ss" ]
timezone => "Europe/Paris"
}

date {
match => [ "date_fin" , "YYYY-MM-dd HH:mm:ss" ]
timezone => "Europe/Paris"
}

mutate {
convert => { "numero_passage" => "integer" }
}


if [job] == "MNNATY0P99" {
mutate {
add_field  => { "domaine" => "Job  DE SYNCHRONISATION" }
}
}




}

output {
elasticsearch {
hosts => ["http://elasticsearch:9200"]
index => "a-%{+YYYY.MM.dd}"


}
stdout {
   codec => rubydebug
}
}

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