Merge "Simplify goaccess command"

This commit is contained in:
Zuul 2020-03-11 00:10:06 +00:00 committed by Gerrit Code Review
commit 08f41a8b6b

View File

@ -55,6 +55,6 @@
SOURCE_FILE="/var/log/apache2/{{ goaccess_site }}_access.log"
# This pipes in all the compressed logs as well as the current
# uncompressed logs. Giving us a window as wide as our log retention.
zcat ${SOURCE_FILE}.*.gz | goaccess -o $OUT_FILE -p /home/zuul/goaccess.conf $SOURCE_FILE ${SOURCE_FILE}.1 -
( cat ${SOURCE_FILE}{,.1} ; zcat ${SOURCE_FILE}.*.gz ) | goaccess -o $OUT_FILE -p /home/zuul/goaccess.conf -
args:
executable: /bin/bash