# Filter modules execution sequence

**URL:** <https://discuss.elastic.co/t/filter-modules-execution-sequence/178426>\
**Category:** Logstash\
**Created:** [April 25, 2019, 10:21am UTC](https://discuss.elastic.co/t/filter-modules-execution-sequence/178426 "2019-04-25T10:21:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alankrit\_Aman\_Mishra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alankrit_aman_mishra/32/43504_2.png) [@Alankrit\_Aman\_Mishra](https://discuss.elastic.co/u/Alankrit_Aman_Mishra)\
**Post date:** [April 25, 2019, 10:21am UTC](https://discuss.elastic.co/t/filter-modules-execution-sequence/178426/1 "2019-04-25T10:21:02Z")

</div>

In which sequence does the code present in the filter section is executed.

I think it is not being executed sequentially ie the Order in which it is written in the file.  
I know that mutate has its own order of execution which it follows.

Please share your thoughts, anything is appreciated.

---

<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:** [April 25, 2019, 1:42pm UTC](https://discuss.elastic.co/t/filter-modules-execution-sequence/178426/2 "2019-04-25T13:42:41Z")

</div>

Filters are executed in the order they are written. As you say, the execution of options within a mutate filter is fixed.

---

<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:** [May 23, 2019, 1:42pm UTC](https://discuss.elastic.co/t/filter-modules-execution-sequence/178426/3 "2019-05-23T13:42:45Z")

</div>

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