Use AI to diagnose and resolve server and application issues faster — cut MTTR in half.
Category: AI / GPT
The Paste-and-Ask Method
The fastest way to use AI for troubleshooting: paste the error and context, then ask a direct question.
I'm getting this error on Ubuntu 22.04 with nginx 1.24:
[error] 1234#1234: *1 connect() failed (111: Connection refused) while
connecting to upstream, client: 10.0.0.5, server: example.com,
request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:3000/"
What are the most likely causes and how do I diagnose each one?
Log Analysis Prompts
# Give GPT the last 50 lines of a log
journalctl -u nginx --since "1 hour ago" | tail -50
Prompt:
"Analyze these nginx logs. Identify any patterns indicating
errors, unusual traffic, or performance issues. Group findings
by severity."
Systematic Diagnosis Flow
My PostgreSQL database is responding slowly (queries taking 5x longer
than usual). CPU is at 30%, RAM at 60%, disk I/O is high.
Walk me through a systematic diagnostic process. What commands
should I run and what should I look for at each step?
Build a Troubleshooting Checklist
Create a troubleshooting checklist for "users can't connect to
the VPN." Include: client-side checks, server-side checks,
network/firewall checks, certificate checks, and log locations
for OpenVPN on Ubuntu.