First, view the log configuration in httpd.conf or in the site configuration files for vhost.
then follow the following logic.
Combined apache log log form:
% v% h% l% u% t \ "% r \"%> s% b \ "% {Referer} I \" \ "% {User-Agent} i \
to goaccess:
apache - what is it? - like in goaccess
% v - vhost -% ^ ignore it
% h - host -% h
% l - hyphen -% ^ ignore it
% u - user -% ^ ignore him
% t - timestamp - [% d: t %% ^] ignore zone from apache log
% r - request -% r
% s - status -% s
% b - size -% b
% {referer} I - request header -% R
% {UAgent} I - User Agent -% u
goaccess.conf
log-format% ^% h% ^% ^ [% d:% t% ^] "% r"% s% b "% R" "% u"
Note that in% r,% R and% u you will need a "" because these are text fields (I think)
Note that there is no space between% u and date (I don't know why ...)
from:
time format% H:% M:% S
date format% d /% b /% Y
Link:
https://httpd.apache.org/docs/2.2/logs.html
http://goaccess.io/man
source share