# Change @timestamp to be an integer

**URL:** <https://discuss.elastic.co/t/change-timestamp-to-be-an-integer/104584>\
**Category:** Logstash\
**Created:** [October 19, 2017, 3:54pm UTC](https://discuss.elastic.co/t/change-timestamp-to-be-an-integer/104584 "2017-10-19T15:54:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![f1ccb489d33b33a0f12a](https://avatars.discourse-cdn.com/v4/letter/f/2bfe46/32.png) [@f1ccb489d33b33a0f12a](https://discuss.elastic.co/u/f1ccb489d33b33a0f12a)\
**Post date:** [October 19, 2017, 3:54pm UTC](https://discuss.elastic.co/t/change-timestamp-to-be-an-integer/104584/1 "2017-10-19T15:54:29Z")

</div>

hello every one,

i'm trying to use the logstash config file to set the timestamp to be an integer in an order.  
like, the first report to get in will 1, and the second will be 2 and so on.  
in my project there is no meaning for time as much as the order.

is there a way to do it? i have tried using the date filter like this:

filter {  
date {  
match =\> ["CL" ,"yyyyyy"]  
target =\> "@timestamp"  
}

---

<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:** [November 16, 2017, 3:54pm UTC](https://discuss.elastic.co/t/change-timestamp-to-be-an-integer/104584/2 "2017-11-16T15:54:34Z")

</div>

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