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
Create the credential
- 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_tokenwhose routes allow only/select/logsql/queries on VictoriaLogs. See Security and load balancing.
Connect in CloudThinker
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
Required permissions
Agent capabilities
Verify the connection
Example prompts
Troubleshooting
VictoriaLogs rejected the saved credentials.
VictoriaLogs rejected the saved credentials.
The credentials signed in, but they cannot run queries on that address.
The credentials signed in, but they cannot run queries on that address.
/select/logsql/ for the right tenant.That address did not accept a LogsQL query. Check that it is VictoriaLogs and not VictoriaMetrics.
That address did not accept a LogsQL query. Check that it is VictoriaLogs and not VictoriaMetrics.
That address has no LogsQL API. Check the URL.
That address has no LogsQL API. Check the URL.
/select/logsql under that address. Check the host and any path the proxy adds. Enter the address without /select/logsql.VictoriaLogs answered with a redirect. Use the exact VictoriaLogs address.
VictoriaLogs answered with a redirect. Use the exact VictoriaLogs address.
Enter the tenant as AccountID:ProjectID, such as 12:0.
Enter the tenant as AccountID:ProjectID, such as 12:0.
The VictoriaLogs certificate is not trusted.
The VictoriaLogs certificate is not trusted.
BEGIN and END lines.Could not reach VictoriaLogs over HTTPS. Check the URL and that the sandbox can reach it.
Could not reach VictoriaLogs over HTTPS. Check the URL and that the sandbox can reach it.
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.