# Logstash Persistent Variables

**URL:** <https://discuss.elastic.co/t/logstash-persistent-variables/194853>\
**Category:** Logstash\
**Created:** [August 12, 2019, 1:33pm UTC](https://discuss.elastic.co/t/logstash-persistent-variables/194853 "2019-08-12T13:33:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 12, 2019, 3:12pm UTC](https://discuss.elastic.co/t/logstash-persistent-variables/194853/2 "2019-08-12T15:12:28Z")

</div>

You can use a ruby filter as described [here](https://discuss.elastic.co/t/method-to-timestamp-my-logstash-events/135888/9). It requires '--pipeline.workers 1' and pipeline.java\_execution has to be false until [this](https://github.com/elastic/logstash/issues/10938) bug is fixed.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-persistent-variables/194853)._
