PostHogofficial

logs-nodejs

PostHog/skills · updated Apr 10, 2026

$npx skills add https://github.com/PostHog/skills --skill logs-nodejs
summary

### PostHog Node.js Log Integration

  • Configure OpenTelemetry OTLP exporters to send log data directly to the PostHog ingestion endpoint.
  • Use environment variables for all sensitive configuration, including PostHog keys and OTLP endpoints.
  • Implement structured logging with key-value properties to enhance searchability and analysis within the PostHog platform.
skill.md

PostHog logs for Node.js

This skill helps you add PostHog log ingestion to Node.js applications.

Reference files

  • references/nodejs.md - Node.js 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.

general reviews

Ratings

4.636 reviews
  • Chaitanya Patil· Dec 12, 2024

    logs-nodejs fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Charlotte Sanchez· Dec 12, 2024

    Keeps context tight: logs-nodejs is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Piyush G· Nov 3, 2024

    Registry listing for logs-nodejs matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Soo Dixit· Nov 3, 2024

    logs-nodejs has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Shikha Mishra· Oct 22, 2024

    logs-nodejs reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Hana Srinivasan· Oct 22, 2024

    Solid pick for teams standardizing on skills: logs-nodejs is focused, and the summary matches what you get after install.

  • Luis Huang· Sep 21, 2024

    Solid pick for teams standardizing on skills: logs-nodejs is focused, and the summary matches what you get after install.

  • Yash Thakker· Sep 13, 2024

    logs-nodejs is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • James Rahman· Sep 13, 2024

    Useful defaults in logs-nodejs — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Aditi Li· Sep 5, 2024

    logs-nodejs fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

showing 1-10 of 36

1 / 4