I have a search that filters out the value of account number from a log entry USING A REGEX extraction -->
sourcetype="SysLog" | rex field=_raw "To BOA-(?<accountno>\d{1,11})" | dedup accountno
This works as expected which is great. Anywhere where this REGEX is met, this works like a charm and churns out the account no
Now, I have been asked to ONLY APPLY this search to a set of 10 account numbers.
So I change the search to this:
sourcetype="SysLog" | rex field=_raw "To BOA-(?<accountno>\d{1,11})" | search 1 OR 2 OR 3 OR 4 OR 5 OR 6 OR 7 OR 8 OR 9 OR 10 | dedup accountno
Which works as expected as well.
Assuming that CURRENTLY this search only gives me accountno = 4,5,6,7 [ We are assuming that ONLY for those 4 accounts, did the REGEX churn out an account no] ---->
----> How do I then get any account number THAT WAS NOT FILTERED by that regex ?
Meaning, i want to modify the SECOND search above so that it gives me failed accounts -> 1,2,3,8,9,10
How do I apply a filter using a regex - and then NOT on that operation ?
... View more