参数
参数 | 类型 | 是否必须 | 默认值 |
---|---|---|---|
add_field | hash | 否 | {} |
add_tag | array | 否 | |
remove_field | array | 否 | |
remove_tag | array | 否 |
add_field
向事件添加任意字段
filter {
xxx {
add_field => {"project"=>"kibana"}
}
}
add_tag
向事件中添加任意tag。
filter {
xxx {
add_tag => ["test"]
}
}
remove_field
从事件红删除任意字段。
filter {
xxx {
remove_field => ["test"]
}
}
remove_tag
从事件中删除任意tag。
filter {
xxx {
remove_tag => ["test"]
}
}