freeze break request: logging on buildvm's

Xavier Lamien laxathom at fedoraproject.org
Tue Sep 3 20:03:16 UTC 2013


On Tue, Sep 3, 2013 at 9:45 PM, Kevin Fenzi <kevin at 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


-- 
Xavier.t
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20130903/260107a3/attachment.html>


More information about the infrastructure mailing list