{% if __rsyslog_input.kernel_message | d(false) | bool %}
module(load="imklog" permitnonkernelfacility="on")
{% endif %}
{% if __rsyslog_input.use_imuxsock | d(false) | bool %}
module(load="imuxsock"    # provides support for local system logging (e.g. via logger command)
       SysSock.RateLimit.Burst="{{ __rsyslog_input.ratelimit_burst | d(200) }}"
       SysSock.RateLimit.Interval="{{ __rsyslog_input.ratelimit_burst | d(0) }}"
       SysSock.Use="on")  # Turn on message reception via local log socket.
input(name="basics_imuxsock" type="imuxsock" socket="/dev/log")
{% else %}
module(load="imuxsock"    # provides support for local system logging (e.g. via logger command)
       SysSock.Use="off") # Turn off message reception via local log socket.
module(load="imjournal"
       StateFile="{{ __rsyslog_work_dir }}/imjournal.state"
       RateLimit.Burst="{{ __rsyslog_input.ratelimit_burst | d(20000) }}"
       RateLimit.Interval="{{ __rsyslog_input.ratelimit_interval | d(600) }}"
       PersistStateInterval="{{ __rsyslog_input.journal_persist_state_interval | d(10) }}")
{% endif %}
{{ lookup('template', 'input_template.j2') }}
