Skip to content

Commit 86a7c47

Browse files
committed
sentinel_one: do not log empty template as DEGRADED health
1 parent 75ecd7b commit 86a7c47

File tree

8 files changed

+18
-1
lines changed

8 files changed

+18
-1
lines changed

packages/sentinel_one/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "1.43.2"
3+
changes:
4+
- description: Do not log expected empty template results as DEGRADED health in agent or group data streams.
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/16070
27
- version: "1.43.1"
38
changes:
49
- description: Do not log expected empty template results as DEGRADED health in activity, alert or threat data streams.

packages/sentinel_one/data_stream/agent/_dev/test/policy/test-all.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ inputs:
99
- config_version: 2
1010
cursor:
1111
last_update_at:
12+
do_not_log_failure: true
1213
ignore_empty_value: true
1314
value: '[[.last_event.updatedAt]]'
1415
data_stream:
@@ -134,6 +135,7 @@ inputs:
134135
request.url: http://host.tld/web/api/v2.1/agents
135136
response.pagination:
136137
- set:
138+
do_not_log_failure: true
137139
fail_on_template_error: true
138140
target: url.params.cursor
139141
value: '[[if (ne .last_response.body.pagination.nextCursor nil)]][[.last_response.body.pagination.nextCursor]][[end]]'

packages/sentinel_one/data_stream/agent/_dev/test/policy/test-default.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ inputs:
99
- config_version: 2
1010
cursor:
1111
last_update_at:
12+
do_not_log_failure: true
1213
ignore_empty_value: true
1314
value: '[[.last_event.updatedAt]]'
1415
data_stream:
@@ -41,6 +42,7 @@ inputs:
4142
request.url: http://host.tld/web/api/v2.1/agents
4243
response.pagination:
4344
- set:
45+
do_not_log_failure: true
4446
fail_on_template_error: true
4547
target: url.params.cursor
4648
value: '[[if (ne .last_response.body.pagination.nextCursor nil)]][[.last_response.body.pagination.nextCursor]][[end]]'

packages/sentinel_one/data_stream/agent/agent/stream/httpjson.yml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ response.pagination:
3939
target: url.params.cursor
4040
value: '[[if (ne .last_response.body.pagination.nextCursor nil)]][[.last_response.body.pagination.nextCursor]][[end]]'
4141
fail_on_template_error: true
42+
do_not_log_failure: true
4243
cursor:
4344
last_update_at:
4445
value: '[[.last_event.updatedAt]]'
4546
ignore_empty_value: true
47+
do_not_log_failure: true
4648
response.split:
4749
target: body.data
4850
ignore_empty_value: true

packages/sentinel_one/data_stream/group/_dev/test/policy/test-all.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ inputs:
99
- config_version: 2
1010
cursor:
1111
last_update_at:
12+
do_not_log_failure: true
1213
ignore_empty_value: true
1314
value: '[[.last_event.updatedAt]]'
1415
data_stream:
@@ -134,6 +135,7 @@ inputs:
134135
request.url: http://host.tld/web/api/v2.1/groups
135136
response.pagination:
136137
- set:
138+
do_not_log_failure: true
137139
fail_on_template_error: true
138140
target: url.params.cursor
139141
value: '[[if (ne .last_response.body.pagination.nextCursor nil)]][[.last_response.body.pagination.nextCursor]][[end]]'

packages/sentinel_one/data_stream/group/_dev/test/policy/test-default.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ inputs:
99
- config_version: 2
1010
cursor:
1111
last_update_at:
12+
do_not_log_failure: true
1213
ignore_empty_value: true
1314
value: '[[.last_event.updatedAt]]'
1415
data_stream:
@@ -41,6 +42,7 @@ inputs:
4142
request.url: http://host.tld/web/api/v2.1/groups
4243
response.pagination:
4344
- set:
45+
do_not_log_failure: true
4446
fail_on_template_error: true
4547
target: url.params.cursor
4648
value: '[[if (ne .last_response.body.pagination.nextCursor nil)]][[.last_response.body.pagination.nextCursor]][[end]]'

packages/sentinel_one/data_stream/group/agent/stream/httpjson.yml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ response.pagination:
3939
target: url.params.cursor
4040
value: '[[if (ne .last_response.body.pagination.nextCursor nil)]][[.last_response.body.pagination.nextCursor]][[end]]'
4141
fail_on_template_error: true
42+
do_not_log_failure: true
4243
cursor:
4344
last_update_at:
4445
value: '[[.last_event.updatedAt]]'
4546
ignore_empty_value: true
47+
do_not_log_failure: true
4648
response.split:
4749
target: body.data
4850
ignore_empty_value: true

packages/sentinel_one/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: "3.4.0"
22
name: sentinel_one
33
title: SentinelOne
4-
version: "1.43.1"
4+
version: "1.43.2"
55
description: Collect logs from SentinelOne with Elastic Agent.
66
type: integration
77
categories:

0 commit comments

Comments
 (0)