Search code examples
logginglogentriesgoaccess

How to parse logentries log with goaccess?


I am having logs of all servers on logentries and when I try to open it with goaccess it gives me wrong statistics. Is there a way through I can parse logentries log with goaccess. I am trying to parse logentries log to goaccess. I am trying to change the log format in goaccess.conf, but not able to find correct logs.


Solution

  • Adding the following to the config file, works with the two lines you posted above:

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

    then just run goaccess as:

    goaccess -f access.log -p /path/to/goaccess.conf
    

    Make sure you are running v0.9 though.