Watch our latest webinar: Fixing & Detecting Slow Postgres Queries with pganalyze Query Advisor.
Logo
  • Resources
  • Enterprise
  • Docs
  • Blog
  • Contact
  • Features
  • Pricing
  • Login
  • Free Trial
    • Overview
    • Installation Guide
      • Overview
      • Initial Setup
      • Log Insights Setup
        • Overview
        • Amazon RDS and Amazon Aurora
        • Azure Database for PostgreSQL
          • Step 1: Set up Managed Identity
          • Step 2: Set up Azure Event Hub
          • Step 3: Stream Postgres Logs into Azure Event Hub
          • Step 4: Adjust Postgres log_line_prefix
          • Step 5: Configure Collector
        • Google Cloud SQL and AlloyDB
        • Heroku Postgres
        • Crunchy Bridge
        • Aiven
        • Self-Managed Server
        • Receive logs using Syslog
        • Receive logs using OpenTelemetry
        • Troubleshooting
      • Automated EXPLAIN Setup
      • Troubleshooting
    • pganalyze Collector
    • Query Performance
    • Workbooks
    • EXPLAIN Plans
    • Index Advisor
    • Indexing Engine
    • VACUUM Advisor
    • Schema Statistics
    • Log Insights
    • Connections
    • Alerts & Check-Up
    • Account Management
    • OpenTelemetry Integration
    • pganalyze Enterprise Server
    • pganalyze GraphQL API
    • Open-Source Components
❮ Log Insights: Setup

Step 3: Stream Postgres Logs into Azure Event Hub

To send logs to the Event Hub, within your database server, go to Diagnostic settings, and add a new diagnostic setting:

  • Category Details: Select "PostgreSQLLogs" under "log"
  • Destination Details: Select "Stream to an event hub", and then select your Event Hub Namespace and Event Hub Name
Screenshot of adding PostgreSQL Diagnostic Setting in Azure Portal

Save the new diagnostic setting. Now your Event Hub should be receiving Postgres log messages.

Continue to Step 4: Adjust your Postgres log_line_prefix

Couldn't find what you were looking for or want to talk about something specific?
Start a conversation with us →
Logo
  • Contact
  • Plans & Pricing
  • Resources
  • Enterprise
  • Documentation
  • Customer Stories
  • Careers
  • Index Advisor
  • Security
  • Status
  • Compare pganalyze
  • Terms of Service
  • Privacy Policy
  • Newsletter
  • SOC 2 Type 2
  • Do Not Sell My Personal Information

Get in touch

Use the contact us form or email sales:
 sales@pganalyze.com

SOC 2 certification

pganalyze is SOC 2 Type 2 certified

pganalyze is SOC 2 Type 2 certified
© 2025 Duboce Labs, Inc.