Print (print)
Section titled “Print (print)”Print the current event (or a specific field) to stdout or stderr for debugging.
Debug json
Minimal example
Section titled “Minimal example”actions: - print: {}JSON
{ "actions": [ { "print": {} } ]}Contents
Section titled “Contents”A ✓ marks a field that accepts a context variable such as
{{ VARIABLE }}.
General
Section titled “General”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
Section titled “Output”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 |
Schema
Section titled “Schema”Output Options
Section titled “Output Options”| 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 |