Added extra filtering possibilities for a plugin

This commit is contained in:
Werner Dijkerman
2019-12-01 16:23:09 +01:00
parent 0006d91e5e
commit a55ef0b0c0
4 changed files with 42 additions and 9 deletions

View File

@ -27,6 +27,16 @@
{{ items }}
{% endfor %}
{% endif %}
{% if item.value.filter is defined %}
{% if item.value.filter.name is defined %}
[inputs.{{ item.value.plugin | default(item.key) }}.{{ item.value.filter.name | default("grok") }}]
{% if item.value.filter.config is defined and item.value.filter.config is iterable %}
{% for items in item.value.filter.config %}
{{ items }}
{% endfor %}
{% endif %}
{% endif %}
{% endif %}
{% if item.value.objects is defined and item.value.objects is iterable %}
{% for object in item.value.objects %}
[[inputs.{{ item.value.plugin | default(item.key) }}.object]]