i have data being collected by logstash and depending on the string match i will insert into one influx or another for example:
if [@influx_measurement] =~ /(ABC_.*)
then insert into influxA etc...
bit i need to add something more like:
if [@influx_measurement] =~ /(ABC_.) and TAG VALUES (name) FROM /(ABC.) == serverA
then insert into influxB etc...
Just basically depending that if a tag value from key "name" in measurement (ABC.*) matches "serverA" then insert into influx instanceB. help please?