# Can I store the each filter outputs in elasticSearch?

**URL:** <https://discuss.elastic.co/t/can-i-store-the-each-filter-outputs-in-elasticsearch/106637>\
**Category:** Logstash\
**Created:** [November 7, 2017, 7:56am UTC](https://discuss.elastic.co/t/can-i-store-the-each-filter-outputs-in-elasticsearch/106637 "2017-11-07T07:56:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harim\_Tong](https://avatars.discourse-cdn.com/v4/letter/h/dc4da7/32.png) [@Harim\_Tong](https://discuss.elastic.co/u/Harim_Tong)\
**Post date:** [November 7, 2017, 7:56am UTC](https://discuss.elastic.co/t/can-i-store-the-each-filter-outputs-in-elasticsearch/106637/1 "2017-11-07T07:56:45Z")

</div>

e.g. the filters have 3 phases:  
1.store all the orignal messages;  
2.filter the validate data;  
[3.do](http://3.do) the business logic;  
I want to save all of the 3 phase results for debug and troubleshoot,is it possible? or only can I save the 3rd phase result?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 7, 2017, 8:07am UTC](https://discuss.elastic.co/t/can-i-store-the-each-filter-outputs-in-elasticsearch/106637/2 "2017-11-07T08:07:20Z")

</div>

You can setup a conditional clone that'd do this, you would need to add tags at each stage so you can activate the conditionals though.

---

<div class="post-metadata">

**Author:** ![Harim\_Tong](https://avatars.discourse-cdn.com/v4/letter/h/dc4da7/32.png) [@Harim\_Tong](https://discuss.elastic.co/u/Harim_Tong)\
**Post date:** [November 12, 2017, 11:34am UTC](https://discuss.elastic.co/t/can-i-store-the-each-filter-outputs-in-elasticsearch/106637/3 "2017-11-12T11:34:53Z")

</div>

OKay,I will try it,thanks for your help.

---

<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:** [December 10, 2017, 11:35am UTC](https://discuss.elastic.co/t/can-i-store-the-each-filter-outputs-in-elasticsearch/106637/4 "2017-12-10T11:35:26Z")

</div>

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