From fb300dce71ef64dfaec41e8bf4fcb149627c0519 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Thu, 11 Dec 2025 13:35:50 +0200 Subject: [PATCH 1/2] Add doveadm_http_request_finished event --- data/events.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/data/events.js b/data/events.js index 35abd6b29..07a430ce7 100644 --- a/data/events.js +++ b/data/events.js @@ -1896,4 +1896,22 @@ characters and no control characters. sql_driver: `Name of the sql driver, e.g. \`mysql\` or \`cassandra\`.`, }, }, + + doveadm_http_request_finished: { + inherit: 'connection_client_finished', + fields: { + local_port: `Local port.`, + remote_ip: `Remote IP address.`, + remote_port: `Remote port.`, + user: `Full username.`, + command: `Doveadm command used`, + exit_code: `Exit code of the command`, + method: `HTTP method used`, + url: `HTTP URL used`, + agent: `Value of User-Agent header`, + http_status: `HTTP response status code`, + http_reason: `Reason for status code`, + }, + }, + } From 789dbbdcbfadd01d277aa9f7507fbe6e4517ee3d Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Thu, 11 Dec 2025 13:38:07 +0200 Subject: [PATCH 2/2] upgrade: Add upgrade note about logging --- docs/installation/upgrade/2.4-to-2.4.x.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/installation/upgrade/2.4-to-2.4.x.md b/docs/installation/upgrade/2.4-to-2.4.x.md index bb4b852d2..e2f3ee344 100644 --- a/docs/installation/upgrade/2.4-to-2.4.x.md +++ b/docs/installation/upgrade/2.4-to-2.4.x.md @@ -44,6 +44,12 @@ changed to `2.4.2`. ### v2.4.2 to v2.4.3 +#### Logging change + +Doveadm HTTP client logging is changed to event based, so the Apache-style status line is no longer logged, +you can still log using [[event,doveadm_http_request_finished]] with [[link,event_exporter]], but the format +will be different. + #### Changed Setting Defaults These changes don't take effect until [[setting,dovecot_config_version]] is