Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token doesn't match specifier '%d' #1563

Closed
canepa opened this issue Oct 7, 2019 · 6 comments
Closed

Token doesn't match specifier '%d' #1563

canepa opened this issue Oct 7, 2019 · 6 comments

Comments

@canepa
Copy link

canepa commented Oct 7, 2019

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

Parsed 1 linesproducing the following errors:

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

Format Errors - Verify your log/date/time format

My .goaccessrc is:

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

An example log file line:
5.171.243.229 - - [02/Oct/2019:00:01:22 +0000] "GET /www.kenamobile.it/overlay_app/welcome/welcomebanner_flash5-99.html HTTP/1.1" 200 706 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 13_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148" "-" "qik1_62246||"

@allinurl
Copy link
Owner

allinurl commented Oct 7, 2019

I'm guessing your locale is different than EN and your server is logging in EN. Please try:

LANG="en_US.UTF-8" bash -c 'goaccess access.log'

@allinurl
Copy link
Owner

Closing this. Feel free to reopen it if needed.

@xxiaocheng
Copy link

I'm guessing your locale is different than EN and your server is logging in EN. Please try:

LANG="en_US.UTF-8" bash -c 'goaccess access.log'

It`s work for me ,thank you.

@Bue-von-hon
Copy link

I'm guessing your locale is different than EN and your server is logging in EN. Please try:

LANG="en_US.UTF-8" bash -c 'goaccess access.log'

it works for me!

@g9panas
Copy link

g9panas commented Jun 22, 2022

Hello,

I have something similar,
using apache2
access file output:
192.168.10.54 - - [21/Jun/2022:11:43:12 +0300] "POST /index.php HTTP/1.1" 302 11>
192.168.10.54 - - [21/Jun/2022:11:43:29 +0300] "GET /index.php/core/apps/recomme>
192.168.10.54 - - [21/Jun/2022:11:43:30 +0300] "GET /apps/files_rightclick/css/a>
192.168.10.54- - [21/Jun/2022:11:43:30 +0300] "GET /core/css/guest.css?v=7c3148>

goaccess.conf :
log-format %v:%^ %h %^[%d:%t %^] “%r” %s %b “%R” “%u”

running command ->sudo goaccess /var/log/apache2/nextcloud-access.log stats.html
receiving output:
Parsed 1 lines producing the following errors:

Token ‘+0300]’ doesn’t match specifier ‘%h’
Format Errors - Verify your log/date/time format

Please help

@allinurl
Copy link
Owner

@g9panas please post complete lines from your access log. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants