Skip to content

[aws][guardduty] System test failing in 8.19 #14491

@brijesh-elastic

Description

@brijesh-elastic

After updating the minimum Kibana version to ^8.19.0 or ^9.1.0 for AWS, the system tests for GuardDuty are failing.
Error

test case failed: one or more errors found while examining elastic-agent.logs1426453570: [0] found error "Unit state changed httpjson-default-httpjson-guardduty-305bec5b-8a77-4cbd-9c43-28473328f153 (HEALTHY->DEGRADED): failed to execute template last_execution_datetime: template: :1:28: executing \"\" at <.last_response.body.findings>: map has no entry for key \"findings\""

Upon investigating further, it appears that the error arises while setting cursor.last_execution_datetime.

  • The expected behavior from the GuardDuty data collection was that the cursor should only be set after we've published the events, which occurs after the chain request call.
  • However, it is currently being set before the chain request call and after the first/parent call. At that point, findings will not be present in the .last_response.body.

According to the httpjson documentation, the cursor should only be set after the events are published. (See the first paragraph in the cursor section). Also, events will only be published after the last chain call. (See the request_life_cycle section)

Metadata

Metadata

Assignees

Labels

Integration:awsAWSTeam:Security-Service IntegrationsSecurity Service Integrations team [elastic/security-service-integrations]bugSomething isn't working, use only for issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions