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 '2015-09-09' doesn't match specifier '%d' #1579

Closed
25808383 opened this issue Oct 25, 2019 · 6 comments
Closed

Token '2015-09-09' doesn't match specifier '%d' #1579

25808383 opened this issue Oct 25, 2019 · 6 comments

Comments

@25808383
Copy link

25808383 commented Oct 25, 2019

Did a fair amount of digging and still not seeing what i'm missing here.

GoAccess Command:
goaccess -f output.log --log-format='%d %t %h %^ %e %m %U %q %s %^ %b %^ %H' --date-format=%Y-%m-%d --time-format=%T -a -o report.html

Parsed 1 linesproducing the following errors:

Token '2015-09-09' doesn't match specifier '%d'

Format Errors - Verify your log/date/time format

Log: 
2015-09-09 18:20:26 192.168.3.35 - - [1]GET / - 302 987 260 - 443 
2015-09-09 18:20:26 192.168.3.35 - - [2]GET /EFTClient/Account/Login.htm - 200 5222 314 - 443 
2015-09-09 18:20:26 192.168.3.35 - - [3]GET /EFTClient/Shared/forms.css - 200 3687 353 - 443 
@allinurl
Copy link
Owner

This works for me:

goaccess access.log --log-format='%d %t %h %^ %^]%m %U %q %s %D %b %^' --date-format=%Y-%m-%d --time-format=%T --http-protocol=no --ignore-panel=OS --ignore-panel=BROWSERS --ignore-panel=REFERRING_SITES

@25808383
Copy link
Author

Same result, I am using CowAxcess if that makes a difference.

bash-4.4$ goaccess output.log --log-format='%d %t %h %^ %^]%m %U %q %s %D %b %^' --date-format=%Y-%m-%d --time-format=%T --http-protocol=no --ignore-panel=OS --ignore-panel=BROWSERS --ignore-panel=REFERRING_SITES

Parsed 1 linesproducing the following errors:

Token '2015-09-09' doesn't match specifier '%d'

@allinurl
Copy link
Owner

What's your locale? e.g., locale -a

@25808383
Copy link
Author

25808383 commented Oct 27, 2019

I tried it in ubuntu (on windows) and got the same result. Cygwin bundled with goaccess didn't have the locale command built-in. I also tried setting the LANG variable but didn't make a difference. Also tried converting the file from Windows (DOS) to unix, no difference, same error.

goaccess output.log --log-format='%d %t %h %^ %^]%m %U %q %s %D %b %^' --date-format=%Y-%m-%d --time-format=%T --http-protocol=no --ignore-panel=OS --ignore-panel=BROWSERS --ignore-panel=REFERRING_SITES
Parsed 1 linesproducing the following errors:

Token '2015-09-09' doesn't match specifier '%d'

Format Errors - Verify your log/date/time format

locale -a
C
C.UTF-8
POSIX
en_US.utf8

@25808383
Copy link
Author

When I look at the file in VI/VIM I don't show a space before the first line but I do see it when I view via "head". When I delete the first line the space shows up on whatever is the first line.

$ head output.log
2015-09-09 18:20:26 192.168.3.35 - - [3]GET /EFTClient/Shared/forms.css - 200 3687 353 - 443
2015-09-09 18:20:26 192.168.3.35 - - [5]GET /EFTClient/Shared/PTCs.js - 200 2195 371 - 443
2015-09-09 18:20:26 192.168.3.35 - - [4]GET /EFTClient/Shared/jquery-1.4.2.min.js - 200 72476 383 - 443

@25808383
Copy link
Author

The space was the issue, I still don't get where that is coming from and why it persists (on the new first line) when I delete the line but I just read the files in backward with tac and was able to get my data imported.

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

2 participants