# HTTP output Plugin

**URL:** https://discuss.elastic.co/t/http-output-plugin/230729
**Category:** Logstash
**Created:** [May 1, 2020, 3:39pm UTC](https://discuss.elastic.co/t/http-output-plugin/230729 "2020-05-01T15:39:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![InfiniteLoops](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/infiniteloops/32/47144_2.png) [@InfiniteLoops](https://discuss.elastic.co/u/InfiniteLoops)
#### Post date: [May 1, 2020, 3:39pm UTC](https://discuss.elastic.co/t/http-output-plugin/230729/1 "2020-05-01T15:39:53Z")

</div>

One of my pipelines has a very simple format of a HTTP input plugin where the data is sent straight to a HTTP output plugin.

```auto
input { pipeline { address => "pipeline-name" } }

output {
    http {
         url => "address"
	 http_method => "post"
	 headers => ["key", "%{[headers][key]}"]

}
	  stdout { codec => rubydebug 
}

```

The one problem is that it is removing the headers info from the original HTTP input. I can manually add them like in the above for the key. Different data sets are sent through this all with different headers and I would like to keep on these headers when sending through the output. Is there an option to keep all of the headers from the input data?

Thanks

---

<div class="post-metadata">

### Author: ![InfiniteLoops](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/infiniteloops/32/47144_2.png) [@InfiniteLoops](https://discuss.elastic.co/u/InfiniteLoops)
#### Post date: [May 5, 2020, 3:42pm UTC](https://discuss.elastic.co/t/http-output-plugin/230729/2 "2020-05-05T15:42:45Z")

</div>

I guess this isn't an option. I was trying to think of ways to maybe write some Ruby code to dynamically add them in a filter within this pipeline. I am struggling to see how I could then dynamically add them in the headers part of the output.

---

<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 2, 2020, 3:42pm UTC](https://discuss.elastic.co/t/http-output-plugin/230729/3 "2020-06-02T15:42:52Z")

</div>

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