0
鑑於這三個LogStash事件,紅寶石哈希LogStash過濾器 - 骨料複製事件併合並其
{
"id" => "1",
"address_unit" => "1",
"address_sqft" => 1098,
"address_city" => "NEW YORK"
}
{
"id" => "1",
"address_unit" => "1",
"address_sqft" => 1090,
"address_city" => "NEW YORK"
}
{
"id" => "1",
"address_unit" => "1",
"address_sqft" => 2000,
"address_city" => "NEW YORK"
}
這應該被存儲到ES作爲
{
"id" => "1",
"address_unit" => "1",
"address_sqft" => [1098, 1090, 2000],
"address_city" => "NEW YORK"
}
我想知道是否有一些內置/社區過濾器來實現它,或者如何使用ruby代碼實現它。
謝謝!
感謝邁克!真棒和乾淨的解決方案! – CodeWarrior