Closed coolibre closed 10 months ago
@coolibre I don't think it's possible with the standard features but you can surely write a simple modifier to do that fairly quickly. See https://github.com/tidwall/gjson/blob/master/SYNTAX.md#custom-modifiers for more details on custom modifiers.
Thank you very much @volans- ! Unfortunately I'm coming from a Telegraf config who use the gjson parser as basis for their json_v2 plugin. I cannot use custom modifiers over there. I was hoping for a standard feature. So I have to stick to their xpath_json parser which seems to have such a function but is not so handy.
Maybe this could be used as a feature request for a standard modifier. If not this issue can be closed!
Is it possible to achieve
with a gjson query?