Skip to content

Commit

Permalink
Ensure filestream fingerprint is disabled in system tests (elastic#12349
Browse files Browse the repository at this point in the history
)

- Disabled filestream fingerprint (defaults to enabled in 9.0) in
goflow2, imperva, proxysg, and syslog_router system tests
- Exposed filestream options configuration for goflow2, imperva, and proxysg
in order to disable fingerprint in the system tests
  • Loading branch information
taylor-swanson authored Jan 15, 2025
1 parent 8ba1803 commit 6373bde
Show file tree
Hide file tree
Showing 18 changed files with 75 additions and 5 deletions.
5 changes: 5 additions & 0 deletions packages/goflow2/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 configuration for custom filestream options. Ensure filestream fingerprint is disabled in system test.
type: enhancement
link: https://github.com/elastic/integrations/pull/12349
- version: "0.1.1"
changes:
- description: Use triple-brace Mustache templating when referencing variables in ingest pipelines.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@ data_stream:
preserve_original_event: true
paths:
- "{{{SERVICE_LOGS_DIR}}}/*goflow2-sflow*.log"
filestream_options: |-
file_identity.native: ~
prospector:
scanner:
fingerprint.enabled: false
assert:
hit_count: 9
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ processors:
{{/if}}
{{#if ignore_older}}
ignore_older: {{ignore_older}}
{{/if}}
{{/if}}
{{#if filestream_options}}
{{filestream_options}}
{{/if}}
7 changes: 7 additions & 0 deletions packages/goflow2/data_stream/sflow/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ streams:
default:
- sflow
- forwarded
- name: filestream_options
type: yaml
title: Custom Filestream Options
multi: false
required: false
show_user: false
description: Specify custom configuration options for the Filestream input. See [filestream input](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-filestream.html) for details.
- name: processors
type: yaml
title: Processors
Expand Down
2 changes: 1 addition & 1 deletion packages/goflow2/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.2.1
name: goflow2
title: "GoFlow2 logs"
version: 0.1.1
version: 0.2.0
description: "Collect logs from goflow2 with Elastic Agent."
type: integration
categories:
Expand Down
5 changes: 5 additions & 0 deletions packages/imperva/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.2.0"
changes:
- description: Add configuration for custom filestream options. Ensure filestream fingerprint is disabled in system test.
type: enhancement
link: https://github.com/elastic/integrations/pull/12349
- version: "1.1.0"
changes:
- description: Update package spec to 3.0.3.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ data_stream:
- "{{SERVICE_LOGS_DIR}}/*imperva*.log"
preserve_original_event: true
preserve_duplicate_custom_fields: true
filestream_options: |-
file_identity.native: ~
prospector:
scanner:
fingerprint.enabled: false
numeric_keyword_fields:
- log.file.device_id
- log.file.inode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ fields:
processors:
{{processors}}
{{/if}}
{{#if filestream_options}}
{{filestream_options}}
{{/if}}
7 changes: 7 additions & 0 deletions packages/imperva/data_stream/securesphere/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,13 @@ streams:
type: bool
multi: false
default: false
- name: filestream_options
type: yaml
title: Custom Filestream Options
multi: false
required: false
show_user: false
description: Specify custom configuration options for the Filestream input. See [filestream input](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-filestream.html) for details.
- name: processors
type: yaml
title: Processors
Expand Down
2 changes: 1 addition & 1 deletion packages/imperva/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.0.3
name: imperva
title: Imperva
version: "1.1.0"
version: "1.2.0"
description: Collect logs from Imperva devices with Elastic Agent.
categories: ["network", "security"]
type: integration
Expand Down
5 changes: 5 additions & 0 deletions packages/proxysg/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: 0.4.0
changes:
- description: Add configuration for custom filestream options. Ensure filestream fingerprint is disabled in system test.
type: enhancement
link: https://github.com/elastic/integrations/pull/12349
- version: 0.3.1
changes:
- description: Add format config to all inputs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ data_stream:
vars:
paths:
- "{{SERVICE_LOGS_DIR}}/proxysg.log"
filestream_options: |-
file_identity.native: ~
prospector:
scanner:
fingerprint.enabled: false
assert:
hit_count: 5
3 changes: 3 additions & 0 deletions packages/proxysg/data_stream/log/agent/stream/stream.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ processors:
{{#if processors}}
{{processors}}
{{/if}}
{{#if filestream_options}}
{{filestream_options}}
{{/if}}
7 changes: 7 additions & 0 deletions packages/proxysg/data_stream/log/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ streams:
required: true
show_user: true
- name: filestream_options
type: yaml
title: Custom Filestream Options
multi: false
required: false
show_user: false
description: Specify custom configuration options for the Filestream input. See [filestream input](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-filestream.html) for details.
- name: processors
type: yaml
title: Processors
Expand Down
2 changes: 1 addition & 1 deletion packages/proxysg/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.1.1
name: proxysg
title: "Broadcom ProxySG"
version: 0.3.1
version: 0.4.0
source:
license: "Elastic-2.0"
description: "Collect access logs from Broadcom ProxySG with Elastic Agent."
Expand Down
5 changes: 5 additions & 0 deletions packages/syslog_router/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.1.1"
changes:
- description: Ensure filestream fingerprint is disabled in system test.
type: enhancement
link: https://github.com/elastic/integrations/pull/12349
- version: "0.1.0"
changes:
- description: Initial draft of the package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@ data_stream:
paths:
- "{{SERVICE_LOGS_DIR}}/*.log"
preserve_original_event: true
filestream_options: |-
file_identity.native: ~
prospector:
scanner:
fingerprint.enabled: false
assert:
hit_count: 1
2 changes: 1 addition & 1 deletion packages/syslog_router/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.2.1
name: syslog_router
title: "Syslog Router"
version: 0.1.0
version: 0.1.1
description: "Route syslog events to integrations with Elastic Agent."
type: integration
categories:
Expand Down

0 comments on commit 6373bde

Please sign in to comment.