logs-go

Configure Go OTel OTLP exporter to send logs to PostHog endpoint.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Go applications often emit logs in their native format and lack a centralized pipeline for observability. This skill provides a ready-to-use path to ingest Go logs into PostHog using the OpenTelemetry Protocol (OTLP).

Core Features & Use Cases

  • Easy integration: configure a Go OTLP exporter to send logs to PostHog.
  • Centralized observability: unify Go service logs with your PostHog dashboards for analytics and debugging.
  • Secure by default: leverage environment-based configuration and token-based authentication to protect log data.

Quick Start

Configure the OpenTelemetry OTLP log exporter in your Go application to send logs to PostHog.

Frequently Asked Questions about logs-go

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

FAQPage Schema
How do I send Go application logs to PostHog using OpenTelemetry?

To send Go application logs to PostHog, configure an OpenTelemetry OTLP exporter in your Go backend service targeting the PostHog endpoint. You must also provide your project token for authentication.

What is the PostHog endpoint for ingesting OTLP logs from Go apps?

The PostHog endpoint for ingesting OTLP logs is us.i.posthog.com/i/v1/logs. You configure your OpenTelemetry Go SDK exporter to send logs to this specific URL.

Do I need the OpenTelemetry Go SDK to ingest logs into PostHog?

Yes, you need the OpenTelemetry Go SDK and an OTLP exporter configured to the PostHog endpoint. This provides the required pipeline to ship logs from your Go apps.

Can I use environment variables to configure PostHog log ingestion in Go?

Yes, PostHog log ingestion supports environment-based configuration. This secure-by-default approach allows you to manage your OTLP exporter settings and project token without hardcoding them.

Why ingest Go service logs into PostHog instead of just using standard logging?

Ingesting Go service logs into PostHog provides centralized observability. It unifies your native logs with PostHog dashboards for better analytics, troubleshooting, and debugging.