# Using two custom filters prevents one of them to be used

**URL:** <https://discuss.elastic.co/t/using-two-custom-filters-prevents-one-of-them-to-be-used/35030>\
**Category:** Logstash\
**Created:** [November 19, 2015, 9:34am UTC](https://discuss.elastic.co/t/using-two-custom-filters-prevents-one-of-them-to-be-used/35030 "2015-11-19T09:34:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isra](https://avatars.discourse-cdn.com/v4/letter/i/7ba0ec/32.png) [@Isra](https://discuss.elastic.co/u/Isra)\
**Post date:** [November 19, 2015, 9:34am UTC](https://discuss.elastic.co/t/using-two-custom-filters-prevents-one-of-them-to-be-used/35030/1 "2015-11-19T09:34:38Z")

</div>

I created two filters; `logstash-filter-one` and `logstash-filter-two`. When I tested `logstash-filter-one`, it worked just fine and created the fields I wanted it to. However, when I used `logstash-filter-two` alongside `logstash-filter-one`, only the fields created by `logstash-filter-two` showed up..

the following is my config file

```
input { ... }

filter {

one {
      process => "%{message}" #must create field called process_one
}

two {
      process => "%{message}" #must create field called process_two
}

}

output { ... }

```

Why aren't both `process_one` and `process_two` being created? Help please!!

thanks.

---

<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:** [November 19, 2015, 3:06pm UTC](https://discuss.elastic.co/t/using-two-custom-filters-prevents-one-of-them-to-be-used/35030/2 "2015-11-19T15:06:16Z")

</div>

What does the source code of these two plugins look like?

---

<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, 5:22am UTC](https://discuss.elastic.co/t/using-two-custom-filters-prevents-one-of-them-to-be-used/35030/3 "2017-07-06T05:22:11Z")

</div>

Closed on July 6, 2017, 5:22am UTC


