# How to Apply Filter while Using Logstash Modules?

**URL:** <https://discuss.elastic.co/t/how-to-apply-filter-while-using-logstash-modules/166750>\
**Category:** Logstash\
**Created:** [February 1, 2019, 2:52pm UTC](https://discuss.elastic.co/t/how-to-apply-filter-while-using-logstash-modules/166750 "2019-02-01T14:52:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwjhou](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@jwjhou](https://discuss.elastic.co/u/jwjhou)\
**Post date:** [February 1, 2019, 2:52pm UTC](https://discuss.elastic.co/t/how-to-apply-filter-while-using-logstash-modules/166750/1 "2019-02-01T14:52:57Z")

</div>

I'm using Logstash ArcSight Module, one of Logstash Modules, to process my CEF data, which comes from Kafka.

However, I'd like to do manipulation with the data, such as:  
[Metadata from Kafka](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-kafka.html#_metadata_fields)  
[Filter "Mutate"](https://www.elastic.co/guide/en/logstash/current/plugins-filters-mutate.html)  
to add more information into the data and send it to Elasticsearch/Kibana.

Unfortunately, I can't use conf.d/\*.conf while any Logstash Module is applied.  
How to apply filter while using Logstash Modules?

---

<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:** [February 1, 2019, 6:30pm UTC](https://discuss.elastic.co/t/how-to-apply-filter-while-using-logstash-modules/166750/2 "2019-02-01T18:30:12Z")

</div>

I don't think you can modify the filters in a module. The idea is just to get you up and running looking at some basic data quickly.

There isn't much to the module. It's a kafka (or tcp) input with a cef codec, a couple of geoip filters, and an elasticsearch output. If you have gotten to the point you want to write additional filters, you might as well write the input and output too.

---

<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:** [March 1, 2019, 6:31pm UTC](https://discuss.elastic.co/t/how-to-apply-filter-while-using-logstash-modules/166750/3 "2019-03-01T18:31:43Z")

</div>

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