Commit 9c314e8a by Max Rothman

Fix bug with recursive flag (see comment)

parent 276a5eab
......@@ -3,7 +3,11 @@
{% for loggable in SPLUNKFORWARDER_LOG_ITEMS%}
[monitor://{{ loggable.source }}]
blacklist = \.(gz)$
recursive = {{ loggable.recursive|default(false) }}
{% if loggable.recursive | default(False) %}
{# There's a bug in which "recursive" must be unset for logs to be forwarded #}
{# See https://answers.splunk.com/answers/420901/splunk-not-matching-files-with-wildcard-in-monitor.html #}
recursive = true
{% endif %}
{% if loggable.sourcetype is defined %}
sourcetype = {{ loggable.sourcetype }}
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment