input{
file{
path => "C:\Users\shanks\Downloads\cars.csv"
start_position => "beginning"
sincedb_path=>"\dev/\null"
}
}
filter{
csv{
seperator => ","
columns =>["maker,"model","mileage","manufature_year","engine_displacement",
"engin_power","body_type","color_slung","stk_year","transmission","door_count",
"seat_count","fuel_type","date_created","date_last_seen","price_eur"]
}
mutate{convert => ["mileage","integer"]}
mutate{convert => ["price_eur","integer"]}
mutate{convert => ["engin_power","integer"]}
mutate{convert => ["door_count","integer"]}
mutate{convert => ["seat_count","integer"]}
}
output{
elasticsearch{
host=>"localhost:9200"
index=>"cars"
document_type=>"sold_cars"
}
stdout{}
}
logstash -f C:\Users\shanks\Downloads\cars.config