Hello,
I have a lookup that will only have one column (MY_COL), this column will always have at least one row but could have multiple. I am trying to take the value of the row(s) and use them in a search query like this
index=my_index RuleID=(INSERT LOOKUP VALUES HERE, IF MULTIPLE MAKE IT AN OR STATEMENT)
| table RuleID, etc, etc,
Is there a clean way to do this?
Thanks in advance!
Try a subsearch.
index=my_index RuleID=[ |inputlookup mylookup.csv | rename MY_COL as RuleID | fields | RuleID | format ]
| table RuleID, etc, etc,
If you run the subsearch by itself, you'll see how the lookup contents are converted into a series of OR clauses.
Try a subsearch.
index=my_index RuleID=[ |inputlookup mylookup.csv | rename MY_COL as RuleID | fields | RuleID | format ]
| table RuleID, etc, etc,
If you run the subsearch by itself, you'll see how the lookup contents are converted into a series of OR clauses.
This worked
Although one weird thing I noted was I had to remove the "=" after RuleID to just have it as
RuleID[ |inputlookup mylookup.csv | rename MY_COL as RuleID | fields RuleID | format]
| table RuleID, etc, etc
Thanks for the assist!