1. Create a regex filter. A regex reference is https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
For example: rxi | .*AmazingApp.v5.30.*
2. Check the regex filter for accuracy.
For example, the regex above states case insensitive search for an unlimited amount characters followed by AmazinApp then one character then v5 then another character followed by 30 and then an unlimited number of trailing characters.
3a. Based on collected events, fine-tune 'greedy' regex ".*" by limiting the amount of characters. This directly affects CPU performance.
For example .{0,10} states find 0 characters OR no more than 10 characters. Fine-tuned filter: rxi | .{2,8}AmazingApp.v5.30.{0,10}
3b. Check the performance of the initial regex and the fine-tuned regex on https://regex101.com. Launch the debugger on the right to determine the steps required to complete a match against a 1000+ character string.
4. Test the regex filter to verify only the intended events are filtered.