Skip to main content

Eval Node

Quick Reference

Fleak Eval Query Write a FEEL statement to transform records. Result must be a record or array of records.

💡 Tip: You can use learn more about FEEL (Fleak EVAL) here.

Overview

The Fleak Eval Node allows you to transform and manipulate events using the Fleak Eval Expression Language (FEEL). Use it to create new fields, modify existing values, and perform calculations on your data.

Configuration

FieldDescriptionRequiredPlaceholder
Fleak Eval QueryA FEEL expression to transform records. Result must be a record or array of records.Yes$.events

Examples

In FEEL expressions, $ refers to the current event record. Use dot-path notation (e.g. $.field) to access fields.

Add a computed field:

dict_merge($, dict(full_name=$.first_name + " " + $.last_name))

Convert a timestamp:

dict_merge($, dict(event_day=epoch_to_ts_str($.timestamp, "yyyy-MM-dd")))

Conditionally set a field:

dict_merge($, dict(tier=case($.amount > 1000 => "high", _ => "standard")))
  • filter: Filter events based on specific conditions using FEEL