freeze break request: logging on buildvm's
Ricky Elrod
codeblock at elrod.me
Tue Sep 3 20:16:46 UTC 2013
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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20130903/35b54984/attachment.sig>
More information about the infrastructure
mailing list