Skip to main content

Transformer

A transformer node references a transformer, which will execute it on a log record and pass the result to the next nodes.

NB: Transformer nodes references transformers by their unique name. If a transformer is updated, all transformer nodes referencing it will be invalidated.

Example

Let's assume we have a transformer named from-json with the following source code:

. = parse_json!(.content)
{
"timestamp": "...",
"fields": {
"content": "{\"foo\": \"bar\"}"
}
}

Transformer node

{
"timestamp": "...",
"fields": {
"foo": "bar"
}
}