# Access request header in plugin configuration

**URL:** <https://discuss.elastic.co/t/access-request-header-in-plugin-configuration/318642>\
**Category:** Logstash\
**Created:** [November 10, 2022, 10:08am UTC](https://discuss.elastic.co/t/access-request-header-in-plugin-configuration/318642 "2022-11-10T10:08:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhggw](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@dhggw](https://discuss.elastic.co/u/dhggw)\
**Post date:** [November 10, 2022, 10:08am UTC](https://discuss.elastic.co/t/access-request-header-in-plugin-configuration/318642/1 "2022-11-10T10:08:47Z")

</div>

Hi all,

we use the Http input plugin to process events via http request in Logstash. The Logstash version is 7.16.2.

With the http request we get a special http header, e.g.

`x-test-header: test-value`

We now want to reuse the value from this header in a reponse header. How can we access the value of the header?

```auto
input {
    http {
        ...
        response_headers => {
        "x-test-header" => "test-value"
        }
        ...
    }
}

```

Is it possible to access the value in the plugin configuration?

Best regards,  
Daniel

---

<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:** [December 8, 2022, 10:09am UTC](https://discuss.elastic.co/t/access-request-header-in-plugin-configuration/318642/2 "2022-12-08T10:09:19Z")

</div>

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