We are trying to stream Push-Notification-Service logs to elasticsearch, and we initially were able to
https://logstash-next.wikimedia.org/goto/02c8f00c4a4d36524e74d0f47b4796ef
But there are no logs after the 4th of Sept, even though the application is logging.
We found that elasticsearch has been unable to index:
https://logstash-next.wikimedia.org/goto/7ca65191c2e4fe0089d56c4353596e9f
[2020-09-04T14:16:52,000][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"logstash-2020.09.04", :_type=>"fcm_send_failed", :_routing=>nil}, 2020-09-04T14:16:49.719Z kubestage1002 500: fcm_send_failed], :response=>{"index"=>{"_index"=>"logstash-2020.09.04", "_type"=>"fcm_send_failed", "_id"=>"AXRZeiZoNoG2jwpw1wTA", "status"=>400, "error"=>{"type"=>"illegal_argument_exception", "reason"=>"[detail] is defined as an object in mapping [fcm_send_failed] but this name is already used for a field in other types"}}}}
How can we fix it? Thank you!