Skip to content

Commit

Permalink
address pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
efd6 committed Dec 3, 2024
1 parent aa4c8f4 commit 4c365a0
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions x-pack/filebeat/docs/inputs/input-cel.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -796,9 +796,24 @@ This specifies fields in the `state` to be redacted prior to debug logging. Fiel
This specifies whether fields should be replaced with a `*` or deleted entirely from messages sent to debug logs. If delete is `true`, fields will be deleted rather than replaced.

[float]
==== `failure_dump`
==== `failure_dump.enabled`

This specifies a directory path to write failure dumps to. If it is not empty and a CEL program evaluation fails, the complete set of states for the CEL program's evaluation will be written as a JSON file, along with the error that was reported. This option should only be used when debugging a failure as it imposes a significant performance impact on the input and may potentially use large quantities of memory to hold the full set of states. If a failure dump is configured, it is recommended that data input sizes be reduced to avoid excessive memory consumption, and making dumps that are intractable to analysis.
It is possible to log CEL program evaluation failures to a local file-system for debugging configurations.
This option is enabled by setting `failure_dump.enabled` to true and setting the `failure_dump.filename` value.
To delete existing failure dumps, set `failure_dump.enabled` to false without unsetting the filename option.

Enabling this option compromises security and should only be used for debugging.

[float]
==== `failure_dump.filename`

This specifies a directory path to write failure dumps to. If it is not empty and a CEL program evaluation fails,
the complete set of states for the CEL program's evaluation will be written as a JSON file, along with the error
that was reported. This option should only be used when debugging a failure as it imposes a significant performance
impact on the input and may potentially use large quantities of memory to hold the full set of states. If a failure
dump is configured, it is recommended that data input sizes be reduced to avoid excessive memory consumption, and
making dumps that are intractable to analysis. To delete existing failure dumps, set `failure_dump.enabled` to
false without unsetting the filename option.

[float]
=== Metrics
Expand Down

0 comments on commit 4c365a0

Please sign in to comment.