Problem updating counter on elastic document

Resolved with two changes:

  1. I delete the "else" from logstash output, so in case with [action] == 'my action'
    elatsicsearch-output is performed twice.

  2. In the my_action-elasticsearch-output, I added the parameter:

retry_on_conflict => 10