# Remove header fields generated by http input plugin

**URL:** <https://discuss.elastic.co/t/remove-header-fields-generated-by-http-input-plugin/90108>\
**Category:** Logstash\
**Created:** [June 20, 2017, 1:59pm UTC](https://discuss.elastic.co/t/remove-header-fields-generated-by-http-input-plugin/90108 "2017-06-20T13:59:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc\_Aragones](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@Marc\_Aragones](https://discuss.elastic.co/u/Marc_Aragones)\
**Post date:** [June 20, 2017, 1:59pm UTC](https://discuss.elastic.co/t/remove-header-fields-generated-by-http-input-plugin/90108/1 "2017-06-20T13:59:52Z")

</div>

Hi,

When I use `http` input, Logstash adds the following fields to Elasticsearch:

- headers.http\_accept
- headers.content\_type
- headers.request\_path
- headers.http\_version
- headers.request\_method
- headers.http\_host:localhost
- headers.request\_uri
- headers.content\_length
- headers.http\_user\_agent

How can I remove all these fields starting with `headers.`?

---

<div class="post-metadata">

**Author:** ![Oozza](https://avatars.discourse-cdn.com/v4/letter/o/76d3ee/32.png) [@Oozza](https://discuss.elastic.co/u/Oozza)\
**Post date:** [June 20, 2017, 2:08pm UTC](https://discuss.elastic.co/t/remove-header-fields-generated-by-http-input-plugin/90108/2 "2017-06-20T14:08:05Z")

</div>

Hi,

This filter should remove them all. I am using similar filter to remove beats input specific fields.

```
mutate {
    remove_field => ["headers"]
}
```

---

<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:** [July 18, 2017, 2:08pm UTC](https://discuss.elastic.co/t/remove-header-fields-generated-by-http-input-plugin/90108/3 "2017-07-18T14:08:18Z")

</div>

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