I am trying to define a template script that uses a regular expression as part of the where clause. The following code works fine and filters out the data for the tags values that contain test.
var filter = /test/
var data = stream
.where(lambda: “server” =~ filter )
I am trying to convert this into a template tick script and populate jobs using json files. However I can’t get the filter var to work when it is defined in a json file.
Any ideas or pointers welcome.