Skip to content

Commit 7ab7e6c

Browse files
committed
gcp: remove never-successful violation field renames
The rename refers to fields that do not exist in the type, and appears to have been incorrectly added to the block handling PolicyViolationInfo. The alternative would have been to add the following, but we already document the current behaviour, so leaving this as is as unfortunate. - foreach: field: gcp.audit.policy_violation_info.violations ignore_missing: true ignore_failure: true processor: rename: field: _ingest._value.errorMessage target_field: _ingest._value.error_message if: ctx.gcp?.audit?.policy_violation_info?.violations instanceof List - foreach: field: gcp.audit.policy_violation_info.violations ignore_missing: true ignore_failure: true processor: rename: field: _ingest._value.checkedValue target_field: _ingest._value.checked_value if: ctx.gcp?.audit?.policy_violation_info?.violations instanceof List - foreach: field: gcp.audit.policy_violation_info.violations ignore_missing: true ignore_failure: true processor: rename: field: _ingest._value.policyType target_field: _ingest._value.policy_type if: ctx.gcp?.audit?.policy_violation_info?.violations instanceof List [1]https://cloud.google.com/logging/docs/reference/audit/auditlog/rest/Shared.Types/AuditLog#ViolationInfo
1 parent 4fd68fc commit 7ab7e6c

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

packages/gcp/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: "2.41.2"
3+
changes:
4+
- description: Remove redundant audit violation field renames.
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/
27
- version: "2.41.1"
38
changes:
49
- description: Preserve original value of resource name.

packages/gcp/data_stream/audit/elasticsearch/ingest_pipeline/default.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -413,15 +413,6 @@ processors:
413413
field: gcp.audit.policy_violation_info.violations
414414
copy_from: json.protoPayload.policyViolationInfo.orgPolicyViolationInfo.violationInfo
415415
ignore_failure: true
416-
- foreach:
417-
field: gcp.audit.policy_violation_info.violations
418-
ignore_missing: true
419-
ignore_failure: true
420-
processor:
421-
rename:
422-
field: _ingest._value.resourceAttributes
423-
target_field: _ingest._value.resource_attributes
424-
if: ctx.gcp?.audit?.policy_violation_info instanceof List
425416
- rename:
426417
field: json.protoPayload.policyViolationInfo.orgPolicyViolationInfo.payload
427418
target_field: gcp.audit.policy_violation_info.payload

packages/gcp/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: gcp
22
title: Google Cloud Platform
3-
version: "2.41.1"
3+
version: "2.41.2"
44
description: Collect logs and metrics from Google Cloud Platform with Elastic Agent.
55
type: integration
66
icons:

0 commit comments

Comments
 (0)