Skip to navigation
Watch our latest webinar on demand: Optimizing Postgres with Claude Code and the pganalyze MCP Server.
pganalyze
  • Docs
  • Our Key Features
    Query AdvisorDetect and fix Postgres query plan problemsIndex AdvisorFaster queries, less guessworkVACUUM AdvisorOptimize bloat, freezing and VACUUM performanceWorkbooksDedicated environment for query optimization
    All features
  • Fix Slow QueriesEnterprise Scale
  • Pricing
  • Blog
  • WebinarseBooksToolsCustomer StoriesBlogNewsletter
  • About usCareers
  • Contact
LoginFree Trial
pganalyze
Docs
Query AdvisorDetect and fix Postgres query plan problemsIndex AdvisorFaster queries, less guessworkVACUUM AdvisorOptimize bloat, freezing and VACUUM performanceWorkbooksDedicated environment for query optimization
See all features
Fix Slow QueriesEnterprise Scale
PricingBlog
WebinarseBooksToolsCustomer StoriesBlogNewsletter
About usCareers
Contact
Free TrialLog in
    • 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
    • Query Advisor
    • EXPLAIN Plans
    • Workbooks
    • Index Advisor
    • Indexing Engine
    • VACUUM Advisor
    • Schema Statistics
    • Log Insights
    • Connections
    • Alerts & Check-Up
    • Account Management
    • MCP Server (Preview)
    • 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
  • Postgres Query Formatter
  • 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
© 2026 Duboce Labs, Inc.