# pgBadger 13.4 adds per-host connection time series and cloud log parsing

> **Key takeaway:** pgBadger 13.4 turns the connections-per-host report into a time series, auto-adapts query and session histograms, and natively parses AlloyDB, CloudSQL and Azure Database for PostgreSQL log exports.

**Published:** 2026-12-05T10:02:36.346537+00:00 
**Source:** PostgreSQL Official News 
**Category:** databases-storage 
**Canonical URL:** https://fosswire.org/news/pgbadger-134-adds-per-host-connection-time-series-and-cloud 

## Summary
pgBadger 13.4, the maintenance release of the PostgreSQL log analyzer authored by Gilles Darold, ships a set of reporting and parsing improvements on top of the usual bug fixes and user-submitted patches. The headline reporting change is a time series graph beneath the existing "Connections per host" pie chart and table, showing how many connections each client host opened per averaging period (5 minutes by default), with a new --top-hosts option controlling how many hosts are drawn and an "Others" series aggregating the rest.

On the parsing side, the release adds support for Google Cloud Logging exports of AlloyDB and CloudSQL logs, which were previously unparsed or only partially parsed, and for Azure Database for PostgreSQL logs archived to a storage account via Diagnostic Settings in PT1H.json JSON Lines blobs. Those Azure logs are now autodetected as jsonlog instead of producing an empty report that users had to convert with jq. Query and session histograms now adapt their default inbounds to the durations actually found in the logs, HTML reports gain permalink anchors for top queries and errors, and durations are reported with three decimals rather than being rounded to whole milliseconds.

## What changes in pgBadger 13.4
- **Connections per host time series:** A new graph below the pie chart and table plots each host's connection count per averaging period (--average minutes, default 5); only the busiest hosts are drawn and the remainder are summed into an "Others" series so the totals still match, with --top-hosts setting the number drawn (default 10, 0 disables the graph).
- **Adaptive histograms:** Default inbounds for query and session time histograms are now finer and leading/trailing empty ranges are dropped, so a setup with log_min_duration_statement = 1000 no longer collapses into two useful bars; --histogram-query and --histogram-session still accept custom inbounds and report all their ranges as before.
- **Cloud log formats:** Google Cloud Logging exports of AlloyDB and CloudSQL PostgreSQL logs are now parsed, and Azure Database for PostgreSQL PT1H.json blobs (PostgreSQLLogs category, JSON Lines) are autodetected as jsonlog; the message property is parsed with the --prefix given on the command line to extract user, database, client and application, while detail, hint, context and statement properties are attached so bind parameters and error details survive.
- **Prefix fallback:** When no --prefix is supplied or it does not match the Azure log line, pgBadger falls back to the timestamp, processId, errorLevel and sqlerrcode properties of the JSON record.
- **Report usability and precision:** Top queries and top errors entries in the HTML report get permalink anchors to their existing unique detail-cell ids, and convert_time() no longer uses sprintf("%.3d"), so sub-millisecond min/max/avg durations are shown with three decimals instead of being reported as 0ms.

## Why it matters
pgBadger is one of the standard post-mortem tools for PostgreSQL performance work, so the adaptive histograms and sub-millisecond duration reporting directly improve the accuracy of slow-query triage for DBAs tuning log_min_duration_statement thresholds. Native parsing of AlloyDB, CloudSQL and Azure Database for PostgreSQL exports removes the jq conversion step that managed-database users previously needed before they could analyze logs, making the tool usable against cloud log archives without preprocessing.