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

# SolarWinds

Our SolarWinds integration allows [Agents](https://docs.unpage.ai/concepts/agents.md) to search and analyze
log data from your SolarWinds Observability account.

> [accordion] MCP Tools
>
> * **search\_logs**: Search SolarWinds logs within a specified time range

## Prerequisites

**1. Open your SolarWinds profile**

[Log in to your SolarWnds account](https://swo.cloud.solarwinds.com/login), with Admin permsionns, and then go to ["Settings" > "Profile"](https://my.na-01.cloud.solarwinds.com/settings/profile).

**2. Create an API Access Token**

![SolarWinds API Token](https://mintcdn.com/aptible-bot/5SAJPYW5AZAq0sFG/images/solarwinds/token.png?fit=max\&auto=format\&n=5SAJPYW5AZAq0sFG\&q=85\&s=e15294e016deb49149bc300407f59a0c)

## Configuration

Configure the SolarWinds plugin by running `uv run unpage configure` or by editing
the `~/.unpage/profiles/<profile_name>/config.yaml` file:

```yaml theme={null}
plugins:
  # ...
  solarwinds:
    enabled: true
    settings:
      token: <your SolarWinds api token> # required
      solarwinds_datacenter: <your SolarWinds datacenter> # Default: 'na-01'
```

Alternatively, you can set these settings as environment variables:

```bash theme={null}
export SOLARWINDS_TOKEN="your-solarwinds-api-token"
export SOLARWINDS_DATACENTER="na-01"
```

## Tools

The SolarWinds plugin provides the following tools to Agents and MCP Clients:

> [card] search\_logs
>
> Search SolarWinds for logs within a given time range.
>
> **Arguments**
>
> **query** `string` *required*
>
> The search query. Use SolarWinds's search syntax to filter logs by hostname,
> program, message content, or other criteria. For example: "error", "hostname:web01",
> or "program:nginx AND status:500".
>
> **min\_time** `datetime` *required*
>
> The starting time for the search range (ISO 8601 timestamp). Logs generated
> at or after this time will be included in the results.
>
> **max\_time** `datetime` *required*
>
> The ending time for the search range (ISO 8601 timestamp). Logs generated
> at or before this time will be included in the results.
>
> **timeout\_seconds** `integer` (default: 10)
>
> The maximum number of seconds to wait for the search to complete. Defaults to 10 seconds.
> Increase this value for more comprehensive results in large log volumes, or decrease it
> for faster response times.
>
> **Returns** `SolarWindsSearchResult`: An object containing:
>
> * `results`: Log events with details including timestamp and message.
> * `truncated`: Boolean indicating if results were truncated due to response size limits.
> * `timed_out`: Boolean indicating if the search timed out based on the specified timeout.
>
> **Note**: Results are automatically truncated if they exceed response size limits to ensure optimal performance. Choose your search term and time narrowly, and iterate with additional searches if necessary, rather than trying to return the entire log context.


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