The Route processor-type function Function can be used to apply different conditions to the data handling depending on its value. It is recommended that the configuration be completed before connecting other processors or forwarders. The order in which each condition is added is the order in which each condition is applied to the input.
When multiple conditions are added to the Route functionFunction, you can re-order any condition by drag and drop method using the the icon on the Condition box.
To configure the Route functionFunction, the following is required:
Field | Description |
---|---|
Field | The input from the function Function preceding the Route function node in the stream. You can either customize the input field or select from the predefined options. |
Expression | The mathematical conditions to compare values and expressions. The available conditions are:
|
Value | The value that you want to enter for the condition. |
...
Note | ||
---|---|---|
| ||
|
Some examples for of using the Regexp option in Expression:
Info | ||||||
---|---|---|---|---|---|---|
| ||||||
If you have the following input:
When you enter
When you enter
|
The Route function Function also enables you to be able to handle data that is not matched with any of the conditions that you might have configured. In In Handling of unmatched records, the available options are:
- Discard: Discards the unmatched data
- Create new output: Creates a new output with the name default and adds it to the Route function Function in the stream editor.