# Sending authorization header to http input plugin

**URL:** <https://discuss.elastic.co/t/sending-authorization-header-to-http-input-plugin/231999>\
**Category:** Logstash\
**Created:** [May 11, 2020, 11:54am UTC](https://discuss.elastic.co/t/sending-authorization-header-to-http-input-plugin/231999 "2020-05-11T11:54:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mostafaelsayed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mostafaelsayed/32/82057_2.png) [@mostafaelsayed](https://discuss.elastic.co/u/mostafaelsayed)\
**Post date:** [May 11, 2020, 11:54am UTC](https://discuss.elastic.co/t/sending-authorization-header-to-http-input-plugin/231999/1 "2020-05-11T11:54:22Z")

</div>

I am using http input plugin to send an http request from postman with "Authorization" header but apparently logstash is not reading this header name

when i try to display headers field, "Authorization" header is not displayed

but if i change it to anything else like "authorization\_header" the header is being read and displayed

Could anyone tell me the reason for this?

I am using logstash 7.6.1

Here is the configuration :

```auto
        input {

              http {

                port => "5043"

              }

        }

        filter {

                ruby {

                    code => "puts 'request headers : ';

                            puts event.get('headers')"

                }
        }

        output {

                elasticsearch {

                    hosts => ["${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}"]

                    index => "test_index"

                }
        }

```

---

<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:** [June 8, 2020, 12:05pm UTC](https://discuss.elastic.co/t/sending-authorization-header-to-http-input-plugin/231999/2 "2020-06-08T12:05:40Z")

</div>

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