/logpacer:logpacer-investigatefrom LogPacer
Investigate logs, traces and metrics in LogPacer. Find the right source, learn its fields, search and count, follow trace and span ids across sources, open full events, and report what the evidence supports. Use for any question about what an app or host logged, error rates, incidents, slow requests, a specific trace, or why data seems missing.
Ships in LogPacer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
since (it defaults to the last hour), a small limit and only the fields you need. Give related queries the same fixed RFC 3339 since and until.aggregate_logs for counts, rates, percentiles and time series; search_logs rows are examples, not totals.query_target.filter when its repository is shared, and never add up overlapping sources.logpacer skill.discover_sources, optionally with filter (name substring), scope or signals (logs, traces, metrics). Follow metadata.next_cursor with only cursor and limit to see every source. CLI: logpacer sources --filter <name> --format json; --signals traces; --cursor <token>.list_repos also finds repositories kept from archived collections. CLI: logpacer repos --filter <name>.list_collections and get_discovered_source (CLI: logpacer ops run list_collections --format json, logpacer ops run get_discovered_source --arg source_id=<id>) show collection state and Parsing Health Findings.get_schema with repo and fields for the names you expect, or resolve for a dotted name such as service.name. CLI: logpacer --repo <id> schema --since 1h --fields level --fields trace_id --format json. If a focused lookup finds nothing, read the full schema once (the field may be msg, not message) rather than guessing. The schema covers stored data, so the newest events can be missing from it.
| Need | MCP | CLI |
|---|---|---|
| Example rows | search_logs | logpacer --repo <id> search --where 'level=error' --fields level,message --since 1h --limit 20 |
| Counts, rates, percentiles, time series | aggregate_logs | logpacer --repo <id> aggregate --group-by service --bucket 5m --agg count --agg p95:duration_ms --since 1h |
| Text you cannot match exactly | semantic_search | logpacer --repo <id> search --semantic 'payment failures' --keyword Stripe --since 1d |
| Several sources around one moment | look_around | none; run search on each repository over the same window |
| Every matching record | scan_records | logpacer --repo <id> scan |
| One full event | get_record | logpacer --repo <id> record <record_ref> |
| Trace and span links across sources | correlate | logpacer correlate --json @body.json |
| Metrics | list_metric_names, query_metrics | logpacer ops run query_metrics --arg 'query=<promql>' |
where entries are ANDed: field=v, field!=v, >, >=, <, <=, field~v (contains), field in (a,b), exists field, missing field; values compare as strings. Pass a source's filter as filter (CLI: --filter-json '<json>' or @file). Sort with order_by ([{"field": "logtime_ms", "direction": "desc"}] for the latest).
Take a trace_id, request id or user id from a result and query it exactly, in the same window. For links across sources, correlate takes anchors (trace_id, optionally span_id), sources (repo_id with its filter), a fixed window and relations (trace_logs proves the trace id, span_logs both ids). Check each source's outcome (searched, failed or skipped): a successful call is not complete evidence, and a shared identifier is not proof of cause. Trace rows can include non-span records with the same trace id; count spans with an aggregate on the span id field.
scan_records pages through every match: send next_cursor back as cursor with only repo and an optional limit (CLI: the response's cursor to scan --cursor). It is complete only when has_more is false and result_metadata.traversal.complete is true. Records come in storage order, not time order. scan_restart_required, or an oversized page, means restart the original scan with fewer fields or a smaller limit; never join pages from different attempts. search_logs has no cursor (pagination_not_supported).
Pass record_refs[i] for results[i] unchanged to get_record with the same repo; never use an event field as the reference. The record keeps the producer's original structure, so fields flattened in previews may be nested. No reference means the full event is unavailable; record_unavailable means it is gone, and a new search finds current evidence. An event too large for MCP comes back whole from the CLI record command.
Name the source ids, window, filters and decisive identifiers. Separate what the data shows from your hypotheses. Carry result_metadata qualifiers (lower-bound counts, truncation) into the answer: previews shorten long messages, and response_too_large means fewer fields or a smaller limit.
Before concluding "no data" or "it stopped", count over a wider window on the same source and filter: aggregate_logs with since: "24h" (CLI: logpacer --repo <id> aggregate --agg count --since 24h --format json). A non-zero count proves data arrived and the narrow query needs fixing. Zero while list_collections shows the source collecting is a finding: report it with the source's state from get_discovered_source.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 skills in this plugin
/logpacerStart here for LogPacer tasks. Use when connecting or choosing deployments and accounts, setting up collection, instrumentation, metrics or monitors, when a change waits for approval, or when a tool returns role_required, scope_required or operations_not_enabled./logpacer-install-edgepacerInstall EdgePacer, LogPacer's host agent, on a server, into Docker or into a Kubernetes cluster, then confirm the host reports the log sources it discovered. Use when the user asks to get a server's, container's or cluster's logs into LogPacer, to install or connect EdgePacer, or when a host is missing from LogPacer./logpacer-instrument-otlpInstrument an application to send OpenTelemetry traces and metrics over OTLP to the local EdgePacer, for Node.js, Python, Java, .NET, Go, Ruby and PHP. Use when the user asks to add tracing or app metrics, send OTLP to LogPacer, set OTEL_* environment variables, or see an app's spans in LogPacer.npx claudepluginhub logpacer/logpacer-marketplace --plugin logpacer