# How We Export Postgres Logs to Third-Party Services

DevFeed: [How We Export Postgres Logs to Third-Party Services](<https://devfeed.tech/articles/how-we-export-postgres-logs-to-third-party-services-5512.md>)

Original publisher: [Read original article](<https://neon.com/blog/logs-open-telemetry>)

Author: Roman Zaynetdinov

Published: 2025-06-24T16:27:45Z

Content type: article

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [Logging](<https://devfeed.tech/topics/logging.md>), [OpenTelemetry](<https://devfeed.tech/topics/opentelemetry.md>), [log management](<https://devfeed.tech/topics/log-management.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [observability](<https://devfeed.tech/topics/observability.md>), [Protocol (disambiguation)](<https://devfeed.tech/topics/protocol.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [blog](<https://devfeed.tech/tags/blog.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [company](<https://devfeed.tech/tags/company.md>), [config](<https://devfeed.tech/tags/config.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [datadog](<https://devfeed.tech/tags/datadog.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [logging](<https://devfeed.tech/tags/logging.md>), [logs](<https://devfeed.tech/tags/logs.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [observability](<https://devfeed.tech/tags/observability.md>), [opentelemetry](<https://devfeed.tech/tags/opentelemetry.md>), [platform](<https://devfeed.tech/tags/platform.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [product](<https://devfeed.tech/tags/product.md>), [tcp](<https://devfeed.tech/tags/tcp.md>), [third-party](<https://devfeed.tech/tags/third-party.md>)

## AI overview

The article explains how Postgres logs are exported to third-party observability platforms. Because the OpenTelemetry Collector could not scrape Kubernetes pod logs by labels and NeonVM contains multiple processes, the implementation uses a push-based design: Postgres sends selected logs through TCP syslog to an OpenTelemetry Collector, which enriches them with Kubernetes metadata and forwards them to Datadog or another destination.

## Source excerpt

We've been supporting metrics export to Datadog for a few months, and we just extended this capability to any OLTP-compatible third party - but it has taken us much longer to ship any sort of Postgres log export. You might wonder: why did it take so long? The question is valid, a...