add_field => { "my_field_one" => "one" }
那么,结果会相似:数组
{ "公司名称" => "xxx", "BUG_ID" => 1234, "VIP_Level" => "核心VIP", "my_field_one" => "one", }
add_field => { "[其它][tag1]" => "one" "[其它][tag2]" => "two" }
那么,结果会相似:spa
{ "公司名称" => "xxx", "BUG_ID" => 1234, "VIP_Level" => "核心VIP", "其它" => { "tag1" => "one", "tag2" => "two" } }
add_field => { #方法一: "其它" => { "tag1" => "one", "tag2" => "two" }
#方法二:和logstash中一向用法同样,不加逗号 "其它2" => { "tag1" => "one" "tag2" => "two" }
#方法三:写在一行上 "其它2" => {"tag1" => "one", "tag2" => "two" } }
#方法四:先执行 add_tag 再执行 add_field。这样为嘛会是数组???
add_tag => "其它" add_field = { "其它" => { "tag1" => "one" "tag2" => "two" } }