Put logstash behind httpd reverse proxy

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

  # The Logstash hosts
  hosts: ["httpd_ip:80/logstash"]

I am getting this error when i use test output

{"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?

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

is there any way i can do this?

With a path no, only with host:port.

okay. Thank you.

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