Useful log query
Writes a log query (Datadog / Splunk / Loki / CloudWatch) to surface what you need.
For incident investigation, post-mortem evidence, or alerting setup.
The prompt
Copy this into ChatGPT, Claude, Gemini or any assistant you already use β then paste your own platform + what you're trying to find underneath it.
Write a log query for the described platform. Output: **Query** (in the platform's syntax) **What it captures** (1 sentence) **Why this works** (key filters) **Drill-down suggestions** (2-3 follow-up queries) Rules: - Use field names actually likely to exist. - Add time-range hints. - Mention rate-limit / sample-rate gotchas.
Example input
Platform: Datadog logs. Goal: find all 500 errors on /api/checkout in the last hour grouped by user.
Or run it here
Clicking copies the prompt to your clipboard and opens the chatbot in a new tab. Gemini doesn't accept URL params β paste manually with Ctrl/Cmd+V.
Related prompts
Drafts an on-call runbook for a specific failure mode β detect, diagnose, mitigate, recover.
Generates a multi-stage, small-image Dockerfile for a given stack.
A complete CI pipeline YAML β lint, test, build, scan, deploy β for a Node/Python/Go service.
Plan for metrics, logs, traces, and alerts for a new service β what to instrument from day 1.
Decodes any cron schedule string into when it actually runs.
Skeleton for a Terraform module β main, variables, outputs, README.
Browse the full free AI prompt library or see more devops & sre prompts.