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

UWSGI log format #386

Closed
mhipo1364 opened this issue Mar 6, 2016 · 3 comments
Closed

UWSGI log format #386

mhipo1364 opened this issue Mar 6, 2016 · 3 comments
Labels

Comments

@mhipo1364
Copy link

Hi

I need some help about my log format, here is my log file which is generated by uwsgi:

[pid: 22396|app: 0|req: 4924/39480] 193.151.131.150 () {40 vars in 741 bytes} [Sun Mar 6 22:56:30 2016] GET /tracks/14318/details => generated 2566 bytes in 45 msecs (HTTP/1.1 200) 7 headers in 241 bytes (2 switches on core 0)

but when I want to get report from goaccess, this error appears:

Fatal error has occurred Error occured at: src/goaccess.c - main - 1017 Nothing valid to process. Verify your date/time/log format.

Which format should I use?

@allinurl
Copy link
Owner

allinurl commented Mar 6, 2016

The following should work for the sample line you posted:

log-format %^] %h %^[%^ %d %t %^] %m %U %^(%H %s) %^
date-format %b %d
time-format %H:%M:%S

Let me know how it goes.

@allinurl allinurl changed the title UWSGI log foramt UWSGI log format Mar 7, 2016
@allinurl
Copy link
Owner

Closing this. Feel free to reopen it if needed.

@shreyasnagare
Copy link

shreyasnagare commented Feb 21, 2019

The following should work for the sample line you posted:

log-format %^] %h %^[%^ %d %t %^] %m %U %^(%H %s) %^
date-format %b %d
time-format %H:%M:%S

Let me know how it goes.

This did not work for me. ERROR:

Parsed 1 linesproducing the following errors:

Token 'Feb' doesn't match specifier '%d'

Format Errors - Verify your log/date/time format

My log file is in the following format:

[pid: 2398|app: 0|req: 1075/3223] 128.237.158.26 () {44 vars in 634 bytes} [Mon Feb 18 16:36:03 2019] DELETE /api/apps/subscription => generated 24 bytes in 10 msecs (HTTP/1.1 200) 2 headers in 71 bytes (1 switches on core 0)

Can you suggest a log format for uwsgi which would work for goaccess but still log all the details?

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

No branches or pull requests

3 participants