# Filtering logic in elastic search output

**URL:** <https://discuss.elastic.co/t/filtering-logic-in-elastic-search-output/337922>\
**Category:** Elasticsearch\
**Created:** [July 8, 2023, 12:29am UTC](https://discuss.elastic.co/t/filtering-logic-in-elastic-search-output/337922 "2023-07-08T00:29:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Minika](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@Minika](https://discuss.elastic.co/u/Minika)\
**Post date:** [July 8, 2023, 12:29am UTC](https://discuss.elastic.co/t/filtering-logic-in-elastic-search-output/337922/1 "2023-07-08T00:29:07Z")

</div>

Hi, I am trying to apply a filter logic in OCP Logstash pipeline. My pipeline receive logs from filebeat which contain a fields tag named logtype(that states the type of log) My motive is to use the logtype value and send the log to its specific index.

---

<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:** [August 5, 2023, 12:29am UTC](https://discuss.elastic.co/t/filtering-logic-in-elastic-search-output/337922/2 "2023-08-05T00:29:48Z")

</div>

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