logs-nodejs

Ingest OpenTelemetry logs from Node.js applications into PostHog.

58|5|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/PostHog/skills --skill logs-nodejs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logs-nodejs
Source: https://github.com/PostHog/skills/tree/main/skills/posthog/all/skills/logs-nodejs
Command: npx skills add https://github.com/PostHog/skills --skill logs-nodejs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Node.js applications often require reliable, observable logs that integrate with PostHog. This Skill provides a guided approach to ingest Node.js logs using OpenTelemetry and PostHog's OTLP endpoint, enabling unified analytics, error tracking, and operational insights.

Core Features & Use Cases

  • Ingest logs from Node.js apps using OpenTelemetry to PostHog's ingest endpoint.
  • Produce structured log attributes for traceability and correlation with events.
  • Use cases include error capture, performance monitoring, and log-driven incident response for Node.js services.

Quick Start

Start by configuring your Node.js app to export logs via OpenTelemetry to PostHog and verify receipt in the Logs dashboard.

Frequently Asked Questions about logs-nodejs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I ingest Node.js logs into PostHog using OpenTelemetry?

You can ingest Node.js logs into PostHog by configuring an OpenTelemetry OTLP exporter with a valid PostHog project token and endpoint environment variables, enabling centralized log search and correlation.

Can I correlate Node.js logs with PostHog events and trace context?

Yes, using OpenTelemetry instrumentation attaches structured log attributes and trace context to each log entry, enabling correlation of Node.js logs with PostHog events for unified analytics.

Do I need an OTLP exporter to send logs from a Node.js backend to PostHog?

Yes, an OTLP exporter is required to send logs from Node.js to PostHog, along with a valid PostHog project token and configured environment variables for endpoints and credentials.

What is the best way to monitor Node.js microservices using PostHog logs?

Using OpenTelemetry to ingest logs into PostHog is an effective way to monitor Node.js microservices, providing centralized log storage, error tracking, and operational insights for server-side applications.

Does this approach work for backend jobs or only server-side Node.js apps?

This OpenTelemetry log ingestion approach works for server-side Node.js apps, microservices, and backend jobs, applying to any backend system requiring centralized log storage and event correlation.

Why are my Node.js logs not showing up in the PostHog Logs dashboard?

If your logs are not showing up, verify that your OTLP exporter is correctly configured, your PostHog project token is valid, and the environment variables for the endpoint and credentials are properly set.