Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miss filter for telegraf_agent_output #148

Open
falon opened this issue Nov 26, 2021 · 0 comments
Open

miss filter for telegraf_agent_output #148

falon opened this issue Nov 26, 2021 · 0 comments

Comments

@falon
Copy link

falon commented Nov 26, 2021

here you should add

{% if item.filter is defined %}
{% if item.filter.name is defined %}
    [outputs.{{ item.type }}.{{ item.filter.name }}]
{% if item.filter.config is defined and item.filter.config is iterable %}
{% for items in item.filter.config %}
        {{ items }}
{% endfor %}
{% endif %}
{% endif %}
{% endif %}

many output agent need filters. For instance see at output.http.headers in output http plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant