Hi Paul

The current possibilities in cron-apt are:

SYSLOGON="upgrade"

  When to log the cron-apt results to syslog.
  Value:
    error   (syslog on error runs)
    upgrade (when packages is upgraded)
    changes (syslog when change in output from an action)
    output  (syslog when output is generated)
    always  (always syslog)
    never   (never syslog)
            (else never syslog)


MAILON="error"

  When to send email about the cron-apt results.
  Value:
    error   (send mail on error runs)
    upgrade (when packages are upgraded)
    changes (mail when change in output from an action)
    output  (send mail when output is generated)
    always  (always send mail)
    never   (never send mail)
            (else never send mail)

I guess "output" is what you are after.


// Ola

On Wed, 1 Dec 2021 at 01:54, Paul Wise <p...@debian.org> wrote:

> On Tue, 2021-11-30 at 23:05 +0100, Ola Lundqvist wrote:
>
> > 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.
>
> Thanks for that info.
>
> If this feature gets implemented in logcheck, there could be cron-apt
> options to apply it to either syslog or mails for each of the types of
> output cron-apt sends. An option to send mail/syslog for success too
> would be good for users of this logcheck feature and possibly also
> users who do processing of the results either in a mail client plugin
> or in a syslog database and search system like Elasticsearch or Loki.
>
> --
> 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