Skip to main content
7BBusyBoss

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.

DevOps & SRElogsobservability

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

100/8000
Output will appear here after you click Run.
Or run in your favourite chatbot

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.

Browse the full free AI prompt library or see more devops & sre prompts.