Skip to main content
Connect VictoriaLogs so CloudThinker agents can search log lines with LogsQL, count lines and errors over time, and see which streams and fields you collect. The connection only reads, and signs in with an optional bearer token for VictoriaMetrics Cloud or the vmauth proxy in front of VictoriaLogs.

Prerequisites

  • A VictoriaLogs address that CloudThinker can reach over HTTPS. For a private address, follow Reaching private services.
  • A bearer token, unless the endpoint needs no authentication. VictoriaLogs has no per-user access control of its own, so put vmauth or VictoriaMetrics Cloud in front of it.
  • A CloudThinker workspace where you can add connections.

Setup

1

Create the credential

Pick the one that matches where VictoriaLogs runs:
  • VictoriaMetrics Cloud: open your VictoriaLogs deployment, go to the Access tokens tab, and click Generate Token. Name it cloudthinker, choose the Read access level, and click Generate. Copy the secret from the Key column, and copy the access endpoint from the same tab. See VictoriaMetrics Cloud access tokens.
  • vmauth: ask your operator to add a user with a bearer_token whose routes allow only /select/logsql/ queries on VictoriaLogs. See Security and load balancing.
2

Connect in CloudThinker

Open Settings → Workspace → Connections, open the Discover tab, and select VictoriaLogs. Click Connect, fill in the fields below, then click Connect in the dialog. CloudThinker runs a LogsQL count over the last 5 minutes to check the address and token.Success state: the connection shows a Connected status with VictoriaLogs connected; the LogsQL API answered. CloudThinker then opens a chat that takes a read-only deep look at the connection (“Often takes about 15 min. You can leave the chat.”). To run it again later, open the card’s More menu and choose Try in chat.

Connection details

CloudThinker refuses redirects, so enter the exact address VictoriaLogs answers at. If vmauth sets the tenant for your token, leave Tenant (optional) empty: vmauth overrides it.

Required permissions

Give CloudThinker its own read-only token, limited to /select/logsql/ and to the tenants agents need. The connection never ingests or deletes logs.

Agent capabilities

CloudThinker names the query and time window with every count or quoted line. A search shows a limited number of lines, so CloudThinker counts with a stats query, never by counting search results. Agents cannot ingest new log lines or delete stored logs. Log retention and deletion need your VictoriaLogs operator.

Verify the connection

Example prompts

Troubleshooting

The bearer token is wrong, expired, or revoked. Create a new token, then edit the connection and paste it.
The token works, but vmauth or VictoriaMetrics Cloud does not let it query. Give it read access to /select/logsql/ for the right tenant.
The address belongs to another service, often VictoriaMetrics. Use the VictoriaLogs address. For VictoriaMetrics, add a VictoriaMetrics connection instead.
Nothing answered at /select/logsql under that address. Check the host and any path the proxy adds. Enter the address without /select/logsql.
Enter the final HTTPS address VictoriaLogs serves directly, not one that redirects to it.
Tenant (optional) takes two numbers separated by a colon. Leave it empty for the default tenant.
Install a certificate from a trusted authority, or paste the issuing CA certificate into CA certificate (optional). If CloudThinker says the CA certificate is not valid PEM, paste the full certificate, including its BEGIN and END lines.
CloudThinker could not open a connection to that address. Confirm the URL starts with https:// and that your firewall lets CloudThinker reach VictoriaLogs. Browser access from your laptop alone is not enough.

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.
  • Log lines can hold secrets and personal data. CloudThinker quotes only the lines your question needs, so ask narrow questions about sensitive streams.
  • Scope the token to the tenants agents need. VictoriaLogs itself does not check tenant access.

VictoriaMetrics

Query metrics, series cardinality, and alerts.

Graylog

Search messages and streams with a read-only API token.