Is there a way to generate an Increment and Unique ID in logstash?

What I really want is a unique ID, but not UUID. Because UUID is too long, and I don't need the ID to be universally unique. Just being unique in my own server will be fine enough.

The UUID plugin is quite close to what I want, but I hope the return is an increment unique number. Is there any way to get this kind of ID?

Thanks.

Someone came up with an idea for this already.

But I think it's not possible from Elasticsearch.

Thanks so much, this is just what I want !

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.