The truncate_fields
processor truncates a field to a given size. If the size
of the field is smaller than the limit, the field is left as is.
This configuration truncates the field named message
to five characters:
- truncate_fields:
fields:
- message
max_characters: 5
fail_on_error: false
ignore_missing: true
processors.asciidoc :works-with-fields!:
Name | Required | Default | Description |
---|---|---|---|
|
Yes |
List of fields to truncate. You can use the |
|
|
Yes |
Maximum number of bytes in a field. Mutually exclusive with |
|
|
Yes |
Maximum number of characters in a field. Mutually exclusive with |
|
|
No |
|
If |
|
No |
|
Whether to ignore events that lack the source field. If |