-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Filebeat][httpjson] Add support for accessing response variable of previous request in chain call #32955
Comments
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
@vinit-elastic This is definitely possible currently , using a similar config as follows :
We do not require the last response do achieve this |
@ShourieG As you have mentioned is working perfectly. |
@vinit-elastic ok got it, but here the response that you want would want is the 1st response and not the last_response , since in step 3 last_response would mean the last_response of the chain. So maybe we could introduce something like first_response , that holds the response from the root request for access ? |
@ShourieG - for |
Relates / Blocks: elastic/integrations#2338 |
Describe the enhancement:
Here from
request 1
we can get the value of user_uuid which will be used for making a second call to find the list of assets. So here we can make the second call with the use of replace in chain call.For
request 3
, we need to give user_uuid and asset_id in url params. We can get the asset_id from the response ofrequest 2
using replace. But we are not able to use user_uuid in therequest 3
.For fetching the value of user_uuid from the url params of the second request we have tried to use .last_response in both the request i.e
request 2
andrequest 3
but we are getting .last_response as{"body":null,"header":null,"page":0,"url":"xxxxx"}
So we are not able to make the
request 3
because we don’t have user_uuid.Describe a specific use case for the enhancement or feature:
https://developer.tenable.com/reference/exports-assets-download-chunk
The text was updated successfully, but these errors were encountered: