input:
generate:
mapping: root = {"id":48554}
pipeline:
processors:
- http:
url: https://example.com/**use_id_here_from_root**
verb: GET
retries: 5
timeout: 10s
retry_period: 2s
I tried using {{.id}}, eq.${! json("id") } but both of these dont seem to be working.
The
httpprocessorurlfield supports interpolation functions. You should be on the right track with${! json("id") }, but there might be something wrong with how your test setup.This config worked for me:
To test it, I ran
ncin a loop:then I ran
benthos:and I got the following output from
nc: