Prerequisites
- A Graylog cluster reachable from CloudThinker over HTTPS.
- A least-privilege Graylog user for CloudThinker with the Reader role.
- Read access shared on the streams and index sets you want agents to read — the Reader role alone is not enough, see Required permissions.
- A REST API access token for that user.
Setup
1
Create a read-only Graylog user
In Graylog, go to System → Users and Teams and create a user for CloudThinker with the Reader role — Graylog’s read-only baseline. A dedicated user, rather than a person’s account, keeps the scope visible and revocable in one place.
2
Share the streams and index sets with that user
The Reader role by itself grants no access to your entities — Graylog controls those by sharing. Share each stream and index set CloudThinker should read with the new user at the Viewer access level.Skip this and Graylog returns an empty list of streams instead of an error, which looks like a Graylog with no streams rather than a missing permission.
3
Create a REST API access token
Still in System → Users and Teams, find the user, open the More drop-down, and select Edit tokens. Enter a token name, set the TTL using ISO 8601 duration format, and click Create Token.Copy the token immediately — Graylog does not show it again.
4
Add the connection in CloudThinker
Navigate to Connections → Graylog and enter:
- Graylog base URL: your Graylog web/API root, such as
https://graylog.example.com:9000 - API token: the token you just created
- TLS certificate: leave on Verify TLS certificate
Connection details
Enter the web/API root only — CloudThinker adds
/api itself and rejects a URL that carries anything else. The URL must use https, because the token is sent with every request; plain http is accepted only when Graylog runs on the same machine as CloudThinker.
Required permissions
The token needs read access, and Graylog splits that across two layers:
No Graylog permission beyond read is ever needed — CloudThinker exposes no Graylog write action, so granting write access only widens what a leaked token could do.
The Reader role on its own is the most common misconfiguration. Graylog returns an empty list of streams and a success code rather than a 403, so the connection tests as Connected while agents report that no streams exist. If discovery shows no streams on a cluster that has them, share the streams and index sets with the token’s user.
Agent capabilities
Once connected, agents have read access to your Graylog cluster.
Searches and counts are bounded: the time window reaches back at most 30 days, and results return at most 100 rows or groups. Agents tell you which window and limit they used, and say when a result was cut short instead of presenting it as a total.
Verify the connection
Example prompts
Troubleshooting
Graylog rejected the API token
Graylog rejected the API token
The token expired, was revoked, or was copied incompletely. Graylog tokens expire at their TTL, 30 days by default. Create a new token under System → Users and Teams → More → Edit tokens and update the connection.
The token cannot read the cluster status
The token cannot read the cluster status
The token is valid but its Graylog user lacks the read role. Give the user the Reader role, then test the connection again.
Discovery reports no streams on a cluster that has streams
Discovery reports no streams on a cluster that has streams
The user has the Reader role but no streams shared with it, so Graylog returns an empty page instead of denying the request. Share each stream and index set with that user at Viewer access. An empty list here means the token cannot see those streams, not that Graylog has none.
The endpoint did not answer as Graylog, or is unreachable
The endpoint did not answer as Graylog, or is unreachable
The base URL points at the wrong root, already contains
/api, or nothing answered at all. Reconnect with the web/API root only, such as https://graylog.example.com:9000, and check the host, port, and network path from CloudThinker.Graylog URL must use HTTPS, or TLS verification was refused
Graylog URL must use HTTPS, or TLS verification was refused
A plain-
http URL, or Skip TLS verification, is rejected for a remote Graylog because either would expose the token — in clear text, or to whichever server answers. Serve Graylog over HTTPS, install a trusted certificate, and keep Verify TLS certificate on.Results look truncated, or Graylog rate-limited the request
Results look truncated, or Graylog rate-limited the request
The query hit the result limit, the search timed out, or Graylog (or a proxy in front of it) returned HTTP 429. A search that times out does not tell you how many messages matched — narrow the query, shorten the time window, or group by a more specific field, then ask again.
Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Share only the streams you want read — entity sharing, not the role, decides which logs agents can see.
- Watch the token TTL — a token that expires silently breaks the connection; rotate it on schedule and update the connection with the new value.
Related
Coralogix Connection
Log search, metrics, traces, and incident triage
Elasticsearch Connection
Log analysis, index management, and search performance optimization