Skip to content

Transaction

Sessionize related events using start/end markers and optional summary fields.

Stateful Transform json

actions:
- transaction: {}
JSON
{
"actions": [
{
"transaction": {}
}
]
}

A ✓ marks a field that accepts a context variable such as {{ VARIABLE }}.

Behaviour
Field Type Required Description
use-document-marker boolean (bool) Treat document boundaries as transaction markers.
Default: false
Detection
Field Type Required Description
start string Field/pattern (e.g. “type:start”) that opens a transaction.
end string Field/pattern that closes a transaction.
General
Field Type Required Description
description string Describe this step.
condition lua-expression (string) Only run this action when the Lua condition evaluates to true.
Examples: 2 * count()
Input
Field Type Required Description
group-by field (string) Group sessions independently by this field.
Examples: data_field
Output
Field Type Required Description
marker string Marker placed on emitted transaction envelopes.
common-fields string[] Common fields copied from each record to the transaction envelope.
combined-output boolean (bool) Emit a single combined event for the session instead of individual events.
Default: false
combined-payload boolean (bool) When true, attach the payload array under _payload.
Default: false
Summary
Field Type Required Description
session-summary Session Summary Optional session summary output (counts, durations, numeric stats).
Timeouts
Field Type Required Description
timeout-field string Marker emitted when upstream stalled events close an open transaction.
idle-timeout duration (string) Idle timeout that auto-closes sessions without explicit end markers (e.g. “5m”).
Field Type Required Description
field field (string) Field to analyse across the session.
Examples: data_field
ops Ops[] Operations to compute for the numeric field.
Allowed values: min, max, sum, mean, stddev
prefix string Optional prefix applied to emitted metric fields.
Field Type Required Description
event-count-field field (string) Output field containing the number of events in the session.
Examples: data_field
duration-field field (string) Output field containing the session duration in milliseconds.
Examples: data_field
numeric-fields Numeric Fields[] Numeric fields to summarise with the configured operations.

Session Summary - Numeric Fields - Ops Options

Section titled “Session Summary - Numeric Fields - Ops Options”
Value Aliases Name Description
min min
max max
sum sum
mean mean
stddev stddev