Hi Paul

If my memory is correct. I should know since I wrote the cron-apt software
but it was quite some time ago. ... Checking the code now to refresh my
memory...

Emails are sent by default only when apt fails.

All output is logged to the cron-apt log file.

Logs are sent to syslog on "upgrade". By default upgrade is not enabled.

I'm not sure this helps in any way, but I thought I could at least respond
with what I know.

Cheers

// Ola




On Wed, 24 Nov 2021 at 14:42, Paul Wise <p...@debian.org> wrote:

> Package: logcheck
> Severity: wishlist
> X-Debbugs-CC: a...@packages.debian.org,
> unattended-upgra...@packages.debian.org, cron-...@packages.debian.org,
> aptitude-ro...@packages.debian.org
>
> Currently logcheck focuses on /var/log/syslog and /var/log/auth.log but
> it would be nice to have separate filtering for other types of logs
> that normally don't get merged into syslog or the journal.
>
> One of those types of logs is apt upgrade logs. When apt itself is
> invoked, it sends terminal output (including \r but not colours) to the
> apt term.log file. If unattended-upgrades is being run then the same
> output and also output of the apt hooks goes to the additional log file
> unattended-upgrades-dpkg.log (which also contains \r but not colours).
> The unattended-upgrades code may also send a mail with that log output
> but without any \r or colors.
>
> The unattended-upgrades wrapper around apt print various uninteresting
> messages. The cron-apt/aptitude-robot alternatives probably also do the
> same. apt itself prints a lot of messages that aren't interesting.
> The apt hooks shipped by various packages print various uninteresting
> messages. The maintainer scripts shipped by various packages print
> various uninteresting messages.
>
> I'm currently using the attached hacky script with lots of regexes to
> implement apt upgrade log filtering. It seems to me that a better way
> to do this would be to integrate separate apt filtering into logcheck
> and then integrate into each package (including apt) logcheck ignore
> configs containing the regexes that represent uninteresting messages.
>
> There could be an apt hook to use logcheck to filter the apt term.log
> to an apt term-interesting.log and an unattended-upgrades hook to
> filter unattended-upgrades-dpkg.log to a corresponding file and an
> option/hook to filter unattended-upgrades mails. The same could be done
> for cron-apt/aptitude-robot.
>
> --
> bye,
> pabs
>
> https://wiki.debian.org/PaulWise
>


-- 
 --- Inguza Technology AB --- MSc in Information Technology ----
|  o...@inguza.com                    o...@debian.org            |
|  http://inguza.com/                Mobile: +46 (0)70-332 1551 |
 ---------------------------------------------------------------

Reply via email to