Closed bilalinamdar closed 3 years ago
Till now i have tried this goaccess audit.log --log-format='{"reqId":"%^","level":"%^","time":"%dT%t","remoteAddr":"%h","user":"%e","app":"%^","method":"%m","url":"%U","message":"%^","userAgent":"%u"}' --date-format=%F --time-format=%T%Z It sort of works but i need message":"*" to understand what activity is been conducted Don't know if that will work as i do not want Nginx, apache like output i want a custom output Example output request ID, datetime, IP, username, message, url That's it nothing else
Give this a shot, it should work:
# goaccess access.log --log-format='{"time": "%dT%t+%^", "remoteAddr": "%h", "user": "%e", "method": "%m", "url": "%U", "message": "%v", "userAgent": "%u"}' --date-format=%Y-%m-%d --time-format=%T --http-protocol=no
Hey thx didn't expected quick response.. yes it is working gr8! thx
Hi,
I am trying hard to get the custom log working but it always says time issue. Please chekout the same log of audit.log ... later i will upload nextcloud.log (have to sanitise code so sensitive data). NEXTCLOUD 21 enabled audit feature.