logstash-filter-kv icon indicating copy to clipboard operation
logstash-filter-kv copied to clipboard

[Feature request] Extract keys and values into objects instead of dotted.variable.names

Open Daniel314 opened this issue 4 years ago • 0 comments

Hello,

The current 'kv' module stores extracted keys and values in 'dotted' notation (some.prefix.key1 = value1, some.prefix.key2 = value2, ...) I would like to request that a variant of this request be added to the 'kv' module, where values are stored in object notation, instead of dotted notation (e.g. [some][prefix][key1] = value1, [some][prefix][key2] = value2).

This becomes especially handy for nested keys (e.g. [some][prefix][keytop][keybottom]), so that all keys under 'keytop' can be renamed/moved en-masse to some other object. I'm using a ruby { code => '' } block as my current workaround, but isn't as elegant.

Thanks,

 - Daniel

Daniel314 avatar Feb 16 '21 15:02 Daniel314