ecs-logging-nodejs icon indicating copy to clipboard operation
ecs-logging-nodejs copied to clipboard

consider parsing Forwarded/X-Real-Ip/X-Forwarded-For headers to client.ip

Open trentm opened this issue 4 years ago • 0 comments

Currently helpers.formatHttpRequest mainly uses req.socket.remoteAddress for the "client.ip" ECS field. It could consider using some of the HTTP request headers (esp. X-Forwarded-For) to set this. If using Express, then req.ip is used which sometimes will use X-Forwarded-For, depending on user configuration.

trentm avatar Feb 08 '21 21:02 trentm