# Forward custom nginx header

**URL:** https://discuss.elastic.co/t/forward-custom-nginx-header/234485
**Category:** Beats
**Tags:** docker, filebeat
**Created:** [May 27, 2020, 8:13am UTC](https://discuss.elastic.co/t/forward-custom-nginx-header/234485 "2020-05-27T08:13:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![maiera](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@maiera](https://discuss.elastic.co/u/maiera)
#### Post date: [May 27, 2020, 8:13am UTC](https://discuss.elastic.co/t/forward-custom-nginx-header/234485/1 "2020-05-27T08:13:01Z")

</div>

Hey there,  
I am using the nginx module in filebeat to get the access and error logs into elasticsearch. I've added a custom header (X-Request\_Id) to my log output and would like also have that recognized.

I've seen the output.elasticsearch.headers seem to be something I could use, but all the examples I've found are rather static and not something to forward an existing header.

Is it possible to include a custom request header in the elasticsearch output?

Thanks in advance!

---

<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 24, 2020, 8:13am UTC](https://discuss.elastic.co/t/forward-custom-nginx-header/234485/2 "2020-06-24T08:13:03Z")

</div>

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