# HTTP Protocol not sending header

**URL:** https://discuss.elastic.co/t/http-protocol-not-sending-header/27359
**Category:** Beats
**Tags:** packetbeat
**Created:** [August 14, 2015, 2:08am UTC](https://discuss.elastic.co/t/http-protocol-not-sending-header/27359 "2015-08-14T02:08:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![iemem15](https://avatars.discourse-cdn.com/v4/letter/i/edb3f5/32.png) [@iemem15](https://discuss.elastic.co/u/iemem15)
#### Post date: [August 14, 2015, 2:08am UTC](https://discuss.elastic.co/t/http-protocol-not-sending-header/27359/1 "2015-08-14T02:08:08Z")

</div>

Hi when sending info to elasticsearch I can't see the headers for the http protocol, Im using packet beats beta 2. I started with -d "httpdetailed" and I see the headers, but can't see them in elasticsearch  
I've configured de packetbeat.yml like this:

```
protocols:
  http:

    # Configure the ports where to listen for HTTP traffic. You can disable
    # the http protocol by commenting the list of ports.
    ports: [80, 8080, 8000, 5000, 8002, 5601]

    # Uncomment the following to hide certain parameters in URL or forms attached
    # to HTTP requests. The names of the parameters are case insensitive.
    # The value of the parameters will be replaced with the 'xxxxx' string.
    # This is generally useful for avoiding storing user passwords or other
    # sensitive information.
    # Only query parameters and top level form parameters are replaced.
    # hide_keywords: ['pass', 'password', 'passwd']
  send_response: true
  send_all_headers: true
  send_headers: ["User-Agent", "Cookie", "Set-Cookie"]
  split_coookie: true
  real_ip_header: "X-Forwarded-For"

```

send\_all\_headers

---

<div class="post-metadata">

### Author: ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)
#### Post date: [August 17, 2015, 9:54am UTC](https://discuss.elastic.co/t/http-protocol-not-sending-header/27359/2 "2015-08-17T09:54:49Z")

</div>

Unless this got broken while copy & pasting, the `send_all_headers: true` option needs to be under the http section, so you need to indent all of those options with another two spaces, like this:

```
protocols:
  http:

    # Configure the ports where to listen for HTTP traffic. You can disable
    # the http protocol by commenting the list of ports.
    ports: [80, 8080, 8000, 5000, 8002, 5601]

    # Uncomment the following to hide certain parameters in URL or forms attached
    # to HTTP requests. The names of the parameters are case insensitive.
    # The value of the parameters will be replaced with the 'xxxxx' string.
    # This is generally useful for avoiding storing user passwords or other
    # sensitive information.
    # Only query parameters and top level form parameters are replaced.
    # hide_keywords: ['pass', 'password', 'passwd']
    send_response: true
    send_all_headers: true
    split_coookie: true
    real_ip_header: "X-Forwarded-For"
```

---

<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 5, 2017, 9:58pm UTC](https://discuss.elastic.co/t/http-protocol-not-sending-header/27359/3 "2017-07-05T21:58:59Z")

</div>


