New Relic
Export NRQL results from New Relic One, then point Sleuth at the file.
Export from New Relic
- Go to Query your data (NRQL). Run something like:
- Click ⋮ → Export → JSON on the result panel.
- Save as
nr-incident.json.
Sleuth auto-detects:
- Flat NRQL rows:
{"timestamp": 1713322684000, "service.name": "checkout", "log.level": "ERROR", "message": "..."}— epoch ms + dotted keys. - Wrapped NRQL response:
{"results": [{"events": [...]}]}— theeventsarray is auto-flattened.
Fields normalized: epoch-ms timestamp → ts, service.name (or entity.name) → service, log.level → level, message → msg. trace.id stays in raw.
Ask
sleuth ask "why did checkout latency spike at 03:04?" \
--logs ./nr-incident.json \
--out checkout-latency.sleuth.json
Notes
- NRQL times are milliseconds since epoch. Sleuth converts to UTC automatically.
- If you use New Relic's
nrqlCLI, pipe to a file:nrql "SELECT ... FROM Log ..." --json > nr-incident.json.