Hello,
How to show Tile Map with load CSV file include Longitude and Latitude?
And how to show out each split field in Kibana
I have write this script, It couldn't run well.
input {
file {
path => "/tmp/earthquake.csv"
start_position => "beginning"
}
}
filter{
csv{
separator => ","
columns => ["DateTime","Latitude","Longitude","Depth","Magnitude","MagType","NbStations","Gap","Distance","RMS","Source","EventID"]
}
mutate { convert => {"Latitude" => "float"} }
mutate { convert => {"Longitude" => "float"} }
mutate { rename => {"Latitude" => "[location][lat]"} }
mutate { rename => {"Longitude" => "[location][lon]"} }
mutate { convert => {"[location]" => "float" } }
mutate { convert => {"Depth" => "float"} }
mutate { convert => {"Magnitude" => "float"} }
mutate { convert => {"NbStations" => "integer"} }
}
output{
elasticsearch {
hosts => "192.168.232.135:9200"
action => "index"
index => "logstash-%{+dd.MM.YYYY}"
}
}
Thank you