right now, we have to use "%^" to ignore the timezone like "+0800". but it'll be confused while the web server used UTC format for the request time.
Thanks for suggesting this. Can you please elaborate a bit more how the timezone should be displayed in goaccess and the use case you have in mind?
my suggestion:
timezone setting in UII'm not sure I follow. Are you looking to convert the given log time to a specific timezone? which panel would be affected with this change? Right now goaccess simply uses/displays the date and time that the access log has on it.
"08/Aug/2016:16:49:16 +0800" and "08/Aug/2016:08:49:16 +0000" actually are the same time, but will be different in goaccess since goaccess will simply ignore the timezone field.
I sometimes have to use goaccess to analyze the performance of websites which with different datetime format setting, ignoring the timezone will be confused in some situation.
Got it. I'll look into this. Thanks for the reply!
How do I set the timezone when creating an HTML report?
@ray-moncada are you asking about the last updated time zone? or for each metric? If the latter, then it uses the tz from your access log.
@allinurl This is my scenario. The server time is +0000, my local is time is -0500. When goaccess static report is generated, is there a way to have the report show my local time zone?
hi, @allinurl
would you mind that i have example log like this :
2020/07/20 14:53:27.396 [I] [inquiry.go:47] Request Inquiry QRIS: {"dataQr":"https://support.lenovo.com/qrcode?sn=PF11UNLP&mtm=80XK0052ID","issuer":"JATxxx","custAccount":"0812xxx"}
how can i setting this kind of log to view on goaccess
for now i get error : goaccess: unrecognized option '--3'
thanks before
regards
@iskandarsaleh seems like there's no valid IP. goaccess requires a valid IPv4/6, a request and date/time.
Most helpful comment
"08/Aug/2016:16:49:16 +0800" and "08/Aug/2016:08:49:16 +0000" actually are the same time, but will be different in goaccess since goaccess will simply ignore the
timezonefield.I sometimes have to use goaccess to analyze the performance of websites which with different datetime format setting, ignoring the
timezonewill be confused in some situation.