# Logstash: is it possible to save documents in memory?

**URL:** <https://discuss.elastic.co/t/logstash-is-it-possible-to-save-documents-in-memory/58477>\
**Category:** Logstash\
**Created:** [August 19, 2016, 4:20pm UTC](https://discuss.elastic.co/t/logstash-is-it-possible-to-save-documents-in-memory/58477 "2016-08-19T16:20:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sen](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@sen](https://discuss.elastic.co/u/sen)\
**Post date:** [August 19, 2016, 4:20pm UTC](https://discuss.elastic.co/t/logstash-is-it-possible-to-save-documents-in-memory/58477/1 "2016-08-19T16:20:13Z")

</div>

Hello Folks,

I am trying to save data in memory that I would be able to retrieve quickly in my filter part. Indeed, when i receive new documents i want to retrieve former documents related in order to compute some new metrics.

Can anyone tell me if it is possible and if yes how could I achieve that ?

Thank you very much.

S

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 21, 2016, 7:38pm UTC](https://discuss.elastic.co/t/logstash-is-it-possible-to-save-documents-in-memory/58477/2 "2016-08-21T19:38:45Z")

</div>

Depending on the specifics there's no stock filter for doing this. The ones that come closest are probably the collate, elasticsearch, and translate filters.

---

<div class="post-metadata">

**Author:** ![sen](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@sen](https://discuss.elastic.co/u/sen)\
**Post date:** [August 22, 2016, 8:03am UTC](https://discuss.elastic.co/t/logstash-is-it-possible-to-save-documents-in-memory/58477/3 "2016-08-22T08:03:06Z")

</div>

Ok thank you for the information. I am looking at these options.  
I recently saw that there is an unofficial plugin 'memcached'. However, I don't know its performances.

---

<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:** [July 6, 2017, 4:42am UTC](https://discuss.elastic.co/t/logstash-is-it-possible-to-save-documents-in-memory/58477/4 "2017-07-06T04:42:21Z")

</div>

Closed on July 6, 2017, 4:42am UTC


