I want to live goaccess on a filtered data.
Command i'm running is:
tail -n +1 -f /var/log/nginx/access.log|grep -v -f /goaccess/botstrings.txt -f /goaccess/removed_urls.txt|/usr/local/bin/goaccess -p /goaccess/goaccess.live.conf -
It works perfectly if started from shell as ROOT.
Now first: It can't be running as root in production since that's insecure.
Second thing: It needs to run in background using supervisor / anything else.
Now if i want to run that as diffrent user OR worse using supervisor as a diffrent user it doesn't work...
If i su and run it as www-data it doesn't jump to websocket mode.
Hi there !
I want to live goaccess on a filtered data. Command i'm running is:
tail -n +1 -f /var/log/nginx/access.log|grep -v -f /goaccess/botstrings.txt -f /goaccess/removed_urls.txt|/usr/local/bin/goaccess -p /goaccess/goaccess.live.conf -
It works perfectly if started from shell as ROOT.Now first: It can't be running as root in production since that's insecure. Second thing: It needs to run in background using supervisor / anything else.
Now if i want to run that as diffrent user OR worse using supervisor as a diffrent user it doesn't work... If i su and run it as www-data it doesn't jump to websocket mode.
su - www-data -c "/goaccess/goaccess_live"
it stays @ Parsing ....
GoAccess - 1.2