Skip to content

Commit

Permalink
checkpoint_email,okta,wiz: add support for request trace deletion (#1…
Browse files Browse the repository at this point in the history
…1954)

Filebeat v8.15.x added the ability to delete request traces on the agent's host.
This change adds support for this feature to integrations with kibana.version at
or above v8.15.x.
  • Loading branch information
efd6 authored Dec 4, 2024
1 parent 07b926d commit a82cf1b
Show file tree
Hide file tree
Showing 17 changed files with 78 additions and 33 deletions.
5 changes: 5 additions & 0 deletions packages/checkpoint_email/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.2.0"
changes:
- description: Add support for deleting request trace files.
type: enhancement
link: https://github.com/elastic/integrations/pull/11954
- version: "0.1.0"
changes:
- description: Initial release.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
resource.tracer.filename: "../../logs/cel/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
resource.tracer:
enabled: {{enable_request_tracer}}
filename: "../../logs/cel/http-request-trace-*.ndjson"
maxbackups: 5
{{#if proxy_url}}
resource.proxy_url: {{proxy_url}}
{{/if}}
Expand Down
7 changes: 6 additions & 1 deletion packages/checkpoint_email/data_stream/event/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ streams:
multi: false
required: false
show_user: false
description: The request tracer logs requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-cel.html#_resource_tracer_filename) for details.
description: >-
The request tracer logs requests and responses to the agent's local file-system for debugging configurations.
Enabling this request tracing compromises security and should only be used for debugging. Disabling the request
tracer will delete any stored traces.
See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-cel.html#_resource_tracer_enable)
for details.
- name: tags
type: text
title: Tags
Expand Down
2 changes: 1 addition & 1 deletion packages/checkpoint_email/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.2.2
name: checkpoint_email
title: Check Point Harmony Email & Collaboration
version: 0.1.0
version: 0.2.0
description: Collect logs from Check Point Harmony Email & Collaboration with Elastic Agent.
type: integration
categories:
Expand Down
5 changes: 5 additions & 0 deletions packages/okta/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "3.1.0"
changes:
- description: Add support for deleting request trace files.
type: enhancement
link: https://github.com/elastic/integrations/pull/11954
- version: "3.0.0"
changes:
- description: Make `okta.target` use dynamic objects instead of flattened.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
config_version: "2"
interval: {{interval}}

{{#if enable_request_tracer}}
request.tracer.filename: "../../logs/httpjson/http-request-trace-*.ndjson"
request.tracer.maxbackups: 5
{{/if}}
resource.tracer:
enabled: {{enable_request_tracer}}
filename: "../../logs/httpjson/http-request-trace-*.ndjson"
maxbackups: 5

request.method: "GET"
request.keep_alive.disable: {{disable_keep_alive}}
Expand Down
9 changes: 7 additions & 2 deletions packages/okta/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: okta
title: Okta
version: "3.0.0"
version: "3.1.0"
description: Collect and parse event logs from Okta API with Elastic Agent.
type: integration
format_version: "3.1.0"
Expand Down Expand Up @@ -139,7 +139,12 @@ policy_templates:
multi: false
required: false
show_user: false
description: The request tracer logs requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-httpjson.html#_request_tracer_filename) for details.
description: >-
The request tracer logs requests and responses to the agent's local file-system for debugging configurations.
Enabling this request tracing compromises security and should only be used for debugging. Disabling the request
tracer will delete any stored traces.
See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-httpjson.html#_request_tracer_enable)
for details.
- name: ssl
type: yaml
title: SSL
Expand Down
5 changes: 5 additions & 0 deletions packages/wiz/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.4.0"
changes:
- description: Add support for deleting request trace files.
type: enhancement
link: https://github.com/elastic/integrations/pull/11954
- version: "2.3.0"
changes:
- description: Add tags.yml file so that integration's dashboards and saved searches are tagged with "Security Solution" and displayed in the Security Solution UI.
Expand Down
8 changes: 4 additions & 4 deletions packages/wiz/data_stream/audit/agent/stream/cel.yml.hbs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
resource.tracer.filename: "../../logs/cel/http-request-trace-*.ndjson"
resource.tracer.maxbackups: 5
{{/if}}
resource.tracer:
enabled: {{enable_request_tracer}}
filename: "../../logs/cel/http-request-trace-*.ndjson"
maxbackups: 5
{{#if proxy_url}}
resource.proxy_url: {{proxy_url}}
{{/if}}
Expand Down
7 changes: 6 additions & 1 deletion packages/wiz/data_stream/audit/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ streams:
multi: false
required: false
show_user: false
description: The request tracer logs requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-httpjson.html#_request_tracer_filename) for details.
description: >-
The request tracer logs requests and responses to the agent's local file-system for debugging configurations.
Enabling this request tracing compromises security and should only be used for debugging. Disabling the request
tracer will delete any stored traces.
See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-cel.html#_resource_tracer_enable)
for details.
- name: tags
type: text
title: Tags
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
resource.tracer.filename: "../../logs/cel/http-request-trace-*.ndjson"
resource.tracer.maxbackups: 5
{{/if}}
resource.tracer:
enabled: {{enable_request_tracer}}
filename: "../../logs/cel/http-request-trace-*.ndjson"
maxbackups: 5
{{#if proxy_url}}
resource.proxy_url: {{proxy_url}}
{{/if}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ streams:
multi: false
required: false
show_user: false
description: The request tracer logs requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-httpjson.html#_request_tracer_filename) for details.
description: >-
The request tracer logs requests and responses to the agent's local file-system for debugging configurations.
Enabling this request tracing compromises security and should only be used for debugging. Disabling the request
tracer will delete any stored traces.
See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-cel.html#_resource_tracer_enable)
for details.
- name: tags
type: text
title: Tags
Expand Down
8 changes: 4 additions & 4 deletions packages/wiz/data_stream/issue/agent/stream/cel.yml.hbs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
resource.tracer.filename: "../../logs/cel/http-request-trace-*.ndjson"
resource.tracer.maxbackups: 5
{{/if}}
resource.tracer:
enabled: {{enable_request_tracer}}
filename: "../../logs/cel/http-request-trace-*.ndjson"
maxbackups: 5
{{#if proxy_url}}
resource.proxy_url: {{proxy_url}}
{{/if}}
Expand Down
7 changes: 6 additions & 1 deletion packages/wiz/data_stream/issue/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ streams:
multi: false
required: false
show_user: false
description: The request tracer logs requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-httpjson.html#_request_tracer_filename) for details.
description: >-
The request tracer logs requests and responses to the agent's local file-system for debugging configurations.
Enabling this request tracing compromises security and should only be used for debugging. Disabling the request
tracer will delete any stored traces.
See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-cel.html#_resource_tracer_enable)
for details.
- name: tags
type: text
title: Tags
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
config_version: 2
interval: {{interval}}
{{#if enable_request_tracer}}
resource.tracer.filename: "../../logs/cel/http-request-trace-*.ndjson"
resource.tracer.maxbackups: 5
{{/if}}
resource.tracer:
enabled: {{enable_request_tracer}}
filename: "../../logs/cel/http-request-trace-*.ndjson"
maxbackups: 5
{{#if proxy_url}}
resource.proxy_url: {{proxy_url}}
{{/if}}
Expand Down
7 changes: 6 additions & 1 deletion packages/wiz/data_stream/vulnerability/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ streams:
multi: false
required: false
show_user: false
description: The request tracer logs requests and responses to the agent's local file-system for debugging configurations. Enabling this request tracing compromises security and should only be used for debugging. See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-httpjson.html#_request_tracer_filename) for details.
description: >-
The request tracer logs requests and responses to the agent's local file-system for debugging configurations.
Enabling this request tracing compromises security and should only be used for debugging. Disabling the request
tracer will delete any stored traces.
See [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-cel.html#_resource_tracer_enable)
for details.
- name: tags
type: text
title: Tags
Expand Down
2 changes: 1 addition & 1 deletion packages/wiz/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.0.2
name: wiz
title: Wiz
version: "2.3.0"
version: "2.4.0"
description: Collect logs from Wiz with Elastic Agent.
type: integration
categories:
Expand Down

0 comments on commit a82cf1b

Please sign in to comment.