跳到主要内容
版本:1.x

Truncate

Filter plugin : Truncate

Description

Truncate string.

Options

nametyperequireddefault value
max_lengthnumberno256
source_fieldstringnoraw_message
target_fieldstringnotruncated
max_length [number]

Maximum length of the string.

source_field [string]

Source field name, default is raw_message.

target_field [string]

New field name, default is __root__.

Example

truncate {
source_field = "telephone"
max_length = 10
}