Skip to content
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 - Allow response.pagination transforms to read .last_request.* #35887

Open
chrisberkhout opened this issue Jun 22, 2023 · 2 comments
Labels
enhancement Filebeat Filebeat Team:Security-Service Integrations Security Service Integrations Team

Comments

@chrisberkhout
Copy link
Contributor

The enhancement:

Add .last_request.* to the list of things that the httpjson input's response.pagination transforms can read state from.

The existing list is: [.last_response.*, .first_event.*, .last_event.*, .cursor.*, .header.*, .url.*, .body.*].

A specific use case for the enhancement:

This would remove the need for the workaround used in the bugfix #6649 [ti_misp] Keep the same timestamp for later pages.

The workaround for not having direct access to the last request in the pagination transformers was to add an ignored query string parameter to the actual request, since the query string parameters could be accessed via .last_response.url.params.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Filebeat Filebeat Team:Security-Service Integrations Security Service Integrations Team
Projects
None yet
Development

No branches or pull requests

3 participants