Greetings.
The buildvm's were installed with Fedora 19 last week (and it's been going well), however I noticed today that we aren't getting much logging from them. This is due to the fact that the rsyslog config we were using wasn't loading the journald module, so it wasn't pulling log messages from journald.
I'd like to fix this with the attached ansible patch.
If it causes a problem, it should be easy to revert. I can also update 1 builder first, make sure it's ok and then do the rest.
+1s?
kevin -- --- a/roles/base/files/rsyslog/rsyslog.conf.kojibuilder +++ b/roles/base/files/rsyslog/rsyslog.conf.kojibuilder @@ -6,6 +6,7 @@ #### MODULES ####
$ModLoad imuxsock.so # provides support for local system logging (e.g. via logger command) +$ModLoad imjournal # provides access to the systemd journal $ModLoad imklog.so # provides kernel logging support (previously done by rklogd) #$ModLoad immark.so # provides --MARK-- message capability
@@ -20,9 +21,19 @@ $ModLoad imklog.so # provides kernel logging support (previously done by rklogd
#### GLOBAL DIRECTIVES ####
+# Include all config files in /etc/rsyslog.d/ +$IncludeConfig /etc/rsyslog.d/*.conf + # Use default timestamp format $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
+# Turn off message reception via local log socket; +# local messages are retrieved through imjournal now. +$OmitLocalLogging on + +# File to store the position in the journal +$StateFile imjournal.state + #### RULES ####
# Log all kernel messages to the console.
On Tue, Sep 3, 2013 at 9:45 PM, Kevin Fenzi kevin@scrye.com wrote:
Greetings.
The buildvm's were installed with Fedora 19 last week (and it's been going well), however I noticed today that we aren't getting much logging from them. This is due to the fact that the rsyslog config we were using wasn't loading the journald module, so it wasn't pulling log messages from journald.
I'd like to fix this with the attached ansible patch.
If it causes a problem, it should be easy to revert. I can also update 1 builder first, make sure it's ok and then do the rest.
+1s?
kevin
-- --- a/roles/base/files/rsyslog/rsyslog.conf.kojibuilder +++ b/roles/base/files/rsyslog/rsyslog.conf.kojibuilder @@ -6,6 +6,7 @@ #### MODULES ####
$ModLoad imuxsock.so # provides support for local system logging (e.g. via logger command) +$ModLoad imjournal # provides access to the systemd journal $ModLoad imklog.so # provides kernel logging support (previously done by rklogd) #$ModLoad immark.so # provides --MARK-- message capability
@@ -20,9 +21,19 @@ $ModLoad imklog.so # provides kernel logging support (previously done by rklogd
#### GLOBAL DIRECTIVES ####
+# Include all config files in /etc/rsyslog.d/ +$IncludeConfig /etc/rsyslog.d/*.conf
# Use default timestamp format $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
+# Turn off message reception via local log socket; +# local messages are retrieved through imjournal now. +$OmitLocalLogging on
+# File to store the position in the journal +$StateFile imjournal.state
#### RULES ####
# Log all kernel messages to the console.
+1
On 09/03/2013 03:45 PM, Kevin Fenzi wrote:
Greetings.
The buildvm's were installed with Fedora 19 last week (and it's been going well), however I noticed today that we aren't getting much logging from them. This is due to the fact that the rsyslog config we were using wasn't loading the journald module, so it wasn't pulling log messages from journald.
I'd like to fix this with the attached ansible patch.
If it causes a problem, it should be easy to revert. I can also update 1 builder first, make sure it's ok and then do the rest.
+1s?
kevin
--- a/roles/base/files/rsyslog/rsyslog.conf.kojibuilder +++ b/roles/base/files/rsyslog/rsyslog.conf.kojibuilder @@ -6,6 +6,7 @@ #### MODULES ####
$ModLoad imuxsock.so # provides support for local system logging (e.g. via logger command) +$ModLoad imjournal # provides access to the systemd journal $ModLoad imklog.so # provides kernel logging support (previously done by rklogd) #$ModLoad immark.so # provides --MARK-- message capability
@@ -20,9 +21,19 @@ $ModLoad imklog.so # provides kernel logging support (previously done by rklogd
#### GLOBAL DIRECTIVES ####
+# Include all config files in /etc/rsyslog.d/ +$IncludeConfig /etc/rsyslog.d/*.conf
# Use default timestamp format $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
+# Turn off message reception via local log socket; +# local messages are retrieved through imjournal now. +$OmitLocalLogging on
+# File to store the position in the journal +$StateFile imjournal.state
#### RULES ####
# Log all kernel messages to the console.
infrastructure mailing list infrastructure@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/infrastructure
+1. As mentioned on IRC, not sure if the "imjournal" line needs .so at the end or not.
-Ricky
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
El Tue, 3 Sep 2013 13:45:15 -0600 Kevin Fenzi kevin@scrye.com escribió:
Greetings.
The buildvm's were installed with Fedora 19 last week (and it's been going well), however I noticed today that we aren't getting much logging from them. This is due to the fact that the rsyslog config we were using wasn't loading the journald module, so it wasn't pulling log messages from journald.
I'd like to fix this with the attached ansible patch.
If it causes a problem, it should be easy to revert. I can also update 1 builder first, make sure it's ok and then do the rest.
+1s?
kevin
--- a/roles/base/files/rsyslog/rsyslog.conf.kojibuilder +++ b/roles/base/files/rsyslog/rsyslog.conf.kojibuilder @@ -6,6 +6,7 @@ #### MODULES ####
$ModLoad imuxsock.so # provides support for local system logging (e.g. via logger command) +$ModLoad imjournal # provides access to the systemd journal $ModLoad imklog.so # provides kernel logging support (previously done by rklogd) #$ModLoad immark.so # provides --MARK-- message capability @@ -20,9 +21,19 @@ $ModLoad imklog.so # provides kernel logging support (previously done by rklogd #### GLOBAL DIRECTIVES ####
+# Include all config files in /etc/rsyslog.d/ +$IncludeConfig /etc/rsyslog.d/*.conf
# Use default timestamp format $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
+# Turn off message reception via local log socket; +# local messages are retrieved through imjournal now. +$OmitLocalLogging on
+# File to store the position in the journal +$StateFile imjournal.state
#### RULES ####
# Log all kernel messages to the console.
Looks fine to me +1
Dennis
infrastructure@lists.fedoraproject.org