Creating boolean tags in Telegraf

Based on the value of some tag or field, I want to make a conditional that returns either true or false and saves that in a new tag.

The only way I have found to sort of do this is using the regex processor, and if it matches the pattern I save that output in a new tag. It’s not a boolean, but at least something I can work with.

Is there a better way to accomplish this?

You could also use the enum processor?

1 Like

The docs for the enum processor can be found here.

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.