> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nofire.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# VictoriaLogs

> Connect your VictoriaLogs with NOFire AI

Connect VictoriaLogs to NOFire AI so NOFire can search your logs when it looks into a problem. NOFire queries VictoriaLogs on demand. It does not copy your logs.

## What NOFire reads

* Log records, with LogsQL queries over a time window.
* Log field names and stream field names, so it can write a query that matches your fields.
* Log volume, message counts and log anomalies, for the `log_volume_analysis`, `log_message_counts` and `log_anomaly_analysis` tools. These need the URL. They don't work while the connection reads through an MCP server.

NOFire sends only read requests.

## Prerequisites

* The URL of VictoriaLogs, at its root, without `/select/logsql`:
  * Single node: the server itself, for example `http://victorialogs.example.com:9428`.
  * Cluster: vlselect, for example `http://vlselect.example.com:9471`. Use the port you set with `-httpListenAddr`.
  * Behind vmauth: the vmauth route that leads to VictoriaLogs or vlselect.
* A read-only bearer token, if vmauth or another proxy with auth sits in front.
* For a multitenant VictoriaLogs, the AccountID and ProjectID of the tenant to read. Without them NOFire reads tenant 0.

## Connect directly

Use this when NOFire can reach VictoriaLogs over the internet.

1. Open [Connections](https://my.nofire.ai/dashboard/connections) and click **Connect** on **VictoriaLogs**.
2. Fill in the form:
   * **Name**: a name you choose, for example `production`.
   * **URL**: the URL from the prerequisites, for example `http://victorialogs.example.com:9428`. Use http or https, with no user name, password, query string or fragment in it.
   * **Bearer token** (optional): the token for vmauth or your proxy.
3. Open **Advanced** only if you need it:
   * **Account ID** and **Project ID**: digits only. NOFire sends them as the `AccountID` and `ProjectID` headers. Leave both empty for tenant 0.
   * **Allow a private endpoint**: check it when the URL resolves to a private address. Your account needs private network access for this.
   * **Read through an MCP server**: see [Read through an MCP server](#read-through-an-mcp-server-optional).
4. Click **Connect**. NOFire tests the connection first and saves it only if the test passes.

## Read through an MCP server (optional)

By default NOFire reads the URL. If you run mcp-victorialogs, the VictoriaLogs MCP server, and want NOFire to read through it, turn on **Read through an MCP server** under **Advanced**. Two fields appear:

* **MCP server URL**: required while the switch is on, for example `https://mcp-victorialogs.example.com/mcp`.
* **MCP token** (optional): the token for the MCP server.

With the switch on, NOFire searches logs through the MCP server, and the **URL** becomes optional. If you fill it in anyway, NOFire stores it so you can turn the switch off later. NOFire does not send the Account ID and Project ID to the MCP server. Set the tenant in the MCP server's settings instead.

Log volume, message counts and log anomalies are not available while the switch is on, even if the URL is set. If you need them, turn the switch off.

VictoriaLogs cannot go through Edge yet. NOFire must be able to reach the URL, or the MCP server, from the internet.

## Test the connection

NOFire tests the connection when you click **Connect**.

| How it reads | What the test does | What the test checks |
| - | - | - |
| URL | lists the log field names of the last hour | `logs query API (vl_query_url)` |
| MCP server | runs the LogsQL query `*` with a limit of 1 | `victorialogs (vl_mcp_url)` |

If the check fails, the message names it, for example `Connection validation failed for logs query API (vl_query_url)`.

After the test passes, ask NOFire a question that needs logs, for example "show me the errors for the checkout service in the last hour". An answer that quotes your log lines shows the connection works end to end.

## Troubleshooting

> [accordion] The test fails with a URL that ends in /select/logsql
>
> Use the root of VictoriaLogs or vlselect. NOFire adds `/select/logsql/...` to the URL itself.

> [accordion] The test passes but NOFire finds no logs
>
> Check the time window and the service name first. If both are right, the logs may be in another tenant: set **Account ID** and **Project ID** under **Advanced** to the tenant you write to.

> [accordion] NOFire does not count log volume or messages for this connection
>
> The connection reads through an MCP server. Turn off **Read through an MCP server** and make sure **URL** is set.

> [accordion] Adding a URL to a saved connection is refused
>
> A connection that holds a token cannot change where it sends requests. NOFire refuses with "Changing a connection's destination requires recreating the connection". Delete the connection and create it again with the URL.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.