hi guys, I'm ELK 6.3.1 user.
I have question about geo_mapping in logstash.
I was using logstash .conf file for CSV file and Json template file. (was in 5.2.2)
Below is a part of configuration file.
input {
file {
path => "~/*.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
csv {
separator => ","
columns => [~, "HV_Lat", "HV_Lon", ~]
skip_empty_columns => true
remove_field => [~]
convert => {
~
"HV_Lat" => "float"
"HV_Lon" => "float"
~
}
}
date {
match => []
target => []
}
mutate { rename => {"HV_Lat" => "[location][lat]"}}
mutate { rename => {"HV_Lat" => "[location][lon]"}}
}
output {
elasticsearch {
hosts => "http://localhost:9000"
index => "x10_2018"
template=> "./template.json"
}
~
}
my template file "template.json" is below.
{
"mappings":
{
"*_2018":
{
"doc":
{
"properties":
{
"location":
{
"properties":
{
"lat":
{
"type": "float"
},
"location":
{
"type": "geo_point"
},
"lon":
{
"type": "float"
}
}
}
}
}
}
}
}
When I was logstash processing configure file with json template, I can make index on Kibana, but cannot mapping geo_point.
How am I mapping geo_point use template file?
(not mapping geo_point result)