Skip to content

Print

Print the current event (or a specific field) to stdout or stderr for debugging.

Debug json

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

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

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
input-field field (string) Optional field to print instead of the full event.
Examples: data_field
Output
Field Type Required Description
output Output Where to write the printed content.
Allowed values: stdout, stderr, pretty-stdout, pretty-stderr
pretty boolean (bool) Pretty-print JSON when true.
Default: false
Value Aliases Name Description
stdout stdout Standard output of job
stderr stderr Standard error of job
pretty-stdout pretty-stdout Nice JSON to standard output
pretty-stderr pretty-stderr Nice JSON to standard error