Instantly share code, notes, and snippets.

Embed
What would you like to do?
filter {
csv {
autodetect_column_names => true
convert => { "id" => "integer"
.....
"latitude" => "float"
"longitude" => "float"
}
}
mutate {
rename => {
"longitude" => "[location][lon]"
"latitude" => "[location][lat]"
}
convert => {
"[location]" => "geo_point"
}
}
if ([id] == "id") {
drop { }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment