Aakash Garg
Aakash Garg

Reputation: 49

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.

Upvotes: 0

Views: 1116

Answers (2)

Aakash Garg
Aakash Garg

Reputation: 49

alternate could be that goaccess -f /path/to/log -a >report.html after converting logentries log to nginx log format.

Upvotes: 0

Kayla
Kayla

Reputation: 919

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.

Upvotes: 3

Related Questions