ubuntuusers.de

syslog, mail.log und weitere logs

Status: Ungelöst | Ubuntu-Version: Ubuntu 22.04 (Jammy Jellyfish)
Antworten |

Krischu

Avatar von Krischu

Anmeldungsdatum:
5. März 2015

Beiträge: 146

Nachdem ich mein System auf Ubuntu 22.04 (von vorher 18.04) migriert hatte, wunderte ich mich zunächst, daß postfix nicht mehr in /var/log/syslog loggte. Statdessen in /var/log/mail.log.

Nun gut, auch schön. Aber ab dem 1.10.23 ist mein mail.log leer (0 Bytes) Und von mail nichts mehr.

Des weiteren hagelt es im Moment ufw logs in syslog, wie Oct 4 12:37:32 mail kernel: [525940.159290] [UFW BLOCK] (mail ist mein hostname).

Die gleichen logs stehen aber zusätzlich in /var/log/ufw.log.

Wer kann mir da helfen? Danke im voraus.

Den log von ufw in syslog konnte ich inzwischen abstellen, in dem ich in /etc/rsyslog.d/20-ufw.conf die letzte Zeile auskommentiert habe:

1
2
3
4
5
6
7
# Log kernel generated UFW log messages to file
:msg,contains,"[UFW " /var/log/ufw.log

# Uncomment the following to stop logging anything that matches the last rule.
# Doing this will stop logging kernel generated UFW log messages to the file
# normally containing kern.* messages (eg, /var/log/kern.log)
& stop

/etc/rsyslog.d/50-defaults.conf:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20


#  Default rules for rsyslog.
#
#                       For more information see rsyslog.conf(5) and /etc/rsyslog.conf

#
# First some standard log files.  Log by facility.
#
auth,authpriv.*                 /var/log/auth.log
*.*;auth,authpriv.none          -/var/log/syslog
#cron.*                         /var/log/cron.log
#daemon.*                       -/var/log/daemon.log
kern.*                          -/var/log/kern.log
#lpr.*                          -/var/log/lpr.log
mail.*                          -/var/log/mail.log
#user.*                         -/var/log/user.log

....
....

Und, merkwürdig, in /var/log sind einige .log-Files mi 0 Bytes vom Oct 1 00:00:

1
2
3
4
5
-rw-r-----  1 syslog    adm                    0 Oct  1 00:00 auth.log
-rw-rw----  1 root      utmp                   0 Oct  1 00:00 btmp
-rw-r-----  1 syslog    adm                    0 Oct  1 00:00 mail.err
-rw-r-----  1 syslog    adm                    0 Oct  1 00:00 mail.log
-rw-r--r--  1 root      root                   0 Oct  1 00:00 ubuntu-advantage-timer.log
Antworten |