版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sz85850597/article/details/86547176
参数
参数 | 类型 | 是否必须 | 默认值 |
---|---|---|---|
add_field | hash | No | {} |
codec | codec | No | line |
tags | array | No | |
type | string | No |
add_field
向输入的事件内容添加字段,如下:
input{
xxx {
add_field => {"project"=>"kibana"}
add_field => {"client"=>"wakzz.cn"}
}
}
codec
输入事件内容的编码器,默认值为line,即每行输入读取为一个事件。
input{
xxx {
codec => "line"
}
}
tags
tags的值为数值,可添加任意数量的任意标签,助于以后的数据处理。
input{
xxx {
tags => ["add"]
}
}
type
type主要用于过滤器的触发。
input{
xxx {
type => "add"
}
}