From e61f3b23d47903b30ac0ce591a200dc5edc4f979 Mon Sep 17 00:00:00 2001 From: Ales Kozumplik Date: Tue, 11 Oct 2011 15:54:12 +0200 Subject: [PATCH] rsyslgod config: hardcode the hostname for virtio forwarding. The value systemd provides at this early point when rsyslogd starts is "(none)". This makes the receiving syslog unable to parse the incoming messages. Resolves: rhbz#744544 --- share/config_files/rsyslog.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/config_files/rsyslog.conf b/share/config_files/rsyslog.conf index 64728b88..e568e536 100644 --- a/share/config_files/rsyslog.conf +++ b/share/config_files/rsyslog.conf @@ -23,7 +23,7 @@ $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat $template anaconda_tty4, "%syslogseverity-text:::uppercase% %programname%:%msg%\n" $template anaconda_syslog, "%timestamp:8:$:date-rfc3164%,%timestamp:1:3:date-subseconds% %syslogseverity-text:::uppercase% %programname%:%msg%\n" -$template virtio_ForwardFormat, "<%PRI%>%TIMESTAMP:::date-rfc3339% %HOSTNAME% %syslogtag:1:32%%msg:::sp-if-no-1st-sp%%msg%\n" +$template virtio_ForwardFormat, "<%PRI%>%TIMESTAMP:::date-rfc3339% localhost %syslogtag:1:32%%msg:::sp-if-no-1st-sp%%msg%\n" #### RULES #### # log everything except anaconda-specific records from local1 (those are stored