# Ls there a processor in filebeat same as a prune filter in logstash?

**URL:** <https://discuss.elastic.co/t/ls-there-a-processor-in-filebeat-same-as-a-prune-filter-in-logstash/329940>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 13, 2023, 3:21pm UTC](https://discuss.elastic.co/t/ls-there-a-processor-in-filebeat-same-as-a-prune-filter-in-logstash/329940 "2023-04-13T15:21:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lilyyy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lilyyy/32/51129_2.png) [@lilyyy](https://discuss.elastic.co/u/lilyyy)\
**Post date:** [April 13, 2023, 3:21pm UTC](https://discuss.elastic.co/t/ls-there-a-processor-in-filebeat-same-as-a-prune-filter-in-logstash/329940/1 "2023-04-13T15:21:31Z")

</div>

Hello.

I want to get only specific fields in filebeat data. I know there is a prune filter in logstash config file but which one is same thing in filebeat config file processor?

I used include\_fields processor, but it doesn't working. The result was that all the fields were shown up.

Thank you.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [April 13, 2023, 3:25pm UTC](https://discuss.elastic.co/t/ls-there-a-processor-in-filebeat-same-as-a-prune-filter-in-logstash/329940/2 "2023-04-13T15:25:05Z")

</div>

> [@lilyyy](#):
>
> I used include\_fields processor, but it doesn't working. The result was that all the fields were shown up.

The processor is the `include_fields` to only include some fields or `drop_fields` to only drop some fields.

It is not clear why it doesn't work as you didn´t share your configuration or any other evidence of this.

Please share your `filebeat.yml` configuration and a sample of your message.

---

<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 11, 2023, 5:25pm UTC](https://discuss.elastic.co/t/ls-there-a-processor-in-filebeat-same-as-a-prune-filter-in-logstash/329940/3 "2023-05-11T17:25:16Z")

</div>

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