Get the log by syslog, save to file and get the stats
docker build -t vicanso/nginx-access .
-
LOG_PATHthe path to save nginx's access log, default is '/logs' -
INFLUXthe uri for influxdb server, default is 'http://127.0.0.1:8086' -
USERthe user for influxdb -
PASSthe password for influxdb
docker run -d --restart=always \
-v /data/nginx:/logs \
-e INFLUX=http://172.0.0.1:8086 \
-e USER=user \
-e PASS=password \
-p 3412:3412 \
-p 3412:3412/udp \
vicanso/nginx-access