Event selectors and transformers

Each egress can define optional selector and transformer properties.

Definitions

  • A transformer provides all the information that is necessary to create a new outgoing event from any incoming event.
  • An event selector provides a way to determine whether the sink must apply the transformation and yield the resulting event.

Syntax

The logic of transformers and event selectors is supplied as JSLT expressions. Any expression can be provided in either of these forms. For more information about the JSLT query and transformation language, see the JSLT readme page.
  • As an inline expression. Prefer this form for simple transformations.
  • In a file. Prefer this form for complex transformation logic.

Properties for selectors

selector
Optional. A jslt expression that selects the events to be processed by the current egress.
type
Indicates whether the jslt expression is in a file (jslt-file) or is a string value (jslt-inline).
filename
Conditional. This argument is mandatory if the type parameter is set to jslt-file. Pass the name of the file that contains the jslt expression. The file name extension must be .jslt.
expression
Conditional. This argument is mandatory if the type is set to jslt-inline. Pass the jslt inline expression.

Properties for transformers

transformer
Optional. A jslt expression that is used to transform the event.
type
Indicates whether the jslt expression is in a file (jslt-file) or is a string value (jslt-inline).
filename
Conditional. This argument is mandatory if the type parameter is set to jslt-file. Pass it the name of the file that contains the jslt expression. The file name extension must be .jslt.
expression
Conditional. This argument is mandatory if the type is set to jslt-inline. Pass it the jslt inline expression.