# \[SOLVED\]How to remove agent.\* and ecs.version?

**URL:** <https://discuss.elastic.co/t/solved-how-to-remove-agent-and-ecs-version/183643>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 31, 2019, 2:29am UTC](https://discuss.elastic.co/t/solved-how-to-remove-agent-and-ecs-version/183643 "2019-05-31T02:29:35Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Duked](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@Duked](https://discuss.elastic.co/u/Duked)\
**Post date:** [June 4, 2019, 4:42pm UTC](https://discuss.elastic.co/t/solved-how-to-remove-agent-and-ecs-version/183643/7 "2019-06-04T16:42:12Z")

</div>

Ok in case this can help some people here it worked it was just some indent issues in the filebeat.yml file.

It works with the following processor definition:

```auto
processors:
  - drop_fields:
      fields: ["agent.ephemeral_id", "agent.hostname", "agent.id", "agent.type", "agent.version", "ecs.version", "input.type", "log.offset", "version"]

```

---

_[View the full topic](https://discuss.elastic.co/t/solved-how-to-remove-agent-and-ecs-version/183643)._
