# Add sequential number

**URL:** <https://discuss.elastic.co/t/add-sequential-number/166632>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 31, 2019, 7:34pm UTC](https://discuss.elastic.co/t/add-sequential-number/166632 "2019-01-31T19:34:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenyphur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jenyphur/32/40735_2.png) [@jenyphur](https://discuss.elastic.co/u/jenyphur)\
**Post date:** [January 31, 2019, 7:34pm UTC](https://discuss.elastic.co/t/add-sequential-number/166632/1 "2019-01-31T19:34:45Z")

</div>

Hey there...is there a way to have Filebeats add a sequential number to our logs?

In some other services, we use log4j 2 to create a sequential number for us and cloud foundry picks it up and then we use it for sorting in our logs. Unfortunately we are not able to use log4j 2 for this service and would like to figure out if Filebeats can add it for us?

Or would it be possible in Logstash?

Thanks.

Jen

---

<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:** [February 28, 2019, 7:34pm UTC](https://discuss.elastic.co/t/add-sequential-number/166632/2 "2019-02-28T19:34:47Z")

</div>

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