Skip to content

Commit

Permalink
box: fix handling of empty api responses (#10606)
Browse files Browse the repository at this point in the history
  • Loading branch information
efd6 authored Jul 28, 2024
1 parent 154c06a commit 41c431d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/box_events/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.9.1"
changes:
- description: Fix handling of empty API responses.
type: enhancement
link: https://github.com/elastic/integrations/pull/10606
- version: "2.9.0"
changes:
- description: Update the kibana constraint to ^8.13.0. Modified the field definitions to remove ECS fields made redundant by the ecs@mappings component template.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"chunk_size":0,"entries":[],"next_stream_position":564670747717431}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"expected": [
null
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ processors:
- json:
field: event.original
target_field: box
- drop:
if: ctx.box?.entries instanceof List && ctx.box.entries.length == 0
- fingerprint:
fields:
- box.event_id
Expand Down
2 changes: 1 addition & 1 deletion packages/box_events/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: "3.0.3"
name: box_events
title: Box Events
version: "2.9.0"
version: "2.9.1"
description: "Collect logs from Box with Elastic Agent"
type: integration
categories:
Expand Down

0 comments on commit 41c431d

Please sign in to comment.