Simplify goaccess command
This switches all log file input to stdin using a subshell to cat all the related log files. This makes the command a bit more consistent with itself. Change-Id: I99a8b0326f2a27c8497d616501fd9bed48678da8
This commit is contained in:
parent
8fb306a22b
commit
2792fa5b76
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user