Hi All,
I have updated the filebeat and elk stack from 6.2.4 to 6.6.1 and ended up with the below error message in the logstash log.
"[2019-04-18T17:24:04,887][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"logstash-2019.04.18", :_type=>"doc", :routing=>nil}, #LogStash::Event:0x5376923c], :response=>{"index"=>{"_index"=>"logstash-2019.04.18", "_type"=>"doc", "_id"=>"uxpLMGoBeNmtE8up8rvR", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"object mapping for [host] tried to parse field [host] as object, but found a concrete value"}}}}"
I have seen below is the fix , but the probelm is I have 6 filter.conf file and not sure in which file to place it
filter {
mutate {
remove_field => [ "[host]" ]
}