# How to send just one response header in Packetbeat?

**URL:** <https://discuss.elastic.co/t/how-to-send-just-one-response-header-in-packetbeat/61213>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [September 22, 2016, 8:25am UTC](https://discuss.elastic.co/t/how-to-send-just-one-response-header-in-packetbeat/61213 "2016-09-22T08:25:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KIVagant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kivagant/32/7182_2.png) [@KIVagant](https://discuss.elastic.co/u/KIVagant)\
**Post date:** [September 22, 2016, 8:25am UTC](https://discuss.elastic.co/t/how-to-send-just-one-response-header-in-packetbeat/61213/1 "2016-09-22T08:25:41Z")

</div>

Hello.

I want to catch the 'x-custom' header in logstash from packetbeat. In configuration I have "send\_headers" key, bit it is not working for response.

```
http:
    ...
    # send_all_headers: true # with this option I can see all headers, but I don't need them all
    send_headers: ["x-custom"] # this doesn't work
```

---

<div class="post-metadata">

**Author:** ![monica](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/monica/32/3696_2.png) [@monica](https://discuss.elastic.co/u/monica)\
**Post date:** [September 22, 2016, 10:43am UTC](https://discuss.elastic.co/t/how-to-send-just-one-response-header-in-packetbeat/61213/2 "2016-09-22T10:43:36Z")

</div>

`send_headers` should work for both response and request. What version of Packetbeat are you using? I have tried the latest Packetbeat version and it works just fine for me. Can you please make sure the HTTP request contains such a header? Thanks!

---

<div class="post-metadata">

**Author:** ![KIVagant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kivagant/32/7182_2.png) [@KIVagant](https://discuss.elastic.co/u/KIVagant)\
**Post date:** [September 22, 2016, 11:26am UTC](https://discuss.elastic.co/t/how-to-send-just-one-response-header-in-packetbeat/61213/3 "2016-09-22T11:26:34Z")

</div>

I have version 1.3.1. And yes, I can see the header in the response if send\_all\_headers option is on.  
Ok, if this option should work with a both way, I'll try to test it again.

---

<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, 2016, 8:25am UTC](https://discuss.elastic.co/t/how-to-send-just-one-response-header-in-packetbeat/61213/4 "2016-10-13T08:25:42Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
