This section presents examples of using preprocessing steps to accomplish some practical tasks.
Using a regular expression preprocessing to filter unnecessary events of the VMware event log.
1. On a working VMware Hypervisor host check that the event log item
vmware.eventlog[<url>,<mode>] is present and working properly. Note that the event log item could already be present on the hypervisor if the Template VM VMware template has been linked during the host creation.
2. On the VMware Hypervisor host create a dependent item of 'Log' type and set the event log item as its master.
In the "Preprocessing" tab of the dependent item select the "Matches regular expression" validation option and fill pattern, for example:
If the regular expression is not matched then the dependent item becomes unsupported with a corresponding error message. To avoid this mark the "Custom on fail" checkbox and select to discard unmatched value, for example.
Another approach that allows using matching groups and output control is to select "Regular expression" option in the "Preprocessing" tab and fill parameters, for example: