# Changing default configuration of Elastic Agent Integration to filter out events before ingestion

**URL:** <https://discuss.elastic.co/t/changing-default-configuration-of-elastic-agent-integration-to-filter-out-events-before-ingestion/343164>\
**Category:** Elastic Agent\
**Tags:** filebeat\
**Created:** [September 15, 2023, 9:38pm UTC](https://discuss.elastic.co/t/changing-default-configuration-of-elastic-agent-integration-to-filter-out-events-before-ingestion/343164 "2023-09-15T21:38:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sushant\_Bhatnagar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sushant_bhatnagar/32/123391_2.png) [@Sushant\_Bhatnagar](https://discuss.elastic.co/u/Sushant_Bhatnagar)\
**Post date:** [September 15, 2023, 9:38pm UTC](https://discuss.elastic.co/t/changing-default-configuration-of-elastic-agent-integration-to-filter-out-events-before-ingestion/343164/1 "2023-09-15T21:38:27Z")

</div>

Hello, I created an Elastic agent policy to attach it few hosts and while creating it - I checked the `Collect agent logs` checkbox under Agent Monitoring section.

![image](https://us1.discourse-cdn.com/elastic/original/3X/d/5/d5a8f66aad5d032bb9380a4a05e3f4606c1b089b.png)

Now in the events in discover tab, I see dataset as "elastic\_agent.filebeat" displayed and events are getting created. There are certain events that I would like to drop and not track as part of this agent integration. How can I drop those events with Elastic Agent Integration enabled and monitoring everything on the host by default. Is there a way to achieve this ?

I am asking since Elastic Agent Integration are automatically created when the policy is created and I could not find a way to drop events for the default Elastic Agent policy in the documentation. Any insights?

---

<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:** [October 13, 2023, 9:38pm UTC](https://discuss.elastic.co/t/changing-default-configuration-of-elastic-agent-integration-to-filter-out-events-before-ingestion/343164/2 "2023-10-13T21:38:27Z")

</div>

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