Did this problem ever get identified/fixed? I am having the same issue as the original poster. I am using Version 4.2 and influxdb 1.2 and am trying to use templating with regex and the multiselect
My data is setup with 128 fieldkeys with a naming pattern like this:
XXX_a, XXX_w, XXX_wh, XXX_dwh, YYY_a, YYY_w, YYY_wh, YYY_dwh, and so on. I am trying to filter out everything but the “_w” field keys.
My regex is this setup like this: /^(?!abc|._wh|._a|.*_dwh)/
and my query: SELECT mean(/^$current$/) FROM “energy” WHERE $timeFilter GROUP BY time(1m) fill(null)
The multiselect list has the correct fieldkeys listed, only items that end in “_w”. If I only select one item from the list everything works fine. But when I select multiple items the query also pulls the “_wh” field keys for all items selected but the last one.
I have also noticed it seems to be pulling in any fieldkeys that have a partial name match to one of the selected items. if I select items XXX_w and ZZZ_w I get the following returned.
Any help would be appreciated.