Represents a single matching condition within a filter structure.
A filter can have multiple conditions that are combined with AND logic, allowing complex filtering expressions. Each condition specifies:
- A target column or parameter to search
- A pattern to match against
- Strategy for matching (regex, substring, etc.)
- Optional case sensitivity
- Usage Scenarios
- Column Matching: Match against log event fields (level, timestamp, etc.)
- Parameter Matching: Search nested JSON structures at configurable depth
- Complex Patterns: Use regex patterns for sophisticated matching
- Case Handling: Optional case-sensitive or case-insensitive matching
- Thread Safety
- FilterCondition is immutable with respect to matching. Once created, the condition can be safely used by multiple threads without synchronization.
- Example
"level",
"ERROR",
false,
"",
0,
true
);
"",
"connection_timeout",
true,
"error_details",
2
);
Represents a single matching condition within a filter structure.
Definition Filter.hpp:64
- See also
- Filter for combining multiple conditions
-
IFilterStrategy for matching algorithm details