AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

logs-java

PostHog logs for Java

Original source
posthog
License
MIT
Pinned revision
cac7c80a9e5b73484d18eda1bffb47297c938e0c

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

Ask your assistant

Use Agentic Memory skills to read posthog--logs-java at revision cac7c80a9e5b73484d18eda1bffb47297c938e0c, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 8

references/start-here.md

Getting started with logs - Docs

New to logging? Read Why you need logs first for a primer on what logs show you that nothing else does.

Install and configure logging

PostHog logs is a powerful logging solution that works with the OpenTelemetry Protocol (OTLP). You don't need any vendor specific SDKs – just use standard OpenTelemetry libraries.

Install and configure your logging client to send logs to PostHog:

  • Use the HTTP endpoint: https://us.i.posthog.com/i/v1/logs
  • Authenticate with your project token (the same token used for events/exceptions)
  • Include the token in the Authorization header or as a ?token= query parameter
  • Use the standard OTLP log format

Configure your logging client

Search and analyze your logs

Once your logs are flowing into PostHog, you can:

  • Search through logs using multiple search tokens, negative filters, and exact phrase matching
  • Filter by time ranges to find specific events
  • Correlate logs with events from your PostHog analytics

Navigate to the Logs section in your PostHog dashboard to start exploring your log data.

Learn how to search logs

Troubleshooting

Common issues you might encounter when setting up logging:

  • Authentication errors - Make sure you're using your correct project token
  • Connection issues - Verify the HTTP endpoint is accessible
  • Log format problems - Ensure you're using the standard OTLP log format

Troubleshoot common issues

Logging best practices

Learn what to log, how to structure your logs, and the patterns that make logs actually useful in production – including wide events, strategic sampling, and adding business context.

Read the best practices guide

1/4

Install and configure logging RequiredSearch and analyze your logs RequiredTroubleshooting RecommendedLogging best practices Recommended

Install and configure logging

Required

Community questions

Ask a question

Was this page useful?

HelpfulCould be better