Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2849

General Questions • Re: [Software] Logwatch with JournalCtl

$
0
0
Hello, thanks for the reminder :)
I finally tested in a VM.
A quick search for "logwatch JournalCtl ssh" gave me a solution that works.

Code:

$> cat /etc/logwatch/conf/services/sshd.conf Logfile =Logfile = none*JournalCtl = "--output=cat --unit=ssh.service"

Code:

#> logwatch --range today --detail high  ################### Logwatch 7.7 (07/22/22) ####################         Processing Initiated: Tue Aug 13 00:52:24 2024        Date Range Processed: today                              ( 2024-Aug-13 )                              Period is day.        Detail Level of Output: 10        Type of Output/Format: stdout / text        Logfiles for Host: localhost ##################################################################   --------------------- dpkg status changes Begin ------------------------  Installed:    smartmontools:amd64 7.3-1+b1  ---------------------- dpkg status changes End -------------------------   --------------------- EXIM Begin ------------------------   --- Queue Runners ---   Start queue run: 2 Time(s)   End queue run: 2 Time(s)  ---------------------- EXIM End -------------------------   --------------------- SSHD Begin ------------------------   Illegal users from:    192.168.122.1: 4 Times       illegalUser: 4 Times  ---------------------- SSHD End -------------------------   --------------------- Disk Space Begin ------------------------  Filesystem      Size  Used Avail Use% Mounted on /dev/vda1        19G  1.6G   17G   9% /   ---------------------- Disk Space End -------------------------   ###################### Logwatch End #########################
I can't say for smartd because the service doesn't run in a VM. However, this configuration file does not trigger any errors:

Code:

$> cat /etc/logwatch/conf/services/smartd.conf Logfile =Logfile = none*JournalCtl = "--output=cat --unit=smartd.service"
Can you please let us know if this works @MartinLodbrok?

Statistics: Posted by fabien — 2024-08-12 22:50



Viewing all articles
Browse latest Browse all 2849

Trending Articles