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

From wikieduonline
Jump to navigation Jump to search
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}'
  
 
Print [[response times]], needs to be activated first:  
 
Print [[response times]], needs to be activated first:  

Revision as of 05:14, 22 September 2022

/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}'

Print response times, needs to be activated first:

cat /var/log/nginx/access.log | awk '{print $4, $(NF-1)}'

See also

Advertising: