NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
20.88k stars 2.42k forks source link

External Nginx logging (potentially with Tabler WebUI based configuration) #945

Open phantomski77 opened 3 years ago

phantomski77 commented 3 years ago

Is your feature request related to a problem? Please describe. My problem is missing standardised external access to internal Nginx logs as these are not sent to stdout and stderr for subsequent Docker logging handling.

Why I think the change is needed: Any proxy is by design exposed to the unrelenting attacks on ports 80 and 443. While of course a good Nginx setup is capable of mitigting most of the risks (thank you!), it is more prudent to continuously monitor the traffic and based on that (for example http 3xx, 4xx and 5xx response status codes) update the firewall rules on the upstream router, for example by blocking the offending IPs.

Describe the solution you'd like I am using Graylog Centralised Log Management software to ingest monitoring data (mostly linux syslog and some UDP streams) from my servers and devices. Thanks to great Graylog functionality, I'm able to filter, categorise, (re)format and analyse these logs and produce minimalistic but meaningful outputs that massively narrow down the streams to just the most important data worth a manual look or ideally a scripted solution.

Current situation: As it stands at the moment, Nginx Proxy Manager's Docker log is pretty limited to basic system calls. While all the Nginx logs I need are indeed produced by Nginx under \data\logs inside the container and these are of course exposed through a persistent volume, they're not part of the main container log that could be subsequently configured and forwarded for ignestion using standard Docker Logging Drivers. I need to use a separate solution to read those files and forward them to Graylog.

I would like to:

Bonus in ideal world: Ideally, those would be configurable via GUI. For example on/off switch for each source log (default_host.log, proxy_host-x.log, default.log, ...) and 1 or more on/off switches for "targets" for those logs (Docker, GELF with IP/port, UDP with IP/port, etc)

Describe alternatives you've considered

Thank you very much for considering. Hopefully it is "just" a simple Nginx/Dockerfile configuration.

github-actions[bot] commented 3 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1:

pktiuk commented 3 weeks ago

👍

pktiuk commented 3 weeks ago

Any way of monitoring traffic (especially integrated into NginxProxyManager) would be very useful.