From 694061b28fc23415d8616aa98a8b1bf5e0d39b11 Mon Sep 17 00:00:00 2001 From: Lloyd Brookes Date: Tue, 17 Nov 2015 15:24:28 +0000 Subject: [PATCH] goaccess instructions --- doc/visualisation.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/visualisation.md b/doc/visualisation.md index 76078ad..f143719 100644 --- a/doc/visualisation.md +++ b/doc/visualisation.md @@ -1,4 +1,23 @@ ## Goaccess +To get live statistics in [goaccess](http://goaccess.io/), 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: + +```sh +$ ws -f combined > web.log +``` + +In a separate tab, 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](http://code.google.com/p/logstalgia/).