all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Stoiko Ivanov <s.ivanov@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [PATCH pmg-api 1/4] config: add log-tracker-base key
Date: Mon,  8 Jun 2026 13:29:39 +0200	[thread overview]
Message-ID: <20260608112952.679449-2-s.ivanov@proxmox.com> (raw)
In-Reply-To: <20260608112952.679449-1-s.ivanov@proxmox.com>

makes it possible to override the input-base parameter for
pmg-log-tracker - functionality there was added in:
9816d19 ("fix #3657: allow scanning a configurable rotated log series")

the pattern allows for a input-base with a maximal depth of 6
directories, which should cover all needs.

the default in the config is /var/log/syslog and will be explicitly
provided to pmg-log-tracker if nothing is set in pmg.conf

exposing the option in pmg.conf enables users to use a different
log location for the daily work.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
---
 src/PMG/Config.pm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/PMG/Config.pm b/src/PMG/Config.pm
index a2ddbb3a..6322774e 100644
--- a/src/PMG/Config.pm
+++ b/src/PMG/Config.pm
@@ -155,6 +155,12 @@ EODESC
             pattern => '^\p{PosixPrint}{1,998}$',
             default => 'Proxmox Mail Gateway <postmaster>',
         },
+        'log-tracker-base' => {
+            description => "Location of rotated mail logs, input-base argument for pmg-log-tracker",
+            type => 'string',
+            pattern => '^/([^/\0]+\/){0,6}[^/\0]+$',
+            default => '/var/log/syslog',
+        },
     };
 }
 
@@ -175,6 +181,7 @@ sub options {
         dkim_selector => { optional => 1 },
         'dkim-use-domain' => { optional => 1 },
         'admin-mail-from' => { optional => 1 },
+        'log-tracker-base' => { optional => 1 },
     };
 }
 
-- 
2.47.3





  reply	other threads:[~2026-06-08 11:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-08 11:29 [PATCH pmg-api/pmg-docs/pmg-gui 0/4] tracking-center: make input-base configurable Stoiko Ivanov
2026-06-08 11:29 ` Stoiko Ivanov [this message]
2026-06-08 22:37   ` [PATCH pmg-api 1/4] config: add log-tracker-base key Thomas Lamprecht
2026-06-08 11:29 ` [PATCH pmg-api 2/4] fix #3657: api: tracking center: explicitly set input base from config Stoiko Ivanov
2026-06-08 11:29 ` [PATCH pmg-gui 3/4] fix #2091: system options: add log-tracker-base textrow Stoiko Ivanov
2026-06-08 11:29 ` [PATCH pmg-docs 4/4] pmg-log-tracker: mention that input-base can be configured via GUI Stoiko Ivanov
2026-06-10  9:25 ` superseded: [PATCH pmg-api/pmg-docs/pmg-gui 0/4] tracking-center: make input-base configurable Stoiko Ivanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260608112952.679449-2-s.ivanov@proxmox.com \
    --to=s.ivanov@proxmox.com \
    --cc=pmg-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal