-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
I am using goaccess to monitor 2 load balanced Apache web servers. I use lsync to copy the logs from the 2 servers to a 3rd server that hosts the goaccess real time stats page. Unfortunately, the counts are continuously incrementing by large amounts, a lot more than actual traffic.
The log files are standard apache access_log files, so access_log and a weeks worth of access_log-yyyymmdd log files.
Since there is no way to configure goaccess to read log files that do not have a static name, such as those with datestamps, I have had to resort to using a script that is:
cat /local/home/icomadm/logs/pc1uicomweb11/access_log-* /local/home/icomadm/logs/pc1uicomweb12/access_log-* | /usr/local/bin/goaccess -p /local/home/icomadm/conf/goaccess-prd.conf -l /local/home/icomadm/logs/goaccess-prd.log -o /local/home/icomadm/www/webstats.html -
I have also tried using tail:
tail -F /local/home/icomadm/logs/pc1uicomweb11/access_log /local/home/icomadm/logs/pc1uicomweb12/access_log | /usr/local/bin/goaccess -p /local/home/icomadm/conf/goaccess-prd.conf -l /local/home/icomadm/logs/goaccess-prd.log -o /local/home/icomadm/www/webstats.html -
and specifying (or not specifying) access_log in the config file:
log-file /local/home/icomadm/logs/pc1uicomweb11/access_log
log-file /local/home/icomadm/logs/pc1uicomweb12/access_log
No matter what I do, the counts just keep rapidly increasing, obviously duplicating data :(
I also have had to disable persist and restore as that was really duplicating records, even when there is no traffic at all.