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" } }