You can use a Logtail plug-in to filter logs based on specific field values.
Entry point
If you want to use a Logtail plug-in to process logs, you can add a Logtail plug-in configuration when you create or modify a Logtail configuration. For more information, see Overview.
Configuration description
Parameter | Description |
Original Field | The original field that is used to store the content of a log before the log is parsed. |
Whitelist | The log whitelist. Only logs that meet the specified conditions in the whitelist can be collected. You must specify new field names and expressions that are used to filter specific logs. The regular expression that you specify supports only full-text matching. Keyword matching is not supported. For more information about how to specify a regular expression, see Getting started with regular expressions. The whitelist conditions are in the logical OR relation. Examples:
|