Difference between revisions of "/var/log/nginx/access.log"
Jump to navigation
Jump to search
(6 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
cat /var/log/nginx/access.log | grep -v [[ELB-HealthChecker]] | cat /var/log/nginx/access.log | grep -v [[ELB-HealthChecker]] | ||
[[zcat]] -f /var/log/nginx/access.log* | grep " [[504]] " | [[zcat]] -f /var/log/nginx/access.log* | grep " [[504]] " | ||
+ | [[zcat]] -f /var/log/nginx/access.log* | grep " [[504]] " | [[awk]] '{print $4}' | ||
+ | [[zcat]] -f /var/log/nginx/access.log* | grep " [[504]] " | [[awk]] '{print $4" "$7" "$([[NF-1]])}' | ||
Print [[response times]], needs to be activated first: | Print [[response times]], needs to be activated first: | ||
cat /var/log/nginx/access.log | awk '{print $4, $([[NF]]-1)}' | cat /var/log/nginx/access.log | awk '{print $4, $([[NF]]-1)}' | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[504 Gateway Time-out]]</code> | ||
== See also == | == See also == | ||
+ | * {{5XX}} | ||
+ | * {{Goaccess}} | ||
* {{nginx}} | * {{nginx}} | ||
[[Category:Computing]] | [[Category:Computing]] |
Latest revision as of 19:46, 11 December 2023
cat /var/log/nginx/access.log | grep -v ELB-HealthChecker zcat -f /var/log/nginx/access.log* | grep " 504 " zcat -f /var/log/nginx/access.log* | grep " 504 " | awk '{print $4}' zcat -f /var/log/nginx/access.log* | grep " 504 " | awk '{print $4" "$7" "$(NF-1)}'
Print response times, needs to be activated first:
cat /var/log/nginx/access.log | awk '{print $4, $(NF-1)}'
Related[edit]
See also[edit]
5XX, 502, 503, 504, 526
, Web troubleshooting- goaccess, access.log
- Web server: Nginx:
/etc/nginx/nginx.conf
,nginx -t
, Nginx logs, Nginx change log, PHP,php-fpm
, Let's encrypt, Nginx directives, Reverse Proxy, Configure HTTP redirection Nginx, Return,proxy_pass (Reverse proxy)
,ngx_http_rewrite_module
,/etc/nginx/sites-enabled/
,error.log
,access.log
,/nginx status
, AIO
Advertising: