rpk_ prefix, grant logs: read, and work on the same query endpoints as personal API keys. They do not ingest logs. Use an ingest API key from Settings → API keys for POST /api/ingest/ndjson and POST /v1/logs.
Rootprint creates service accounts as regular non-admin users. They can query indexes with
Public visibility. They cannot query Admins or Hidden indexes.
Pick the right credential
| Need | Use |
|---|---|
| A log shipper writes NDJSON or OTLP logs | Ingest API key from Settings → API keys |
| A script or AI agent acts as you | Personal API key from Settings → Profile |
| A shared integration owns its own identity | Service account key from Settings → Service accounts |
Create a service account
- Sign in as an admin.
- Open Settings → Service accounts.
- Click Create service account.
- Enter a display name such as
grafana-prod. - Click Create.
Create a key
- In Settings → Service accounts, find Service account keys.
- Click Create key.
- Choose the service account.
- Enter a key name such as
grafana-integration. - Click Create key.
- Copy the key value before closing the dialog.
Use the key
Send the key in theAuthorization header.
Revoke access
Revoke one key when a client no longer needs access. Delete the service account when you want to revoke every key owned by that account. Clients using a revoked key receive401 responses.
