[英]Modify fluentd json output
我們如何輕松地使用這樣的流利(和插件)進行轉換
{
"remote": "87.85.14.126",
"city": "saint-hubert"
}
對此:
{
"geoip": {
"remote": "87.85.14.126",
"city": "saint-hubert"
}
}
謝謝
根據答案反復( https://github.com/repeatedly )。
<filter test.**>
@type record_transformer
enable_ruby true
auto_typecast true
<record>
geoip ${{"remote" => "${remote}", "city" => "${city}"}}
</record>
</filter>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.