Skip to content

How to visualise access logs with third party tools

Lloyd Brookes edited this page Jul 7, 2017 · 1 revision

Goaccess

To get live statistics in goaccess, first create this config file at ~/.goaccessrc:

time-format %T
date-format %d/%b/%Y
log.format %h %^[%d:%t %^] "%r" %s %b "%R" "%u"

Then, start the server, outputting combined format logs to disk:

$ ws -f combined > web.log

In a separate terminal, point goaccess at web.log and it will display statistics in real time:

$ goaccess -p ~/.goaccessrc -f web.log

Logstalgia

local-web-server is compatible with logstalgia.

Install Logstalgia

On MacOSX, install with homebrew:

$ brew install logstalgia

Alternatively, download a release for your system from github.

Then pipe the logstalgia output format directly into logstalgia for real-time visualisation:

$ ws -f logstalgia | logstalgia -

local-web-server with logstalgia

glTail

To use with glTail, write your log to disk using the "default" format:

$ ws -f default > web.log

Then specify this file in your glTail config:

servers:
    dev:
        host: localhost
        source: local
        files: /Users/Lloyd/Documents/MySite/web.log
        parser: apache
        color: 0.2, 0.2, 1.0, 1.0
Clone this wiki locally