Hi,
I using filebeat with elk stack 6.6.3
Logstash service crash when getting json log with remote address fo Geoip filter.
here is my configuration file:
input {
beats {
port => 5044
}
}
filter {
grok{
overwrite => ["message"]
}
json {
source => "message"
}
geoip {
source => "[host]"
}
date {
match => [ "timestamp", "dd/MMM/YYYY:HH:mm:ss Z" ]
locale => en
remove_field => "timestamp"
}
mutate{
convert => { "bytes" => "integer" }
remove_field => ["prospector","tags","@version","input","beat","log"]
}
}
output {
stdout {
codec => dots
}
elasticsearch {
hosts => ["http://localhost:9200"]
index => "logs-%{[verticle]}-%{[log_origin]}-log-%{[@metadata][version]}-%{+YYYY.MM.dd}"
}
}
I am getting the next error:
Exception in thread "[main]>worker0" java.lang.IllegalArgumentException: Expected input field value to be String or List type
at org.logstash.filters.GeoIPFilter.handleEvent(org/logstash/filters/GeoIPFilter.java:125)
can someone help me, what is wrong with this config? it used to work before..