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

Messages directed only to the first target when a format function is defined #690

Open
gsaviane opened this issue Feb 1, 2024 · 2 comments

Comments

@gsaviane
Copy link

gsaviane commented Feb 1, 2024

The following configuration

[telegraf/raspberrypi/weather]
format = openweathermap_format()
targets = smtp:user, file:mqttwarnlog, log:info
title = "Weather forecast"

Routes messages only to the first target (smtp), although the documentation states that all the targets should receive messages. If I change the order of the targets, like

[telegraf/raspberrypi/weather]
format = openweathermap_format()
targets = file:mqttwarnlog, smtp:user, log:info
title = "Weather forecast"

Then the file target only would receive the messages.

@amotl
Copy link
Member

amotl commented Mar 27, 2024

Dear @gsaviane,

omg, thank you for reporting that flaw. Why don't we have a corresponding test case, and why didn't anyone else report this problem before? We will look into it on the next development iteration.

With kind regards,
Andreas.

@amotl
Copy link
Member

amotl commented Mar 28, 2024

Does the problem just happen if, how you are describing it, »when a format function is defined«?

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

2 participants