Hello,
I have a 1110 line JSON that I am referencing via an LLD Discovery Rule.
There is an array in the JSON that is 3 elements long with a bunch of subsequent segments.
Here is a snippet of my JSON, the array, keys, and segments I am referring to...
Ultimately I want to grab the keys of each element [0,1,2]. I found I can accomplish this with *~ here...
https://stackoverflow.com/questions/...t-keys-in-json
Here is a picture of it working in jsonpath.com...
Here I am using it as an LLD Macro...
But I get the following error message: Cannot process LLD macro "{#MACRO}": unsupported construct in jsonpath starting with: "~]".
Is this a limitation in Zabbix or am I doing this wrong?
I have a 1110 line JSON that I am referencing via an LLD Discovery Rule.
There is an array in the JSON that is 3 elements long with a bunch of subsequent segments.
Here is a snippet of my JSON, the array, keys, and segments I am referring to...
Ultimately I want to grab the keys of each element [0,1,2]. I found I can accomplish this with *~ here...
https://stackoverflow.com/questions/...t-keys-in-json
Here is a picture of it working in jsonpath.com...
Here I am using it as an LLD Macro...
But I get the following error message: Cannot process LLD macro "{#MACRO}": unsupported construct in jsonpath starting with: "~]".
Is this a limitation in Zabbix or am I doing this wrong?