# Logstash 7.2 Filters and filter plugins execution order

**URL:** <https://discuss.elastic.co/t/logstash-7-2-filters-and-filter-plugins-execution-order/187908>\
**Category:** Logstash\
**Created:** [June 27, 2019, 7:16pm UTC](https://discuss.elastic.co/t/logstash-7-2-filters-and-filter-plugins-execution-order/187908 "2019-06-27T19:16:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexl](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Alexl](https://discuss.elastic.co/u/Alexl)\
**Post date:** [June 27, 2019, 7:16pm UTC](https://discuss.elastic.co/t/logstash-7-2-filters-and-filter-plugins-execution-order/187908/1 "2019-06-27T19:16:17Z")

</div>

Hello all!

Please, expand the concise documentation.  
What is the execution order which Logstash applies to many filters and their inner plugins?  
For example, I have this in logstash.conf:

> filter{  
> mutate1...  
> grok1...  
> }  
> filter{  
> grok2...  
> mutate2  
> }

What's the execution order?  
Thank you very much.

---

<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:** [June 27, 2019, 8:26pm UTC](https://discuss.elastic.co/t/logstash-7-2-filters-and-filter-plugins-execution-order/187908/2 "2019-06-27T20:26:56Z")

</div>

They are executed in the order they appear in the file -- mutate1 followed by grok1 followed by grok2 followed by mutate2

---

<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 25, 2019, 8:27pm UTC](https://discuss.elastic.co/t/logstash-7-2-filters-and-filter-plugins-execution-order/187908/3 "2019-07-25T20:27:02Z")

</div>

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