solarwinds-logs
Skill2 starsChanged 4 months agoMITView on GitHub
Search and analyze DealerVision production logs via SolarWinds Observability API. Use when investigating errors, debugging issues, checking system health, or when the user mentions logs, SolarWinds, production errors, or system monitoring. Requires the `logs` CLI tool to be installed.
In this repository13 other files it gives its agents.
- agent-vision-diagramsSkill
- cloudflareSkill
- create-cliSkill
- design-led-developmentSkill
- elevenlabs-speech-engineSkill
- ffmpeg-toolkitSkill
- frontend-designSkill
- git-workflowSkill
- google-search-consoleSkill
- sentrySkill
- skill-creatorSkill
- wolverineSkill
- wordpress-content-managerSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 8 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Search DealerVision production logs through the SolarWinds Observability API using the logs CLI tool.
- Distinctive: line 34
Run the setup script from the deployed skill folder:
- Very specific: line 46
If you are using Claude Code, replace ~/.codex/skills with ~/.claude/skills.
- Distinctive: line 73
Create a new token with 'Logs Read' permission
- Very specific: line 93
Default data center: na-01
- Distinctive: line 97
If you prefer to install manually without the setup script:
- Very specific: line 132
When you use --time-range, --start-time, or --end-time, the API may return a subset of entries that misses vital current/recent log entries.
- Distinctive: line 142
When a user asks for something like "errors from today" or "logs from the last hour":
- Very specific: line 144
Default to simple search: Run logs 'error' without time arguments
- Distinctive: line 155
Only use time arguments when the user explicitly wants to:
- Distinctive: line 157
Look at a specific historical window (e.g., "what happened last Tuesday between 2-4pm")
- Distinctive: line 194
Start broad: - Run initial search without many filters
- Distinctive: line 195
Narrow progressively: - Add severity, time-range, or program filters based on results
- Very specific: line 196
Retrieve details: - Use --id with --with-data for full log entry inspection
- Very specific: line 197
Export large datasets: - Use --output-file for comprehensive analysis
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SolarWinds Log Search
Search DealerVision production logs through the SolarWinds Observability API using the logs CLI tool.
First-Time Setup (On Demand)
This skill requires the logs CLI tool, .NET 10, and a SolarWinds API token. Install only when the skill is activated.
1. Check if Already Installed
Linux/macOS:
logs --help 2>/dev/null || echo "Not installed - setup required"
echo "$SOLARWINDS_API_TOKEN"Windows (PowerShell):
logs --help 2>$null
Write-Host "SOLARWINDS_API_TOKEN=$env:SOLARWINDS_API_TOKEN"2. Install Dependencies and Tool (One-Time Setup)
Run the setup script from the deployed skill folder:
Linux/macOS:
bash ~/.codex/skills/solarwinds-logs/scripts/setup.shWindows (PowerShell):
pwsh ~/.codex/skills/solarwinds-logs/scripts/setup.ps1If you are using Claude Code, replace ~/.codex/skills with ~/.claude/skills.
What this does:
- Installs .NET SDK 10 if missing (user-level)
- Installs the
logsCLI tool from the skill-local package - Verifies the installation
- Checks for required environment variables
Note: Installation only happens once; the tool becomes globally available.
3. Configure Environment Variable
The tool requires a SolarWinds API token for authentication.
Linux/macOS:
export SOLARWINDS_API_TOKEN="your-token-here"Windows (PowerShell):
$env:SOLARWINDS_API_TOKEN = "your-token-here"To obtain a token:
- Log in to SolarWinds Observability
- Navigate to Settings -> API Tokens
- Create a new token with 'Logs Read' permission
4. Verify Setup
Linux/macOS:
dotnet tool list --global | grep SolarWindsLogSearch
logs "test" --limit 1Windows (PowerShell):
dotnet tool list --global | Select-String SolarWindsLogSearch
logs "test" --limit 1Prerequisites
- .NET SDK 10.0+ (required to install the tool)
- SOLARWINDS_API_TOKEN environment variable (required to use the tool)
- Default data center:
na-01
Alternative: Manual Installation
If you prefer to install manually without the setup script:
# Requires .NET SDK 10.0+
dotnet tool install --global DealerVision.SolarWindsLogSearch --version 2.4.0 --add-source ~/.codex/skills/solarwinds-logs/tools
# If using Claude Code, replace ~/.codex/skills with ~/.claude/skills
# Windows path: %USERPROFILE%\\.codex\\skills\\solarwinds-logs\\tools (or .claude for Claude Code)
# Verify
logs --help⚠️ Critical: Prefer Simple Searches (No Time Arguments)
The SolarWinds/Papertrail API is finicky with time ranges and often skips recent entries when time arguments are used. The logs tool is designed to start from the most recent entries and page backward through time automatically until a predefined limit (typically 24 hours worth of data).
Default Search Pattern
Always prefer simple keyword searches without time arguments:
# ✅ RECOMMENDED - Simple searches that capture current entries
logs 'error'
logs 'exception'
logs 'timeout'
logs 'DbUpdateException'
# ✅ GOOD - Add filters, but avoid time arguments
logs 'error' --severity ERROR
logs 'exception' --program webhook-apiWhy Avoid Time Arguments?
When you use --time-range, --start-time, or --end-time, the API may return a subset of entries that misses vital current/recent log entries. This is a known quirk of the underlying Papertrail API.
# ⚠️ AVOID - Time arguments can miss recent entries
logs "error" --time-range 1h # May miss errors from the last few minutes
logs "error" --time-range 24h # May skip entries that just happenedHow to Handle User Requests with Time References
When a user asks for something like "errors from today" or "logs from the last hour":
- Default to simple search: Run
logs 'error'without time arguments - Filter results after retrieval: The agent can filter out older entries from the results
- Only use time arguments if the user explicitly wants to exclude current/recent results
Example interpretations:
- "Search logs for errors from today" →
logs 'error' OR 'exception'(filter results yourself) - "Find exceptions in the last 4 hours" →
logs 'exception'(filter results yourself) - "Show me errors, but only from yesterday, not today" → Time arguments are appropriate here
When Time Arguments Are Appropriate
Only use time arguments when the user explicitly wants to:
- Exclude current/recent results
- Look at a specific historical window (e.g., "what happened last Tuesday between 2-4pm")
- Investigate a known past incident with specific timestamps
Quick Commands
# Search for errors (recommended - no time arguments)
logs 'error'
# Find specific exceptions
logs 'DbUpdateException' --severity ERROR --limit 10
# Filter by service (still no time arguments)
logs 'timeout' --program webhook-api
# Get full details for a specific log entry
logs --id 1901790063029837827 --with-data
# Export large result sets to file
logs 'exception' --output-file results.jsonKey Options
| Option | Description |
--time-range | 1h, 4h, 12h, 24h, 2d, 7d, 30d |
--severity | INFO, WARN, ERROR, DEBUG |
--program | Filter by service name (e.g., media-processing) |
--hostname | Filter by host |
--limit | Max results (default 1000, max 50000) |
--with-data | Include structured JSON payload |
--no-data | Exclude payload (faster, smaller response) |
--output-file | Save full results to file |
Workflow Strategy
- Start broad - Run initial search without many filters
- Narrow progressively - Add severity, time-range, or program filters based on results
- Retrieve details - Use
--idwith--with-datafor full log entry inspection - Export large datasets - Use
--output-filefor comprehensive analysis
Output Format
Returns JSON with:
success: boolean statusquery: search parameters usedsummary: statistics including severity breakdown, truncation inforesults: array of log entries with timestamps, source, severity, messagepagination: info for getting more results
Advanced Usage
For detailed documentation on query syntax, MCP server modes, and advanced patterns, see references/REFERENCE.md.
For common investigation patterns and recipes, see references/RECIPES.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

