diff --git a/packages/akamai/changelog.yml b/packages/akamai/changelog.yml index ab9b80d908be..421f0ac56495 100644 --- a/packages/akamai/changelog.yml +++ b/packages/akamai/changelog.yml @@ -1,4 +1,9 @@ # newer versions go on top +- version: "2.9.1" + changes: + - description: Fix sign of initial interval for start time offset calculation. + type: bugfix + link: https://github.com/elastic/integrations/pull/6384 - version: "2.9.0" changes: - description: Update package to ECS 8.8.0. diff --git a/packages/akamai/data_stream/siem/agent/stream/httpjson.yml.hbs b/packages/akamai/data_stream/siem/agent/stream/httpjson.yml.hbs index cd9351ea1c1f..4c04047189ee 100644 --- a/packages/akamai/data_stream/siem/agent/stream/httpjson.yml.hbs +++ b/packages/akamai/data_stream/siem/agent/stream/httpjson.yml.hbs @@ -18,11 +18,11 @@ request.transforms: - set: target: url.params.from value: >- - [[ if not (index .cursor "last_offset") ]][[ (now (parseDuration "{{initial_interval}}")).Unix ]][[ end ]] + [[ if not (index .cursor "last_offset") ]][[ (now (parseDuration "-{{initial_interval}}")).Unix ]][[ end ]] - set: target: url.params.to value: >- - [[ if not (index .cursor "last_offset") ]][[ (now (parseDuration "-1m")).Unix ]][[ end ]] + [[ if not (index .cursor "last_offset") ]][[ (now).Unix ]][[ end ]] - set: target: url.params.offset value: >- diff --git a/packages/akamai/manifest.yml b/packages/akamai/manifest.yml index d25cbe58da19..6ec7b31e1c34 100644 --- a/packages/akamai/manifest.yml +++ b/packages/akamai/manifest.yml @@ -1,6 +1,6 @@ name: akamai title: Akamai -version: "2.9.0" +version: "2.9.1" description: Collect logs from Akamai with Elastic Agent. type: integration format_version: 2.7.0