NginxProxyManager / nginx-proxy-manager

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

[Feature Request] Add goaccess program to the container, and auto implement the web facing page for proxy host logs. #302

Open stk21 opened 4 years ago

stk21 commented 4 years ago

No problem or issue. Added functionality.

Add goaccess https://goaccess.io/ to the container and auto implement proxy host logs monitoring.

jc21 commented 4 years ago

Thanks for the suggestion. The stance on these addon services, which can be opinionated, is that they should be additional docker containers that would use the logs from the NPM container. Having this built in will create overhead for those running NPM on their Pi's for example. In addition, some people might want an ELK stack, Grafana, influxDB or online logging service. There are existing docker images ready to handle most of those, so it doesn't make much sense to bake it in here.

If you require the log format or output location to be configurable for use with Gaccess, that's definitely an option.

NotExpectedYet commented 4 years ago

It already works with goaccess if you change goaccess configs somewhat. date-format %d/%b/%Y time-format %H:%M:%S log-format [%d:t %^] - %^ %^ - %m %R %U "%q" [Client %h] [%^] [%^] [Sent-to %^] "%u" "-"

log-file /opt/log/proxy_host-1.log log-file /opt/log/proxy_host-2.log log-file /opt/log/proxy_host-3.log log-file /opt/log/proxy_host-4.log

You can add multiple log files like this.

Then mount your NPM logs folder to the go access docker if that's how you set it up to "/opt/log"

jc21 commented 4 years ago

Nice work :)

github-actions[bot] commented 3 months ago

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