Skip to content

Transaction

Transaction (transaction)

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

Transform json

Minimal example

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

Contents

Fields

FieldTypeRequiredDescription
description GeneralstringDescribe this step.
condition Generallua-expression (string)Only run this action when the Lua condition evaluates to true.
Examples: 2 * count()
start DetectionstringField/pattern (e.g. “type:start”) that opens a transaction.
end DetectionstringField/pattern that closes a transaction.
marker OutputstringMarker placed on emitted transaction envelopes.
common-fields Outputstring[]Common fields copied from each record to the transaction envelope.
use-document-marker Behaviourboolean (bool)Treat document boundaries as transaction markers.
combined-output Outputboolean (bool)Emit a single combined event for the session instead of individual events.
combined-payload Outputboolean (bool)When true, attach the payload array under _payload.
timeout-field TimeoutsstringMarker emitted when upstream stalled events close an open transaction.
group-by Inputfield (string)Group sessions independently by this field.
Examples: data_field
session-summary SummarySession SummaryOptional session summary output (counts, durations, numeric stats).
idle-timeout Timeoutsduration (string)Idle timeout that auto-closes sessions without explicit end markers (e.g. “5m”).

General

Show fields
FieldTypeRequiredDescription
descriptionstringDescribe this step.
conditionlua-expression (string)Only run this action when the Lua condition evaluates to true.
Examples: 2 * count()

Detection

Show fields
FieldTypeRequiredDescription
startstringField/pattern (e.g. “type:start”) that opens a transaction.
endstringField/pattern that closes a transaction.

Output

Show fields
FieldTypeRequiredDescription
markerstringMarker placed on emitted transaction envelopes.
common-fieldsstring[]Common fields copied from each record to the transaction envelope.
combined-outputboolean (bool)Emit a single combined event for the session instead of individual events.
combined-payloadboolean (bool)When true, attach the payload array under _payload.

Behaviour

Show fields
FieldTypeRequiredDescription
use-document-markerboolean (bool)Treat document boundaries as transaction markers.

Timeouts

Show fields
FieldTypeRequiredDescription
timeout-fieldstringMarker emitted when upstream stalled events close an open transaction.
idle-timeoutduration (string)Idle timeout that auto-closes sessions without explicit end markers (e.g. “5m”).

Input

Show fields
FieldTypeRequiredDescription
group-byfield (string)Group sessions independently by this field.
Examples: data_field

Summary

Show fields
FieldTypeRequiredDescription
session-summarySession SummaryOptional session summary output (counts, durations, numeric stats).

Schema

Session Summary - Numeric Fields Fields

FieldTypeRequiredDescription
fieldfield (string)Field to analyse across the session.
Examples: data_field
opsOps[]Operations to compute for the numeric field.
Allowed values: min, max, sum, mean, stddev
prefixstringOptional prefix applied to emitted metric fields.

Session Summary Fields

FieldTypeRequiredDescription
event-count-fieldfield (string)Output field containing the number of events in the session.
Examples: data_field
duration-fieldfield (string)Output field containing the session duration in milliseconds.
Examples: data_field
numeric-fieldsNumeric Fields[]Numeric fields to summarise with the configured operations.

Session Summary - Numeric Fields - Ops Options

ValueDescription
minMin
maxMax
sumSum
meanMean
stddevStddev