Hi Guys,
I am trying to plot the geo for my apache logs but somehow I am getting below error on kibana, can someone please help me on this error?
No Compatible Fields: The "apache-*" index pattern does not contain any of the following field types: geo_point
This is my logstash file
input {
# add necessary input parameters
file {
path => "/var/apache/access_log"
start_position => "beginning"
}
}
filter {
# for Apache Access logs
grok {
match => { "message" => "%{COMBINEDAPACHELOG}" }
}
# for Apache Access logs
grok {
match => { "message" => "%{EXTENDEDAPACHELOG}" }
patterns_dir => ["/etc/logstash/patterns"]
}
# for Apache Error logs
grok {
match => { "message" => "%{APACHEERRORLOG}" }
patterns_dir => ["/etc/logstash/patterns"]
}
date {
match => ["timestamp", "dd/MMM/YYYY:HH:mm:ss Z"]
remove_field => "timestamp"
}
useragent {
source => "agent"
target => "UA"
}
mutate {
convert => ["response","integer"]
convert => ["bytes","integer"]
convert => ["responsetime","integer"]
}
geoip {
source => "clientip"
target => geoip
add_field => [ "[geoip][coordinates]", "%{[geoip][longitude]}" ]
add_field => [ "[geoip][coordinates]", "%{[geoip][latitude]}" ]
}
mutate {
convert => [ "[geoip][coordinates]", "float" ]
}
}
output {
# add necessary output parameters
elasticsearch {
hosts => "192.168.5.15:9200"
index => "apache-logs-%{+YYYY.MM.dd}"
}
stdout
{
codec => rubydebug
}
}