logstash-plugins / logstash-filter-kv

Apache License 2.0
17 stars 42 forks source link

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

Open Daniel314 opened 3 years ago

Daniel314 commented 3 years ago

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