Browse Source

reminder to put - after goaccess export so that it knows to read it from the awk pipe

windhamdavid 2 years ago
parent
commit
d7699bfade
1 changed files with 1 additions and 2 deletions
  1. 1 2
      docs/computers/woozie.md

+ 1 - 2
docs/computers/woozie.md

@@ -317,8 +317,7 @@ mysqlcheck -o gg --user=******* --password='*******'
 
 # monitor-cron.sh
 #!/bin/sh
-
-awk '$8=$1$8' /var/log/apache2/other_vhosts_access.log | goaccess -a -o /var/www/dev.davidawindham.com/html/**********/index.html >> /home/*******/logs/cron.log 2>&1
+awk '$8=$1$8' /var/log/apache2/other_vhosts_access.log | goaccess -a -o /var/www/dev.davidawindham.com/html/**********/index.html - >> /home/*******/logs/cron.log 2>&1
 
 goaccess /var/log/nginx/access.log -o /var/www/dev.davidawindham.com/html/monitor/nginx/index.html --log-format='%h %^[%d:%t %^] "%r" %s %b "%R" "%u" %T' >> /home/*******/logs/cron.log 2>&1