Hi @pm771 The searchmatch command is applying the parameter you pass it as if was in the original search, so "TWO THREE" is like "index=test TWO THREE" which is the same as "index=test THREE TWO" in SPL terms. (Like you said, its doing an AND). If you want to search literally for "TWO THREE" then you need to do this: | eval match=IF(searchmatch("\"TWO THREE\""),1,0) which is to add a set of escaped quotes around the text, this would be like running the below, if you follow what I mean? index=test "TWO THREE" Here are some comparisons that might help:: | makeresults
| eval _raw="ONE TWO THREE FOUR"
| eval match1=IF(searchmatch("TWO THREE"),1,0)
| eval match2=IF(searchmatch("THREE TWO"),1,0)
| eval match3=IF(searchmatch("SIX"),1,0)
| eval match4=IF(searchmatch("\"TWO THREE\""),1,0)
| eval match5=IF(searchmatch("\"THREE TWO\""),1,0) Please let me know how you get on and consider adding karma to this or any other answer if it has helped. Regards Will
... View more