Hi,
I've got an issue with logstash/Elasticsearch...
I'm getting the messages in my logstash log:
[2018-09-07T02:00:01,438][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"logstash-2018.09.07", :_type=>"doc", :_routing=>nil}, #<LogStash::Event:0x6f2e913c>], :response=>{"index"=>{"_index"=>"logstash-2018.09.07", "_type"=>"doc", "_id"=>"Tg9UsWUBAQ_cKmP3D0NX", "status"=>400, "error"=>{"type"=>"illegal_argument_exception", "reason"=>"mapper [system.process.cpu.total.pct] cannot be changed from type [long] to [float]"}}}}
I'm getting it for the following metrics:
system.process.cpu.total.pct
system.core.irq.pct
system.load.1
system.diskio.iostat.write.request.per_sec
system.diskio.iostat.queue.avg_size
The issue appears to have happened on the index rollover @ 12:00am.
My setup has been running well for over 2 weeks but this is a surprise. It basically means that I'm not receiving any of the above process metrics which I need to be able to get process CPU usage on my application (I was due to give a talk today to my manager/team about how good ES is and show all the work I've been doing - but I've had to postpone until next week now). Although you can see the values in Kibana, you can't graph them. Like they aren't being seen by ES (similar to a field bigger than 1024 characters for example).
I've read a couple of similar topics but no one gives any details on how they resolved it. just a note on how they had to manually update their mappings. Why do you have to do this when nothing on the setup side has changed? If anyone has steps on how to do this I would be greatful to follow them.
Anyway, I'm using metricbeat outputing to a logfile, then filebeat takes that logfile and passes to logstash, then some minor parsing happens before sending onto ES. I'm happy to share my config files on request.
If i start a new index, the issue goes away (but then failed on the next new index!) and the metrics all come in ok, but that isn't a fix as it could go wrong again so I need to resolve this so I can use my original index again.
Can anyone help?
Versions:
metricbeat version 6.3.2 (amd64), libbeat 6.3.2
filebeat version 6.1.3 (amd64), libbeat 6.1.3
logstash 6.1.1
elasticsearch-6.3.2
Regards