How can we easily transform with fluentd( and plugins ) something like this
{
"remote": "87.85.14.126",
"city": "saint-hubert"
}
To this:
{
"geoip": {
"remote": "87.85.14.126",
"city": "saint-hubert"
}
}
Thank you
Based on the answer by repeatedly(https://github.com/repeatedly).
<filter test.**>
@type record_transformer
enable_ruby true
auto_typecast true
<record>
geoip ${{"remote" => "${remote}", "city" => "${city}"}}
</record>
</filter>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With