We need to apply process monitoring using a match pattern. The pattern will be found in the process path. The process names are not known. A particular process needs to be monitored when the match pattern is found in the path of the process name. Is there some way that this can be done?
- need to isolate a process that has the same name using exclusion
- exclude process using REGEX with negative lookahead
Release : 20.4
Component : UIM - PROCESSES
processes probe v4.70
In the processes probe, processes can be recognized and monitored by using one of the following:
All of the fields mentioned above handle regular expression (regex) and pattern matching rules. For more information, see 'Use Regular Expressions' in 'processes Advanced Configuration.'
Some examples of the use of regular expressions (REGEX) are included here in the tech docs:
You could try using a regex in the processes' binary path. As an example, an advanced format that uses a REGEX 'AND' Operator to filter on two substrings within the binary path might be:
Then when the process is present, press the processes Test button to see if it picks up the process, otherwise you would have to wait for the probe to pick it up.
Note that there is an exclusion feature available in IM and AC but it excludes an entire process name and doesn't accept regex.
Regex syntax examples using an exclusion/negative lookahead:
Here are some working REGEX examples:
Filter out crtc process entries and only include the single process for card0
Filter out TabTip32 and only include the TabTip process
Filter on ALL java processes but none that have UTF-8 in the binary path. This is just meant for testing.
Filter on a single java process by excluding strings from the other java processes' binary paths
(Use this format below for isolating a java process)
Make sure you use the correct process name which could be java.exe, or java, sh, etc.
You also have to make sure you don't accidentally exclude any string that is already present within the process' binary path (the one you're trying to monitor), and that's easy to do by mistake.
You have to look closely at the name of the process in the path text 'block' and the processes probe doesn't make that very easy when its very long. You have to scroll over.
Then be certain you're not excluding a given string within that processes' binary path, otherwise you'll get an empty result (no single process returned in the Test window).
When you're excluding 1 or more processes you have to look at their binary paths and carefully choose some string that is unique to the process you want to exclude.