# Nginx proxy logstash

**URL:** <https://discuss.elastic.co/t/nginx-proxy-logstash/85344>\
**Category:** Logstash\
**Created:** [May 11, 2017, 8:01am UTC](https://discuss.elastic.co/t/nginx-proxy-logstash/85344 "2017-05-11T08:01:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nigdav007](https://avatars.discourse-cdn.com/v4/letter/n/e47774/32.png) [@nigdav007](https://discuss.elastic.co/u/nigdav007)\
**Post date:** [May 11, 2017, 8:01am UTC](https://discuss.elastic.co/t/nginx-proxy-logstash/85344/1 "2017-05-11T08:01:55Z")

</div>

Hay all

I am setting up and logstash server, but for extra security my manager wants me to put it behind an nginx proxy.

I got the logstash config sorted so that it will connect to localhost on an port only and send the logs to an text file (for testing)  
But when i try the host is being reported as localhost and not the server in question.

Any help is welcomed on this one

---

<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, 2017, 8:08am UTC](https://discuss.elastic.co/t/nginx-proxy-logstash/85344/2 "2017-06-08T08:08:22Z")

</div>

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