{% if item.kernel_message | d(false) | bool %}
module(load="imklog" permitnonkernelfacility="on")
{% endif %}
$ModLoad imuxsock # provides support for local system logging (e.g. via logger command)
{% if item.use_imuxsock | d(false) | bool %}
# Turn on message reception via local log socket;
$OmitLocalLogging off
{% else %}
$ModLoad imjournal # provides access to the systemd journal
# Turn off message reception via local log socket;
# local messages are retrieved through imjournal now.
$OmitLocalLogging on
{% endif %}
{{ lookup('template', 'input_template.j2') }}
