# Kibana' remoteAddress & userAgent

**URL:** <https://discuss.elastic.co/t/kibana-remoteaddress-useragent/111853>\
**Category:** Kibana\
**Created:** [December 14, 2017, 8:13pm UTC](https://discuss.elastic.co/t/kibana-remoteaddress-useragent/111853 "2017-12-14T20:13:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [December 14, 2017, 8:13pm UTC](https://discuss.elastic.co/t/kibana-remoteaddress-useragent/111853/1 "2017-12-14T20:13:24Z")

</div>

I'm looking at Kibana's logs and I'm seeing following:

> kibana11-custom | {"type":"response","@timestamp":"2017-12-14T16:31:29Z","tags":,"pid":1,"method":"get","statusCode":401,"req":{"url":"/api/status","method":"get","headers":{"host":"localhost:5601","user-agent":"Go-http-client/1.1","accept-encoding":"gzip"},"remoteAddress":"172.18.0.1","userAgent":"172.18.0.1"},"res":{"statusCode":401,"responseTime":97,"contentLength":9},"message":"GET /api/status 401 97ms - 9.0B"}

I have `nginx` in front of Kibana,

how do I fix `remoteAddress` and `userAgent`?

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [December 14, 2017, 10:00pm UTC](https://discuss.elastic.co/t/kibana-remoteaddress-useragent/111853/2 "2017-12-14T22:00:33Z")

</div>

That property is [set by Hapi](https://github.com/hapijs/hapi/issues/1210) and I don't think we can change it. Does your nginx proxy include an `x-forwarded-for` header? I'd expect it to show up in the headers section, but if not we could probably make that happen.

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [December 15, 2017, 9:19pm UTC](https://discuss.elastic.co/t/kibana-remoteaddress-useragent/111853/3 "2017-12-15T21:19:12Z")

</div>

@Bargs

I added following into my nginx configuration file:

> proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;

Thanks!

---

<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:** [January 12, 2018, 9:19pm UTC](https://discuss.elastic.co/t/kibana-remoteaddress-useragent/111853/4 "2018-01-12T21:19:13Z")

</div>

Closed on January 12, 2018, 9:19pm UTC

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