# Is sequence-numbers support merged in?

**URL:** <https://discuss.elastic.co/t/is-sequence-numbers-support-merged-in/132484>\
**Category:** Elasticsearch\
**Created:** [May 18, 2018, 11:53am UTC](https://discuss.elastic.co/t/is-sequence-numbers-support-merged-in/132484 "2018-05-18T11:53:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![psprint](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@psprint](https://discuss.elastic.co/u/psprint)\
**Post date:** [May 18, 2018, 11:53am UTC](https://discuss.elastic.co/t/is-sequence-numbers-support-merged-in/132484/1 "2018-05-18T11:53:49Z")

</div>

Hello,  
[there's Github issue](https://github.com/elastic/elasticsearch/issues/10708) about adding – can anyone correct me if I'm wrong – automatically generated numbers that do what in MySQL is done with column "id integer primary key autoincrement". Is that true, this support is merged and available?

I want to store log messages to elasticsearch. Such logs are ordered, so I think I need the "autoincrement"-like number. Is my approach correct, or should I use different technique to handle logs?

How to use \_seq\_no? I cannot catch a consistent view on it, and isn't sure if Github ticket is for the same thing.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 18, 2018, 12:07pm UTC](https://discuss.elastic.co/t/is-sequence-numbers-support-merged-in/132484/2 "2018-05-18T12:07:23Z")

</div>

Sequence numbers are at the operation level (not document level) in Elasticsearch and does not at all behave like automatically generated numbers/ids in relational databases. They are instead used to order and keep track of operations so replication and recovery can be made more efficient.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 15, 2018, 12:07pm UTC](https://discuss.elastic.co/t/is-sequence-numbers-support-merged-in/132484/3 "2018-06-15T12:07:34Z")

</div>

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