allinurl / goaccess

GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
https://goaccess.io
MIT License
18.6k stars 1.11k forks source link

The nginx $request_time datas are not shown when I use piplines #1813

Open wnjustdoit opened 4 years ago

wnjustdoit commented 4 years ago

I find that the response time doesn't appear on the pane, when piplines are used, such as: tail -f -n +0 /data/nginx-log/access* | unbuffer -p awk '$8=$1$8' | goaccess -a -d -p /etc/goaccess.conf -o /data/project/mama_go_access/index.html --real-time-html - or: awk '$8=$1$8' /data/nginx-log/access* | goaccess -a d -p /etc/goaccess.conf -o /data/project/mama_go_access/index.html --real-time-html - And if I remove the awk phase, those times appeared.

allinurl commented 4 years ago

Thanks for reporting it and sorry for the delay. Can you please post a few sample lines from your access log so I can try to reproduce the issue on my end? Thanks.

wnjustdoit commented 4 years ago
seller.caiya.com 39.190.17.55 - - [09/Jul/2020:08:51:20 +0800] "GET /order/hot/list?startTime=1593651080&endTime=1594255880 HTTP/1.1" 200 72 "https://seller.caiya.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.30 Safari/537.36" "-" 172.16.59.105:9302 0.034 0.035
seller.caiya.com 39.190.17.55 - - [09/Jul/2020:08:51:20 +0800] "GET /order/transaction HTTP/1.1" 200 307 "https://seller.caiya.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.30 Safari/537.36" "-" 172.16.59.105:9302 0.045 0.044
seller.caiya.com 39.190.17.55 - - [09/Jul/2020:08:51:20 +0800] "GET /homepage/important/reminder HTTP/1.1" 200 277 "https://seller.caiya.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.30 Safari/537.36" "-" 172.16.59.104:9302 0.108 0.107
xiaodian.caiya.com 47.97.168.25 - - [09/Jul/2020:08:51:21 +0800] "HEAD /login HTTP/1.1" 200 0 "-" "Chrome/57" "-" 172.16.59.105:3002 0.007 0.008
seller.caiya.com 39.190.17.55 - - [09/Jul/2020:08:51:22 +0800] "GET /promise/page?pageNo=1&pageSize=1000 HTTP/1.1" 200 909 "https://seller.caiya.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.30 Safari/537.36" "-" 172.16.59.104:9302 0.019 0.019
seller.caiya.com 39.190.17.55 - - [09/Jul/2020:08:51:22 +0800] "GET /transport-template/list?pageNo=1&pageSize=1000 HTTP/1.1" 200 67 "https://seller.caiya.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.30 Safari/537.36" "-" 172.16.59.104:9302 0.029 0.028
seller.caiya.com 39.190.17.55 - - [09/Jul/2020:08:51:22 +0800] "GET /item/unit/list?pageNo=1&pageSize=1000 HTTP/1.1" 200 1184 "https://seller.caiya.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.30 Safari/537.36" "-" 172.16.59.105:9302 0.035 0.035
seller.caiya.com 39.190.17.55 - - [09/Jul/2020:08:51:22 +0800] "GET /item/category/list HTTP/1.1" 200 11717 "https://seller.caiya.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.30 Safari/537.36" "-" 172.16.59.105:9302 0.130 0.130
cms-pos.caiya.com 218.72.75.128 - - [09/Jul/2020:08:51:24 +0800] "GET /advertisement/list HTTP/1.1" 200 1451 "-" "Dalvik/2.1.0 (Linux; U; Android 7.1.2; D2_d Build/NHG47K)" "-" 172.16.141.111:9018 0.007 0.007
cms-pos.caiya.com 115.193.218.220 - - [09/Jul/2020:08:51:29 +0800] "GET /advertisement/list HTTP/1.1" 200 1451 "-" "Dalvik/2.1.0 (Linux; U; Android 7.1.2; D2_d Build/NHG47K)" "-" 172.16.141.110:9018 0.008 0.007