I need add field, and do value counter, how do it?

You need to hold state in Logstash, but it is not explicitly supported.

What is your purpose of using such incremental ids? Elasticsearch default _id is not enough?