Find 504s in access logs, grep timestamps and correlate with error and php5-fpm logs

Web-Server throwing too many HTTP 504s? Use this script to drill down and find the cause Script finds the 504s in the access logs (across zipped access logs as well), greps the timestamp of the log files and then finds the error logs (Across zipped error logs as well) corresponding to the timestamps of 504’s access log entries found. OS – Linux 3.2.0-4-amd64 x86_64 Memory/RAM – 4GB MySQL DB is running on a different server…

Continue reading