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

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.

agentmods
npx agentmods add skills/wyre-ai/msp-claude-plugins/logging
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00016 $0.00785
Sonnet 5 $0.00006 $0.00314
Haiku 4.5 $0.00003 $0.00157

Measured 2d ago against content hash 0659ea25271a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 2d 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. 2d 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 (44 stars, last pushed 4d ago), licensed Apache-2.0. It adds 32 tokens to every session and 1,570 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

live-preview

Mid-build visual verification loop. Takes screenshots of components during construction, not just after. Catches visual regressions and invisible features before they compound. Requires Playwright or similar screenshot tool.

SethGammon/Citadel · 40 tokens

review

5-pass structured code review — correctness, security, performance, readability, consistency.

SethGammon/Citadel · 17 tokens

design-copywriting

마케팅·제품 텍스트의 브랜드 정합 카피라이팅 전문가. 브랜드 보이스, AI 특유 어조 배제 규칙, 구체적 숫자, 다운스트림 에이전트 소비를 위한 JSON 섹션 구조를 보장합니다. 히어로, 기능, 소셜 증명, CTA, 푸터 섹션을 A/B 변형 출력으로 다룹니다. Use for brand-aligned marketing and product copy: headlines, CTAs, microcopy, taglines, value propositions, marketing-landing-page and footer copy, with anti-AI-slop rules…

modu-ai/moai-cowork · 136 tokens

content-card-news

인스타그램·스레드·카카오 채널용 카드뉴스 4장(본문 카피·디자인 가이드·이미지 생성 프롬프트·채널별 캡션·해시태그)을 한 번에 만들어 드립니다. 다음과 같은 요청 시 사용하세요: "카드뉴스 만들어줘" "인스타 슬라이드 기획해줘" "캐러셀 콘텐츠 구성해줘" "재택근무 도구 비교 카드뉴스 만들어줘" "스타트업 시드 라운드 체크리스트 카드뉴스 써줘" "프롬프트 엔지니어링 FAQ 카드뉴스 기획해줘" 주제에 맞는 구성 패턴을 자동으로 골라 4장을 채우고, 이미지 생성은 moai-coworker 이미지 스킬로, 한국어 자연화는…

modu-ai/moai-cowork · 202 tokens

cs-voc-triage

고객의 소리(VOC) 전체를 다루는 엄브렐러 스킬 — 멀티채널 리뷰를 통합 분석하고(리뷰는 VOC의 한 원천), 폭주하는 VOC의 처리 우선순위를 3축 분류 + KTAS 응급실 5단계로 판별합니다. 다음과 같은 요청 시 반드시 이 스킬을 사용하세요: "리뷰 모아서 분석해줘", "리뷰 분석해줘", "수백 개 리뷰 정리", "감정 분석 리뷰", "쿠팡 리뷰 키워드", "리뷰 인사이트 액션플랜", "멀티채널 리뷰 통합", "VOC 분류해줘", "VOC 처리 순서", "고객 문의 우선순위", "응급 VOC 분류", "VOC 트리아지", "KTAS 응급실 분류 VOC" 2개…

modu-ai/moai-cowork · 372 tokens

data-realestate

국토교통부 실거래가 신고 데이터로 아파트·오피스텔·연립다세대·단독다가구·상업업무용 부동산의 매매·전월세 시세를 조회해 드립니다(별도 API 키 없이 바로 사용). 다음과 같은 요청 시 사용하세요: "잠실 리센츠 2024년 매매 실거래가 찾아줘" "강남구 아파트 실거래가 알려줘" "마포구 아파트 전세 실거래 보여줘" "성수동 오피스텔 월세 시세 조회해줘" "용산구 상업업무용 건물 거래내역 찾아줘" "전세 보증금 추이 알려줘" "이 단지 평형별 시세 비교해줘" 지역·단지·거래년월로 실거래를 조회해 중위값·최소·최대와 대표 거래를 요약하고, 입지 분석이나 투자 검토로…

modu-ai/moai-cowork · 230 tokens