I have worked on similar lines I m sharing my code check if this helps
input{
file{
path => "path of the file"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter{
csv{
separator => ","
columns => ["maker", "model", "mileage", "manufacture_year", "engine_displacement", "engine_power", "body_type", "color_slug", "stk_year", "transmission", "door_count", "seat_count", "fuel_type", "data_created", "date_last_seen", "price_eur"]
}
mutate {convert => ["mileage", "integer"]}
mutate {convert => ["price_eur", "float"]}
mutate {convert => ["engine_power", "integer"]}
mutate {convert => ["door_count", "integer"]}
mutate {convert => ["seat_count", "integer"]}
}
output{
elasticsearch {
hosts => "localhost"
index => "cars"
document_type => "sold_cars"
}
stdout{}
}
So this is basically a list of cars with all the various tags as mentioned it works fine try once following the same