Hi, I am trying to parse multiple csv with different columns based on autodetect_column_names => true argument. The main problem is that when I upload the data the columns get repeated and only the columns of the first csv are taking into account.
Does anyone know why this is happening and how to solve it?
input {
file {
path => "/home/user/Documents/data/*.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
csv {
separator => ","
skip_header => "true"
autodetect_column_names => true
autogenerate_column_names => true
}
}
output {
elasticsearch {
hosts => "http://localhost:9200"
index => "final_index"
}
stdout {}
}
Thanks