Skip to content
Skills Library
DevOps & cloud · Tool integration

query-logs

/query-logs

Translate a natural-language question about logs or telemetry into a Lensflare query and return the results. Use when the user asks "find logs that…", "show me…", or describes a filter in prose that should map to a structured query.

Repository
lensflare ↗
Licence
MIT
Last repository change
25.06.2026

Assessment and security

96/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content31 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 25.06.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Translate a natural-language question about logs or telemetry into a Lensflare query and return the results. Use when the user asks "find logs that…", "show me…", or describes a filter in prose that should map to a structured query.

Triggers from the description

find logs that…show me…
Original author description

Translate a natural-language question about logs or telemetry into a Lensflare query and return the results. Use when the user asks "find logs that…", "show me…", or describes a filter in prose that should map to a structured query.

How it works

SKILL.md has no level-two headings · 20 lines, 181 words

SKILL.md preview
---
name: query-logs
description: Translate a natural-language question about logs or telemetry into a Lensflare query and return the results. Use when the user asks "find logs that…", "show me…", or describes a filter in prose that should map to a structured query.
---

# Query Lensflare telemetry

You have access to a structured query language exposed via `lensflare:queryTelemetry`. The full grammar is in that tool's description — read it. Examples:

- "errors from the api service" → `serviceName = "api" and (level in ["error", "fatal"] or status = "error")`
- "slow requests" → `durationUs >= 1000000`
- "anything that mentions ECONNRESET" → `message ~= /ECONNRESET/`
- "logs with http status 500" → `attributes.http.status_code = 500`

Steps:

1. Identify the dataset. Use `lensflare:listDatasets` if needed.
2. Translate the user's prose into a single query string. Prefer structured comparisons over free-text — fewer false positives, easier to refine.
3. Call `lensflare:queryTelemetry` with `limit: 50` (or as requested). Use `cursor` from `usage.nextPageCursor` if the user asks for more.
4. Summarise the page: counts, time range covered, dominant `serviceName` / `level`. Show a few example records inline (id, level, message or name, timestamp).
5. Offer a refined query if the result set is too broad or too narrow.

Never invent fields — call `queryTelemetry` with no `query` first if you're unsure; the records show you the available shape.

Versions

The database has no other skills named query-logs.

Database snapshot: 13.11.2026 · package version 1f6c13e1644d (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 96analyze-trace
    Walk a Lensflare trace span-by-span and explain timing, errors, and parent/child structure. Use when the user pastes a trace id, asks "why is this slow", or wants a request-level post-mortem of a real production / dev request captured in Lensflare.
  • 86find-error
    Find recent errors in a Lensflare dataset and summarise their root cause. Use when the user asks "what's broken", "what errors are happening", or pastes a vague stack trace and wants the actual failure context from the running system.
  • 100logfire-query
    Query and analyze Logfire telemetry data — traces, logs, spans, metrics, summaries, and SQL results. Use this skill when the user asks to "query logfire", "search traces", "find logs", "query data", "search spans", "look up errors in logfire", "get metrics from logfire",…
  • 100cloud-logging-query-generation
    Generates Logging Query Language (LQL) queries for Google Cloud Logging from natural language. Use this skill when you need to query log data or when you are debugging issues. You can filter log data by Google Cloud service. Don't use this skill to query other databases, such as SQL or Spanner.
  • 100cloud-logging-query-generation
    Generates Logging Query Language (LQL) queries for Cloud Logging on Google Cloud from natural language. Use this skill when you need to query log data or when you are debugging issues. You can filter log data by Google Cloud service. Don't use this skill to query other…
  • 100cloud-logging-query-generation
    Generates Logging Query Language (LQL) queries for Google Cloud Logging from natural language. Use this skill when you need to query log data or when you are debugging issues. You can filter log data by Google Cloud service. Don't use this skill to query other databases, such as…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.