goaccess: Token '' doesn't match specifier '%h'

if LOG have leading space, get error Token ‘’ doesn’t match specifier ‘%h’ [SPACE]10.88.241.31 - - [24/Nov/2019:03:34:04 +0300] "GET /" 200 21139 "-" "-"

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 61 (27 by maintainers)

Most upvoted comments

@librenauta Please try:

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

@allinurl thank you for you reply. i must set LC_ALL= then it be success

output of terminal

image

Hi @allinurl ! I am having the same issue as the others. I don’t really know how goaccess works but when I use this command line : goaccess acces.log.txt and I toggle any of the options I always have an error like that : Token '+0000]' doesn't match specifier '%h'. I really don’t know what to do to fix this. Thanks in advance for your time !