From 23c7a029ce142eb0eb33b02346d2707cef305fc6 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Thu, 13 Oct 2011 10:31:45 -0400 Subject: [PATCH] rsyslog.conf: hardcode hostname for virtio forwarding (#744544) Patch by Ales Kozumplik The value syslogd provides at this early point when kickstart starts is "(none)". This makes the receiving syslog unable to parse the incoming messages. --- 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