Difference between revisions of "/var/log/nginx/access.log"

From wikieduonline
Jump to navigation Jump to search
(Redirected page to /var/log/nginx/)
Tags: New redirect, Mobile web edit, Mobile edit
 
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
#redirect [[/var/log/nginx/]]
+
<code>[[/var/log/nginx/]]</code>
 +
 
 +
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 ==
 +
* <code>[[504 Gateway Time-out]]</code>
 +
 
 +
== See also ==
 +
* {{5XX}}
 +
* {{Goaccess}}
 +
* {{nginx}}
 +
 
 +
[[Category:Computing]]

Latest revision as of 19:46, 11 December 2023

/var/log/nginx/

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]

Advertising: