You can add a configuration to drop logs that match the filter criteria you provide.
- A log filter configuration is applied only to the logs that are ingested after you create and activate the configuration.
- A log filter configuration is applied only to logs with static fields in the filter criteria.
Prerequisites
Verify that you are logged in to the vRealize Log Insight web user interface as a Super Admin user, or a user associated with a role that has the relevant permissions. See Create and Modify Roles for more information. The URL format of the web user interface is https://log-insight-host, where log-insight-host is the IP address or host name of the vRealize Log Insight virtual appliance.
Procedure
- Expand the main menu, click Log Management and then click Log Filtering.
- Click New Configuration.
- Enter a unique name for the log filter configuration.
- Select fields and constraints to define the logs that you want to drop. If you do not select a filter, all the logs are dropped. To see the results of your filter, click Run in Explore Logs page.
Operator Description Matches Finds strings that match the string and wildcard specification, where * means zero or more characters and ? means zero or any single character. Prefix and postfix globbing is supported. For example, *test* matches strings such as test123 or my-test-run.
does not match Excludes strings that match the string and wildcard specification, where * means zero or more characters and ? means zero or any single character. Prefix and postfix globbing is supported. For example, test* excludes test123, but not mytest123. ?test* excludes test123 and xtest123, but not mytest123.
starts with Finds strings that start with the specified character string. For example, test finds test123 or test, but not my-test123.
does not start with Excludes strings that start with the specified character string. For example, test filters out test123, but not my-test123.
- The log filter configuration is activated by default. To deactivate the configuration, click the Enabled toggle button.
- Click Save.