Skip to content

macOS 10.15 nginx access_log Token doesn't match specifier '%d #1571

@huxxhua

Description

@huxxhua

Hello,

I keep on getting this error no matter what I do:

Token '16/Oct/2019' doesn't match specifier '%d'

The command I am using is:
goaccess test.nginx.com.log -o ../html/report.html --real-time-html --time-format='%H:%M:%S' --date-format='%d/%b/%Y' --log-format=COMMON

I tried other methods and it was the same error.example:
goaccess test.nginx.com.log -o ../html/report.html --real-time-html --time-format='%H:%M:%S' --date-format='%d/%b/%Y' --log-format='%h %^[%d:%t %^] "%r" %s %b "%R" "%u"'

An example log file line:
127.0.0.1 - - [16/Oct/2019:10:43:04 +0800] "GET /report.html HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36" "-"

In addition,the output of date my terminal is :
2019年10月16日 星期三 11时04分36秒 CST

Thanks in advance ! :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions