The match( ) function is regex pattern matching, it'll match any strings that contain the value specified so you don't need to wildcard with it. That can be a pain when you want an exact match which is why I provided the second option that uses "^scanner". This checks that the values starts with "scanner", although a better version would be "^scanner$", this would be an exact match. ^ : Start of string $ : End of string You can see the documentation here: Comparison and Conditional functions - Splunk Documentation And for regex help, try somewhere like regex101: build, test, and debug regex When you say a combo, do you mean if the src_ip OR the dest_ip is a scanner ? <your search>
| lookup iplookupfile.csv ips as src_ip OUTPUT comments as src_ip_comments | lookup iplookupfile.csv ips as dest_ip OUTPUT comments as dest_ip_comments
| where !match(src_ip_comments , "scanner") AND !match(dest_ip_comments , "scanner")
... View more