mcpField
L
logs-datadog

logs-datadog

github.com/posthogCloud & DevOps7694 installsUpdated today
Repository

About logs-datadog

A skill for configuring PostHog log ingestion alongside Datadog logging. It uses OpenTelemetry export guidance and emphasizes structured logs, environment-based configuration, and minimal changes to existing logging.

Key features

  1. 01OpenTelemetry exporter guidance
  2. 02Environment-variable configuration
  3. 03Structured logging recommendations
  4. 04Datadog installation reference
  5. 05Log search and troubleshooting references
  6. 06Session replay and MCP debugging references

Use cases

  1. 01Exporting application logs to PostHog
  2. 02Adding PostHog export without replacing logging
  3. 03Searching and troubleshooting ingested logs
  4. 04Linking logs with session replay

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/posthog/skills --skill logs-datadog

After installing, type/logs-datadogin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
best-practices.md
datadog.md
debug-logs-mcp.md
link-session-replay.md
search.md
start-here.md
troubleshooting.md

Details

From the project README

PostHog logs for Datadog

This skill helps you add PostHog log ingestion to Datadog applications.

Reference files

  • references/datadog.md - Datadog logs installation - docs
  • references/start-here.md - Getting started with logs - docs
  • references/search.md - Search logs - docs
  • references/best-practices.md - Logging best practices - docs
  • references/troubleshooting.md - Logs troubleshooting - docs
  • references/link-session-replay.md - Link session replay - docs
  • references/debug-logs-mcp.md - Debug logs with mcp - docs

Consult the documentation for API details and framework-specific patterns.

Key principles

  • Environment variables: Always use environment variables for PostHog keys and OpenTelemetry endpoints. Never hardcode them.
  • Minimal changes: Add log export alongside existing logging. Don't replace or restructure existing logging code.
  • OpenTelemetry: PostHog logs use the OpenTelemetry protocol. Configure an OTLP exporter pointed at PostHog's ingest endpoint.
  • Structured logging: Prefer structured log formats with key-value properties over plain text messages.

Framework guidelines

No specific framework guidelines.

Comments

Markdown supported