Log File Analysis

To analyze log files, we installed to GoAccess and Log File Navigator utilities:

GoAccess

To analyze webserver log files, use goaccess:

goaccess ~/log/access.log

Log File Navigator

To analyze webserver as well as system log files, use lnav:

# all webserver log files
lnav ~/log/

# all system logs
lnav /var/log/

# system syslog (cron etc.)
lnav /var/log/syslog

# system daemon (PHP, Docker, Node etc.)
lnav /var/log/daemon

# system messags (firewall etc.)
lnav /var/log/messages

Tip

To access system log files within /var/log/, use the Generic Admin User.