Hi,
I am having trouble getting Kibana to recognise my geo data as proper geo data which it can plot.
I have done lots of searching for the answer but I cannot seem to get the logstash.conf file to work. The time column acq is picked up a time but the geo is ignored. I have tried a few different variations from other posts but it is not working. I think it is as I need to map the geo or something but all examples for that I have seen are not showing the logstash conf file.
Help would be much appreciated!
input {
file {
path => "/home/ubuntu/subset.csv"
type => "core2"
start_position => "beginning"
}
}
filter {
csv {
columns => ["mmsi","lon","lat","sog","cog","hdg","acq","id","geo"]
separator => ","
}
if [id] == "id"{
drop {}
} else {
mutate {
convert => { "lon" => "float" }
convert => { "lat" => "float" }
}
mutate {
rename => {
"lon" => "[location][lon]"
"lat" => "[location][lat]"
}
}
mutate {
remove_field => [ "message", "host", "@timestamp", "@version" ]
}
geoip {
source => "[lat,lon]"
}
}
}
output {
elasticsearch {
action => "index"
host => "localhost"
index => "logstash-1"
workers => 1
}
stdout {
codec => rubydebug
#codec => dots
}
}