# Removing fields from Index

**URL:** <https://discuss.elastic.co/t/removing-fields-from-index/301623>\
**Category:** Beats\
**Tags:** windows\
**Created:** [April 5, 2022, 11:15am UTC](https://discuss.elastic.co/t/removing-fields-from-index/301623 "2022-04-05T11:15:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Bndlr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bndlr/32/94658_2.png) [@Bndlr](https://discuss.elastic.co/u/Bndlr)\
**Post date:** [April 8, 2022, 5:56am UTC](https://discuss.elastic.co/t/removing-fields-from-index/301623/5 "2022-04-08T05:56:17Z")

</div>

Hey,

you have to change the following Block in your filebeat.yml if you don't want to get any Host Information at the log lines

```auto
processors:
  - add_docker_metadata:
  # - add_host_metadata: ~

```

( -add\_host\_metadata\_~ is commented out)

If you only want to remove special fields you have to add the the following to the proccessors Block in your filebeat.yml

```auto
processors:
  - drop_fields:
      fields: ["host.name", "ecs.version", "agent.version", "agent.type", "agent.id",]

```

Check also this out -\> [How to remove certain fields from filebeat index](https://discuss.elastic.co/t/how-to-remove-certain-fields-from-filebeat-index/241597)

---

_[View the full topic](https://discuss.elastic.co/t/removing-fields-from-index/301623)._
