Open stk21 opened 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.
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"
Nice work :)
Issue is now considered stale. If you want to keep it open, please comment :+1:
No problem or issue. Added functionality.
Add goaccess https://goaccess.io/ to the container and auto implement proxy host logs monitoring.