logstash-plugins / logstash-input-beats

Apache License 2.0
87 stars 81 forks source link

PROXY protocol support #290

Open praseodym opened 6 years ago

praseodym commented 6 years ago

Currently logstash-input-beats does not support the PROXY protocol, which is useful to register the origin’s IP address when Logstash is running behind a proxy (e.g. HAProxy or Nginx).

There is a generic tracking issue for Logstash: https://github.com/elastic/logstash/issues/4418

benvanstaveren commented 1 year ago

So it's been close to 5 years and beats input still does not seem to have proxy protocol support; documentation makes no mention of it. Can we get this, pretty please?

Meddeb-bilel commented 1 year ago

Hello did you find a solution of how to get the client IP if your logstash is behind a proxy?

without proxy and with this configuration of logstash, i got the ip of beats clients:

input { beats { port => "5000" } } filter { mutate { copy => {"[@metadata][ip_address]" => "[public_ip]"} } } output { stdout{} }

the problem is proxy_protocol is not exist in beats input :'( :'(