:: [devuan-dev] bug#720: New rsyslog l…
Top Pagina
Delete this message
Reply to this message
Auteur: Klaus Ethgen
Datum:  
Aan: Devuan Bug Tracking System
Onderwerp: [devuan-dev] bug#720: New rsyslog logs '[localhost]' instead of the real hostname
Package: rsyslog
Version: 8.2210.0-1devuan1
Severity: normal

Since rsyslog update today from 8.2208.0-1devuan1 to 8.2210.0-1devuan1,
all log entries do not log the hostname anymore but instead using
'[localhost]' (literally).

This breaks logcheck as '[' and ']' is not expected in hostname field.

Also it is not possible anymore (more important) to see from which host
the message origins.

-- System Information:
Distributor ID:    Devuan
Description:    Devuan GNU/Linux 5 (daedalus/ceres)
Release:    5
Codename:    daedalus ceres
Architecture: x86_64


Kernel: Linux 5.16.17 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages rsyslog depends on:
ii  init-system-helpers        1.65.2devuan1
ii  libc6                      2.35-3
ii  libestr0                   0.1.11-1
ii  libfastjson4               0.99.9-2
ii  liblognorm5                2.0.6-4
ii  libuuid1                   2.38.1-1.1devuan1
ii  libzstd1                   1.5.2+dfsg-1
ii  lsb-base                   11.4
ii  sysvinit-utils [lsb-base]  3.05-6devuan1
ii  zlib1g                     1:1.2.11.dfsg-4.1


Versions of packages rsyslog recommends:
ii logrotate 3.20.1-1+b1

Versions of packages rsyslog suggests:
ii  rsyslog-doc                       8.2210.0+dfsg-1
pn  rsyslog-gssapi                    <none>
pn  rsyslog-mongodb                   <none>
pn  rsyslog-mysql | rsyslog-pgsql     <none>
pn  rsyslog-openssl | rsyslog-gnutls  <none>
ii  rsyslog-relp                      8.2210.0-1devuan1


-- Configuration Files:
/etc/logcheck/ignore.d.server/rsyslog [Errno 13] Permission denied: '/etc/logcheck/ignore.d.server/rsyslog'
/etc/logrotate.d/rsyslog changed:
/var/log/syslog
{
    rotate 7
    daily
    missingok
    notifempty
    delaycompress
    compress
        create 640 root adm
    postrotate
        /usr/lib/rsyslog/rsyslog-rotate
    endscript
}
/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
/var/log/news/news.crit
/var/log/news/news.err
/var/log/news/news.notice
{
    rotate 4
    weekly
    missingok
    notifempty
    compress
        create 640 root adm
    delaycompress
    sharedscripts
    postrotate
        /usr/lib/rsyslog/rsyslog-rotate
    endscript
}


/etc/rsyslog.conf changed:
module(load="imuxsock") # provides support for local system logging
module(load="imklog")   # provides kernel logging support
$RepeatedMsgReduction off
$template TraditionalFormatWithPRI,"%timegenerated:::date-rfc3339% %hostname% %syslogfacility-text%.%syslogseverity-text%: %syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
$template TraditionalFormatWithPRIColor,"\27[0;35m%timegenerated:::date-rfc3339% \27[0;36m%hostname% \27[0;31m%syslogfacility-text%.%syslogseverity-text%\27[0m: \27[0;32m%syslogtag%\27[0m%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
$FileOwner root
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022
$WorkDirectory /var/spool/rsyslog
$IncludeConfig /etc/rsyslog.d/*.conf
auth,authpriv.*            /var/log/auth.log
*.*;auth,authpriv.none        -/var/log/syslog
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
mail.info            -/var/log/mail.info
mail.warn            -/var/log/mail.warn
mail.err            /var/log/mail.err
*.=debug;\
    auth,authpriv.none;\
    mail.none        -/var/log/debug
*.=info;*.=notice;*.=warn;\
    auth,authpriv.none;\
    cron,daemon.none;\
    mail.none        -/var/log/messages
*.emerg                :omusrmsg:*
daemon,mail.*;\
    *.=debug;*.=info;\
    *.=notice;*.=warn;\
    news.none;authpriv.none;cron.none;\
    cron.notice;authpriv.notice;\
    news.=crit;news.=err /dev/tty12;TraditionalFormatWithPRIColor



-- no debconf information
Gruß
   Klaus
-- 
Klaus Ethgen                                       http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16            Klaus Ethgen <Klaus@???>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C