Goaccess: UWSGI log format

Created on 6 Mar 2016  路  3Comments  路  Source: allinurl/goaccess

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?

question

Most helpful comment

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.

All 3 comments

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.

Closing this. Feel free to reopen it if needed.

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

konungrl picture konungrl  路  3Comments

LoanDEV picture LoanDEV  路  3Comments

SergioDG-YCC picture SergioDG-YCC  路  3Comments

Gill-Bates picture Gill-Bates  路  3Comments

SerenaAi picture SerenaAi  路  3Comments