integration:cisco_secure_endpoint Fix noisy error log entry when pagination completes #10527
Labels
bug
Something isn't working, use only for issues
Integration:cisco_secure_endpoint
Cisco Secure Endpoint
Team:Security-Service Integrations
Security Service Integrations Team [elastic/security-service-integrations]
The Cisco Secure Endpoint integration collects event data via httpjson. The integration throws an error when it hits the last page, and this gets logged in the Elastic Agent error log with something similar to:
error processing response: template: :1:17: executing "" at <.last_response.body.metadata.links.next>: map has no entry for key "next"
This fills up the Elastic Agent dashboard with agent errors, as it is raised every time the Secure Endpoint data is polled (every 2 minutes/default) and the noise makes it more difficult to find actual errors.
I initially raised this in (elastic/beats#38291) and a new way of handling pagination was merged in (elastic/beats#39929)
The integration now needs to be updated to incorporate this new way of paginating.
existing code
https://github.com/elastic/integrations/blob/129752c5db99035ccc6c8f8e70606e54268b392a/packages/cisco_secure_endpoint/data_stream/event/agent/stream/httpjson.yml.hbs#L36C1-L41C1
example from 39929, may need to be adapted
The text was updated successfully, but these errors were encountered: