Help Screens Console (web only)
Logs OPS-03
Find what happened to one request, user or key.
| Who can use it | operations.view |
|---|---|
| Where it is | /ops/logs · link: https://hub.substratalapps.com/ops/logs or substratal://ops/logs |
| Available on | Web only (the native apps leave this screen out) |
| Phase | Console M3 (web only) |
Share a search as a link
The search you run is kept in the address, so you can copy the link and send it to someone. Opening it shows the same search over the same time range:
/ops/logs?q=<search>&<parameter>=<value>&range=<range>
qis the search's ID, from the table below. There's no free-form query text.- Each of the search's parameters is its own part of the link, for example
/ops/logs?q=by_user&user_id=usr_…&range=24h. rangeis1h,24h,7dor30d. Without it, or with any other value, the search covers the last 24 hours. At 7 days and 30 days the screen reminds you that longer ranges scan more logs, and each search is billed by what it scans./ops/logs?request_id=<request ID>on its own is short for?q=by_request_id&request_id=…, and runs the search by request ID.
A link that names a search with valid parameters runs it as soon as the page opens. A link with no q (and no request_id) opens the form on By request ID and waits for you to press Run. If a value in the link isn't valid, the field says what's wrong and nothing runs. If q isn't a saved search, the screen says so and opens on By request ID.
Request IDs in the results link to the search by request ID, so you can follow one request across the API's functions.
Saved searches
| Search | q |
Parameters |
|---|---|---|
| By request ID | by_request_id |
request_id (required): letters, digits and _ . : -, up to 128 characters |
| By user | by_user |
user_id (required): a usr_ ID |
| By API key | by_key |
key_id (required): a key_ ID |
| By status code | by_status |
status (required): a whole number from 100 to 599 |
| By error code | by_error_code |
code (required): an API error code, such as invalid_credentials |
| Recent errors | recent_errors |
none |
| Security events | security_events |
event (optional): login, mfa_challenge, lockout, refresh_token_reused, sessions_revoked or denied |
| Security events by user, IP or key | security_summary |
group_by (required): user, ip or key; event (optional), as above |
Values can't contain quotes, slashes, backslashes or |.
Related guides
- Operations (web) — Health, traffic, logs, security events, alarms, jobs, releases, cost, configuration, reports and integrations for the Platform API.
On your platform
| App | Status | How it's built |
|---|---|---|
| Web (PWA) | — | — |
Status is reported by each app's repository; — means that app doesn't report it yet.