Better Stack Logging

Better Stack Logging is a skill for Claude Code from WYRE-AI/msp-claude-plugins. It costs 32 tokens per session (1,570 once invoked), scanned A, original, Apache-2.0.

A centralized log-management service for collecting, searching, and analyzing structured application and infrastructure logs. Better Stack Logtail supports sources such as cloud platforms, programming languages, Docker, Kubernetes, syslog, and HTTP.

In plain words
What is it for?
Use it to configure log sources, run structured searches, analyze error patterns, and create alerts based on log data.
Why use it?
It brings logs from different systems into one searchable place, making recurring errors and unusual spikes easier to investigate and monitor.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Part of the betterstack plugin — 5 skills, 4 commands, 2 agents shipped together

Good fit Use it to configure log sources, run structured searches, analyze error patterns, and create alerts based on log data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wyre-ai/msp-claude-plugins/logging
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add WYRE-AI/msp-claude-plugins --skill logging
Clone the repo
git clone --depth 1 https://github.com/WYRE-AI/msp-claude-plugins

Made for: Claude Code.

Or install betterstack, the plugin that ships this one along with the rest of its 5 skills, 4 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Better Stack Logging

README.md
[![agentmods](https://agentmods.dev/badge/skills/wyre-ai/msp-claude-plugins/logging/github.svg)](https://agentmods.dev/skills/wyre-ai/msp-claude-plugins/logging)
Your own site
<a href="https://agentmods.dev/skills/wyre-ai/msp-claude-plugins/logging"><img src="https://agentmods.dev/badge/skills/wyre-ai/msp-claude-plugins/logging/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Better Stack Logging

Your own site · 80×15
<a href="https://agentmods.dev/skills/wyre-ai/msp-claude-plugins/logging"><img src="https://agentmods.dev/badge/skills/wyre-ai/msp-claude-plugins/logging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,570 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01570
Opus 5.5 $0.00013 $0.00628
Sonnet 5.5 $0.00006 $0.00314
Haiku 4.5 $0.00003 $0.00157

Measured 2mo ago against content hash 0659ea25271a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Better Stack Logging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

msp-claude-plugins/betterstack/betterstack/skills/logging/SKILL.md · 209 lines

How it starts

The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Better Stack Log Management (Logtail)

Overview

Better Stack Logs (formerly Logtail) provides centralized log management with structured log ingestion, real-time search, and log-based alerting. MSPs use it to aggregate logs from client infrastructure, investigate incidents, and set up proactive alerting on error patterns.

Anti-triggers

  • Azure Log Analytics and KQL — different store, different query language; use azure-mcp-observability.
  • Threat hunting or security event analysis — these are application logs, not a SIEM; use huntress-signals or blumira.
  • Uptime history for a monitor — check results are not log records; use betterstack-monitors.

Key Concepts

Log Sources

Sources define where logs come from and how they're ingested:

  • Platform sources - AWS, Azure, GCP, Heroku, Vercel, etc.
  • Language sources - Node.js, Python, Ruby, Go, etc.
  • Infrastructure sources - Docker, Kubernetes, syslog, HTTP
  • Each source gets a unique source token for authentication

Log Structure

Logs in Better Stack are structured JSON documents:

  • dt - Timestamp (ISO 8601)
  • level - Log level (info, warn, error, debug, fatal)
  • message - Log message text
  • Any additional custom fields (request_id, user_id, service, etc.)

Query Language

Better Stack supports SQL-like queries for log searching:

  • Field-based filters: level:error, service:api
  • Text search: "connection refused"
  • Time ranges: dt:[2026-03-27T00:00:00Z TO 2026-03-27T23:59:59Z]
  • Boolean operators: AND, OR, NOT
  • Wildcards: host:prod-*

Log-Based Alerts

Create alerts that trigger when log patterns match:

  • Error rate thresholds (e.g., more than 10 errors in 5 minutes)
  • Specific error message patterns
  • Absence of expected log entries (heartbeat-style)

API Patterns

Query Logs

betterstack_query_logs

Parameters:

  • query - Search query string (required)
  • source_id - Filter to a specific source
  • from - Start time (ISO 8601)
  • to - End time (ISO 8601)
  • batch_size - Number of results to return (default 100)
  • order - Sort order: newest_first or oldest_first

Read the full file on GitHub · 209 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 209 lines · 32 tokens per session scan A 0659ea25271a

Subscribe to this mod's changes

Better Stack Logging is a skill published in the GitHub repository WYRE-AI/msp-claude-plugins (57 stars, last pushed 5d ago), licensed Apache-2.0. It adds 32 tokens to every session and 1,570 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Better Stack Logging compared with skills from other repositories

Better Stack Logging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Better Stack LoggingWYRE-AI/msp-claude-pluginsSkill575d agoApache-2.0A32Claude Code
live-previewSethGammon/CitadelSkill9434d agoMITA40Claude Code
media-gemini-3-image-promptmodu-ai/moai-coworkSkill3201mo agoApache-2.0A329Claude Code
app-marketing-copyckorhonen/claude-skillsSkill334d agoMITA93Claude Code
codex-advisorckorhonen/claude-skillsSkill334d agoMITA49Claude Code
skill-finderckorhonen/claude-skillsSkill334d agoMITA103Claude Code
design-copywritingmodu-ai/moai-coworkSkill3201mo agoApache-2.0A81Claude Code