转载请标明出处: http://blog.csdn.net/qq_27818541/article/details/108396287 本文出自:【BigManing的博客】
add_labels
添加自定义标签,类似add_fileds功能 ,添加的kv输出后默认在labels字段下
processors:
- add_labels:
labels:
number: 1
with.dots: test
nested:
with.dots: nested
array:
- do
- re
- with.field: mi
输出:
{
"labels": {
"number": 1,
"with.dots": "test",
"nested.with.dots": "nested",
"array.0": "do",
"array.1": "re",
"array.2.with.field": "mi"
}
}