Skip to content

Commit 2b57770

Browse files
authored
[filestream] add support to decompress gzip files (#15047)
* filestream: add option to enabled decompressing GZIP files when ingesting them
1 parent 4d87617 commit 2b57770

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

packages/filestream/agent/input/filestream.yml.hbs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ paths:
1010
- {{path}}
1111
{{/each}}
1212

13+
{{#if gzip_experimental}}
14+
gzip_experimental: true
15+
{{/if}}
16+
1317
{{#if pipeline}}
1418
pipeline: {{pipeline}}
1519
{{/if}}

packages/filestream/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.1.0"
3+
changes:
4+
- description: Allow filestream to be configured to ingest GZIP files
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/15047
27
- version: "2.0.1"
38
changes:
49
- description: Remove hard-coded dataset field

packages/filestream/manifest.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: filestream
33
title: Custom Logs (Filestream)
44
description: Collect log data using filestream with Elastic Agent.
55
type: input
6-
version: 2.0.1
6+
version: 2.1.0
77
conditions:
88
kibana:
99
version: "^9.2.0"
@@ -29,6 +29,15 @@ policy_templates:
2929
show_user: true
3030
default:
3131
- /var/log/*.log
32+
- name: gzip_experimental
33+
type: bool
34+
title: Decompress GZIP files
35+
multi: false
36+
required: false
37+
show_user: true
38+
default: false
39+
description: |
40+
When enabled, filestream will decompress GZIP-compressed files (.gz) as they are read. This is beta feature. For full details, see the [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-filestream#reading-gzip-files). If enabled, you **must** also remove the '\.gz$' pattern from the "Exclude Files" setting to ensure `.gz` files are ingested. Available for Elastic Agent 9.2.0 and newer.
3241
- name: use_logs_stream
3342
type: bool
3443
title: Use the "logs" data stream
@@ -71,7 +80,7 @@ policy_templates:
7180
type: text
7281
title: Exclude Files
7382
description: |
74-
A list of regular expressions to match the files that you want Elastic Agent to ignore. By default no files are excluded.
83+
A list of regular expressions used to ignore files. By default, this list includes '\.gz$' to exclude GZIP files. If you enable the "Decompress GZIP files" option (Elastic Agent 9.2.0+), the default pattern, '\.gz$', **must** be removed.
7584
required: false
7685
show_user: true
7786
multi: true

0 commit comments

Comments
 (0)