Filter
Last updated
Was this helpful?
Last updated
Was this helpful?
This operation allows you to filter lines of text based on specific conditions or patterns. This operation is useful when you want to keep only lines that match a certain pattern or exclude lines that don't meet specific criteria.
These are the input/output expected data types for this operation:
- The input strings to be split and filtered.
- The filtered results after applying the regular expression and delimiter.
These are the parameters you need to configure to use this operation (mandatory parameters are marked with a *):
Suppose you want to filter a series of strings to extract only segments that start with error
:
In your Pipeline, open the required Action configuration and select the input Field.
In the Operation field, choose Filter.
Set Delimiter to Line feed
Set Regex to ^Error
Set Invert to false.
Give your Output field a name and click Save. The strings in your input field will be filtered with the specified conditions.
For example, this text:
will be filtered as:
You can try out operations with specific values using the Input field above the operation. You can enter the value in the example above and check the result in the Output field.