# Put logstash behind httpd reverse proxy

**URL:** <https://discuss.elastic.co/t/put-logstash-behind-httpd-reverse-proxy/330916>\
**Category:** Logstash\
**Created:** [April 27, 2023, 7:54am UTC](https://discuss.elastic.co/t/put-logstash-behind-httpd-reverse-proxy/330916 "2023-04-27T07:54:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [April 27, 2023, 7:54am UTC](https://discuss.elastic.co/t/put-logstash-behind-httpd-reverse-proxy/330916/1 "2023-04-27T07:54:24Z")

</div>

Hi, Can i put logstash behind httpd reverse proxy and use /logstash sub path? I have filebeat installe d on windows in one VPC and logstash in a private vpc. So if i put logstash behind httpd Reverse proxy which has a public ip i can connect from filebeat to httpd. but in filebeat config when i use this code

```auto
output.logstash:
  # The Logstash hosts
  hosts: ["httpd_ip:80/logstash"]

```

I am getting this error when i use test output

```auto
{"log.level":"info","@timestamp":"2023-04-27T13:17:36.594+0530","log.logger":"add_cloud_metadata","log.origin":{"file.name":"add_cloud_metadata/add_cloud_metadata.go","file.line":106},"message":"add_cloud_metadata: hosting provider type detected as aws, metadata={\"cloud\":{\"account\":{\"id\":\"841773524416\"},\"availability_zone\":\"ap-south-1a\",\"image\":{\"id\":\"ami-0629500f751ea2bb5\"},\"instance\":{\"id\":\"i-0bf7a20925c81c13a\"},\"machine\":{\"type\":\"t2.2xlarge\"},\"provider\":\"aws\",\"region\":\"ap-south-1\",\"service\":{\"name\":\"EC2\"}}}","service.name":"filebeat","ecs.version":"1.6.0"}
    dial up... ERROR dial tcp: lookup tcp/80/logstash: getaddrinfow: The specified class was not found.

```

I want to connect to logstash from httpd ip:80/logstash is it possible?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [April 27, 2023, 2:06pm UTC](https://discuss.elastic.co/t/put-logstash-behind-httpd-reverse-proxy/330916/2 "2023-04-27T14:06:27Z")

</div>

> [@Neelam\_Zanvar](#):
>
> ```auto
> output.logstash:
> # The Logstash hosts
> hosts: ["httpd_ip:80/logstash"]
> 
> ```

I don't think this format is supported, you need to past just a host and a port, not a path.

---

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [April 28, 2023, 4:32am UTC](https://discuss.elastic.co/t/put-logstash-behind-httpd-reverse-proxy/330916/3 "2023-04-28T04:32:38Z")

</div>

is there any way i can do this?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [April 28, 2023, 12:10pm UTC](https://discuss.elastic.co/t/put-logstash-behind-httpd-reverse-proxy/330916/4 "2023-04-28T12:10:35Z")

</div>

> [@Neelam\_Zanvar](#):
>
> is there any way i can do this?

With a path no, only with host:port.

---

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [May 2, 2023, 10:48am UTC](https://discuss.elastic.co/t/put-logstash-behind-httpd-reverse-proxy/330916/5 "2023-05-02T10:48:36Z")

</div>

okay. Thank you.

---

<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:** [May 30, 2023, 10:49am UTC](https://discuss.elastic.co/t/put-logstash-behind-httpd-reverse-proxy/330916/6 "2023-05-30T10:49:25Z")

</div>

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