Hi,
I'm getting started with the use of HTTP agent to request an API returning JSON data from which I want to extract some LLD macros.
What I'm trying to achieve seems very basic but I'm getting an error.
Here is my Discovery rule

The API returns the following JSON, containing only a "id" array
# curl http://127.0.0.1:8088/counters/capture
{"id":[103,101,104,102]}
I then have the following LLD macros to extract the ids with JSONPath = $.id[:]

Looks very simple but I'm getting the below error

Any clue on what I'm doing wrong?
Thanks in advance!
20k
I'm getting started with the use of HTTP agent to request an API returning JSON data from which I want to extract some LLD macros.
What I'm trying to achieve seems very basic but I'm getting an error.
Here is my Discovery rule
The API returns the following JSON, containing only a "id" array
# curl http://127.0.0.1:8088/counters/capture
{"id":[103,101,104,102]}
I then have the following LLD macros to extract the ids with JSONPath = $.id[:]
Looks very simple but I'm getting the below error
Any clue on what I'm doing wrong?
Thanks in advance!
20k
Comment