victorialogs-query

Query VictoriaLogs LogsQL endpoints with curl to search logs and discover fields.

45|4|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/VictoriaMetrics/skills --skill victorialogs-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: victorialogs-query
Source: https://github.com/VictoriaMetrics/skills/tree/main/plugins/query/skills/victorialogs-query
Command: npx skills add https://github.com/VictoriaMetrics/skills --skill victorialogs-query

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Query VictoriaLogs HTTP API directly via curl to perform LogsQL queries, enabling fast search, field/stream discovery, and hit analysis.

Core Features & Use Cases

  • Run LogsQL queries against VictoriaLogs to search logs, compute instant or range statistics, and filter results.
  • Discover non-stream fields and stream fields, list streams and stream IDs, and facet results to understand log distributions across namespaces and pods.
  • Use cases include debugging outages, verifying deployments, and monitoring log volume trends across services.

Quick Start

Use curl to query VictoriaLogs LogsQL endpoints to search logs, run stats, and discover fields and streams.

Frequently Asked Questions about victorialogs-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query VictoriaLogs using curl and LogsQL?

To search VictoriaLogs logs, send curl requests to the /select/logsql/query endpoint using LogsQL syntax, including authentication headers and RFC3339 timestamps to retrieve filtered log search results.

Can I discover log fields and streams in VictoriaLogs via HTTP?

Yes, you can discover non-stream fields, stream fields, list streams, and stream IDs by targeting endpoints like /select/logsql/field_names, /select/logsql/field_values, and /select/logsql/streams to understand log distributions across namespaces and pods.

How do I calculate instant and range statistics for VictoriaLogs?

You can calculate instant and range statistics by querying the /select/logsql/stats_query and /select/logsql/stats_query_range endpoints with curl, allowing you to monitor log volume trends across services over specified time intervals.

Does VictoriaLogs support log hit analysis and faceting through curl?

Yes, VictoriaLogs supports log hit analysis and faceting via the /select/logsql/hits and /select/logsql/facets endpoints, enabling you to analyze log distributions and extract insights across typical namespaces and pods.

What VictoriaLogs HTTP API endpoints are available for log search?

Available endpoints include /select/logsql/query, /select/logsql/stats_query, /select/logsql/stats_query_range, /select/logsql/hits, /select/logsql/facets, /select/logsql/field_names, /select/logsql/field_values, /select/logsql/streams, and /select/logsql/stream_ids for comprehensive log search and discovery.

What is the best way to debug outages by searching logs in VictoriaLogs?

The best way to debug outages is using LogsQL queries against VictoriaLogs to search logs, run instant or range statistics, and filter results, verifying deployments and monitoring log volume trends across services directly via curl.