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

Avg T.S., Cum T.S. and Max T.S. showing 0us .Please help!! #1645

Open
rishatiwari opened this issue Jan 1, 2020 · 1 comment
Open

Avg T.S., Cum T.S. and Max T.S. showing 0us .Please help!! #1645

rishatiwari opened this issue Jan 1, 2020 · 1 comment

Comments

@rishatiwari
Copy link

@rishatiwari rishatiwari commented Jan 1, 2020

Please help me with the following issue:

I have enabled goaccess for a web server wherein columns Avg T.S., Cum T.S. and Max T.S. showing 0us . I think I am doing something wrong while compiling the output html

Command I am using:

goaccess ../access_logs/old/* --log-format='%h %^[%d:%t %^] "%r" %s %b "%R" "%u" %D' --date-format=%d/%b/%Y --time-format=%T -o ../reports/demo_Today.html

My log format of web server is :

LogFormat "%h %{X-Forwarded-For}i %l %{SM_UNIVERSALID}i %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" -- %T @ %D -- " common
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded

CustomLog "|/usr/sbin/rotatelogs /etc/httpd/logs/access_log 86400" common
ErrorLog "|/usr/sbin/rotatelogs /etc/httpd/logs/error_log 86400"

LogFormat "{\"rh\":\"%h\",\"xff\":\"%{X-Forwarded-For}i\",\"uid\":\"%{SM_UNIVERSALID}i\",\"rt\":\"%t\",\"ru\":\"%r\",\"s\":\"%>s\",\"bt\":\"%b\",\"sts\":\"%T\",\"stms\":\"%D\",\"ref\":\"%{Referer}i\",\"ua\":\"%{User-Agent}i\"}" jsonlog
CustomLog logs/access_log.json jsonlog  

snippet of access log is 👍

10.17.189.17 200.4.200.130 - 1569820 - [17/Dec/2019:05:29:59 +0530] "POST /timesheet/ServiceGateway/service HTTP/1.1" 200 1647 "https://timesheet.ultimatix.net/timesheet/Login/bridge" (https://timesheet.ultimatix.net/timesheet/Login/bridge%27)  "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36" -- 0 @ 265062 --
10.17.189.65 165.225.114.200 - 884703 - [17/Dec/2019:05:29:59 +0530] "POST /timesheet/CompOff HTTP/1.1" 200 7502 "https://timesheet.ultimatix.net/timesheet/Login/bridge" (https://timesheet.ultimatix.net/timesheet/Login/bridge%27)  "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36" -- 0 @ 445260 --
10.17.189.105 204.58.246.201 - 773666 - [17/Dec/2019:05:30:00 +0530] "POST /timesheet/ServiceGateway/service HTTP/1.1" 200 280 "https://timesheet.ultimatix.net/timesheet/Login/bridge" (https://timesheet.ultimatix.net/timesheet/Login/bridge%27)  "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36" -- 0 @ 7640 --
10.17.189.14 204.58.246.201 - 773666 - [17/Dec/2019:05:30:00 +0530] "POST /timesheet/ServiceGateway/service HTTP/1.1" 200 130 "https://timesheet.ultimatix.net/timesheet/Login/bridge" (https://timesheet.ultimatix.net/timesheet/Login/bridge%27)  "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36" -- 0 @ 7047 --


Kindly help @allinurl

@allinurl

This comment has been minimized.

Copy link
Owner

@allinurl allinurl commented Jan 2, 2020

Please try:

goaccess access.log --log-format='~h{ } %^[%d:%t %^] "%r" %s %b "%R" %^ "%u" %^@ %D %^' --date-format=%d/%b/%Y --time-format=%T
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.