Log First Troubleshooting Checklist

halfbrain_logo512adminJune 13, 2026
2 lượt xem

Log First Troubleshooting Checklist

Good operators read logs before guessing. Logs show what happened, when it happened and which layer failed. This checklist teaches a log-first method you can use across Nginx, PHP-FPM, MySQL, Docker, WordPress and automation services.

Core principle

Every incident has a timeline. Start with the time of failure, then read the logs around that time. Match browser symptoms with server evidence.

Checklist

  1. Record the exact time the issue happened.
  2. Record the URL or workflow that failed.
  3. Check Nginx access log for the request.
  4. Check Nginx error log for backend or permission errors.
  5. Check PHP-FPM or app logs if PHP or app is involved.
  6. Check MySQL logs if database is involved.
  7. Check Docker logs if the service runs in containers.
  8. Compare status codes with error messages.
  9. Separate one-time errors from repeated patterns.
  10. Write down the most likely root cause before changing anything.

Reusable skill

This method applies to 404, 500, 502, 504, webhook failures, Docker crashes, database errors and WordPress fatal errors.

Checklist Type Log Analysis
Level Intermediate
Risk Level Medium Risk
Estimated Time 20–60 minutes

When to Use This Checklist

Use this checklist when troubleshooting website or automation failures and you want to find evidence before changing settings.

Required Tools

SSH access, Nginx logs, PHP-FPM logs, MySQL logs, Docker logs, timestamp of issue

Before You Start

Collect the exact error time and affected URL or service before reading logs.

Verification Steps

  1. Relevant log lines are found.
  2. Error layer is identified.
  3. Status code matches symptom.
  4. Repeated pattern is known.
  5. Next action is based on evidence.

Rollback Plan

If a fix based on logs fails, keep the log evidence and revert the change before testing another hypothesis.

Common Mistakes

  • Reading only the newest log lines without matching time.
  • Ignoring access logs.
  • Confusing symptoms with root cause.
  • Changing settings before collecting evidence.
  • Not saving important log excerpts.

Related Commands

sudo tail -n 100 /var/log/nginx/access.log
sudo tail -n 100 /var/log/nginx/error.log
docker logs container_name --tail 100
journalctl -u nginx --since "30 minutes ago"
journalctl -u php8.2-fpm --since "30 minutes ago"

Share:

Disclaimer: The guides, checklists, commands, and examples on HalfBrain.net are provided for educational and operational reference only. Server environments, hosting providers, software versions, security settings, and WordPress configurations can vary, so you should always review commands before running them on your own system. We do our best to keep the content accurate and useful, but we cannot guarantee that every command, configuration, or recommendation will fit every environment. Always back up your website, database, and server configuration before making changes. HalfBrain.net is not responsible for data loss, downtime, security incidents, misconfiguration, or other issues that may result from applying the information on this website. Use the material at your own discretion.

Leave a Reply

Your email address will not be published. Required fields are marked *