We have updated our Terms of Service, Code of Conduct, and Addendum.

Wondering if it's at all possible to do a lookup with multiple match criteria?

Options

Hi Team, Wondering if it's at all possible to do a lookup with multiple match criteria? Currently I am looking up the "index" value from a lookup.csv file based on matching hostname regex, which works fine as expected. But some customer index routing decisions need to match both hostname and appname (tag). So the logic would be something like: If hostname regex matches this pattern AND appname regex matches this pattern, take this index value as "index" field. I suspect this isn't possible with a lookup function... any ideas apart from many eval statements for each case?

Answers