Kann mir jemand einen hilfreichen Tipp zu folgendm Problem geben:
Es gehr dabei um einen DEBIAN Bookworm-Server.
Seit einigen Tagen tauchen in der /var/log/syslog keine Einträge mehr auf. Bisher habe ich folgendes versucht:
1.
root@srv-cloud:~# sudo systemctl status syslog.service
Code: Alles auswählen
● rsyslog.service - System Logging Service
Loaded: loaded (/lib/systemd/system/rsyslog.service; enabled; preset: enabled)
Active: active (running) since Sat 2023-08-19 23:46:42 CEST; 16min ago
TriggeredBy: ● syslog.socket
Docs: man:rsyslogd(8)
man:rsyslog.conf(5)
https://www.rsyslog.com/doc/
Main PID: 888 (rsyslogd)
Tasks: 4 (limit: 16609)
Memory: 4.2M
CPU: 97ms
CGroup: /system.slice/rsyslog.service
└─888 /usr/sbin/rsyslogd -n -iNONE
Aug 19 23:46:42 srv-cloud systemd[1]: Starting rsyslog.service - System Logging Service...
Aug 19 23:46:42 srv-cloud rsyslogd[888]: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd. [v8.2302.0]
Aug 19 23:46:42 srv-cloud rsyslogd[888]: [origin software="rsyslogd" swVersion="8.2302.0" x-pid="888" x-info="https://www.rsyslog.com"] start
Aug 19 23:46:42 srv-cloud systemd[1]: Started rsyslog.service - System Logging Service.
Aug 20 00:00:12 srv-cloud systemd[1]: rsyslog.service: Sent signal SIGHUP to main process 888 (rsyslogd) on client request.
Aug 20 00:00:12 srv-cloud rsyslogd[888]: [origin software="rsyslogd" swVersion="8.2302.0" x-pid="888" x-info="https://www.rsyslog.com"] rsyslogd was HUPed
Ein Blick in die syslog.conf:
Code: Alles auswählen
root@srv-cloud:~# nano /etc/rsyslog.conf
GNU nano 7.2 /etc/rsyslog.conf
# /etc/rsyslog.conf configuration file for rsyslog
#
# For more information install rsyslog-doc and see
# /usr/share/doc/rsyslog-doc/html/configuration/index.html
#################
#### MODULES ####
#################
module(load="imuxsock") # provides support for local system logging
module(load="imklog") # provides kernel logging support
#module(load="immark") # provides --MARK-- message capability
# provides UDP syslog reception
#module(load="imudp")
#input(type="imudp" port="514")
# provides TCP syslog reception
#module(load="imtcp")
#input(type="imtcp" port="514")
###########################
#### GLOBAL DIRECTIVES ####
###########################
#
# Set the default permissions for all log files.
#
$FileOwner root
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022
#
# Where to place spool and state files
#
$WorkDirectory /var/spool/rsyslog
#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf
###############
#### RULES ####
###############
#
# Log anything besides private authentication messages to a single log file
#
#
# Log commonly used facilities to their own log file
#
#
# Emergencies are sent to everybody logged in.
#
*.emerg :omusrmsg:*
Manuelles Schreiben einer LOG-Nachricht:
Code: Alles auswählen
logger -p auth.info "Test message"
Ich bin an dieser Stelle mit meinem Latein am Ende. Bestimmt gibt es hier jemanden,
der/die mir weiterhelfen kann?
Ich würde mich freuen.
Viele Grüße