1

Installed goaccess, and trying to parse/analyse one log file. Facing issues in the log format. Any one knows the format we need to use - for below kind of log:[updated the log sample]

::1 - - [24/Jun/2013:17:10:39 -0500] "GET /favicon.ico HTTP/1.1" 404 286 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36" 0 -
jikku
  • 641
  • 1
  • 6
  • 18
  • 1
    GoAccess is a real-time **web log analyzer**. Your log looks like it's not from an access log. – Pete Darrow Dec 13 '17 at 21:48
  • @PeteDarrow Thanks for your comments. Its not an access log, its a log sample row taken from the log file created on websphere based web application. – jikku Dec 14 '17 at 17:28
  • @PeteDarrow updated the access log sample, which format should I choose for this one – jikku Dec 21 '17 at 08:42
  • 1
    try `--log-format=COMBINED` or you can try `--log-format='%h %^[%d:%t %^] "%r" %s %b "%R" "%u" %D %^'` – Pete Darrow Jan 08 '18 at 16:24
  • Thanks @PeteDarrow. Tried "--log-format=COMBINED" and it works well. – jikku Jan 15 '18 at 06:42

1 Answers1

2

It worked after using --log-format=COMBINED. Answer credits to @Pete Darrow.

jikku
  • 641
  • 1
  • 6
  • 18