Skip to content

Commit 8f97c64

Browse files
[aws_logs] fix number_of_workers to be always passed in hbs template (#14416)
1 parent 648e999 commit 8f97c64

File tree

7 files changed

+18
-11
lines changed

7 files changed

+18
-11
lines changed

packages/aws_logs/_dev/build/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ expensive in terms of performance and costs and should be preferably used only
1414
when no SQS notification can be attached to the S3 buckets. This input
1515
integration also supports S3 notification from SNS to SQS.
1616

17-
You can enable SQS notification method by setting `queue_url` configuration value.
17+
You can enable SQS notification method by setting `queue_url` and `number_of_workers` configuration values.
1818
You can enable S3 bucket list polling method by setting `bucket_arn`, `access_point_arn`
1919
or `non_aws_bucket_name` configuration values and `number_of_workers` value.
2020

packages/aws_logs/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
- version: "1.8.1"
2+
changes:
3+
- description: Fix handling of SQS worker count configuration.
4+
type: bugfix
5+
link: https://github.com/elastic/integrations/pull/14416
16
- version: "1.8.0"
27
changes:
38
- description: Add support to configure start_timestamp and ignore_older configurations for AWS S3 backed inputs.

packages/aws_logs/data_stream/generic/agent/stream/aws-cloudwatch.yml.hbs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ log_group_name_prefix: {{ log_group_name_prefix }}
2020
{{#if include_linked_accounts_with_prefix }}
2121
include_linked_accounts_for_prefix_mode: {{ include_linked_accounts_with_prefix }}
2222
{{/if}}
23-
{{#if number_of_workers }}
24-
number_of_workers: {{ number_of_workers }}
25-
{{/if}}
2623
{{/unless}}
2724
{{/unless}}
2825

@@ -50,6 +47,10 @@ log_stream_prefix: {{ log_stream_prefix }}
5047
{{/if}}
5148
{{/unless}}
5249

50+
{{#if number_of_workers }}
51+
number_of_workers: {{ number_of_workers }}
52+
{{/if}}
53+
5354
{{#if start_position }}
5455
start_position: {{ start_position }}
5556
{{/if}}

packages/aws_logs/data_stream/generic/agent/stream/aws-s3.yml.hbs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ When using an S3 bucket, you can specify only one of the following options:
2727
}}
2828

2929
{{! shared S3 bucket polling options }}
30-
{{#if number_of_workers }}
31-
number_of_workers: {{ number_of_workers }}
32-
{{/if}}
3330

3431
{{#if start_timestamp}}
3532
start_timestamp: {{start_timestamp}}
@@ -76,6 +73,10 @@ access_point_arn: {{ access_point_arn }}
7673

7774
{{/unless}}{{! end S3 bucket polling }}
7875

76+
{{! allows number of workers to be configured for SQS queue and S3 buckets}}
77+
{{#if number_of_workers }}
78+
number_of_workers: {{ number_of_workers }}
79+
{{/if}}
7980
{{#if buffer_size }}
8081
buffer_size: {{ buffer_size }}
8182
{{/if}}

packages/aws_logs/data_stream/generic/manifest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,12 @@ streams:
179179
description: ARN of the AWS S3 Access Point that will be polled for list operation. (This is an alternative to the Bucket ARN, and required when `queue_url`, `bucket_arn` or `non_aws_bucket_name` are not set).
180180
- name: number_of_workers
181181
type: integer
182-
title: Number of Workers
182+
title: "[S3/SQS] Number of Workers"
183183
multi: false
184184
required: false
185185
default: 1
186186
show_user: true
187-
description: Number of workers that will process the S3 objects listed. (Required when `bucket_arn` or `access_point_arn` are set).
187+
description: Number of workers that will process the S3 objects listed.
188188
- name: start_timestamp
189189
type: text
190190
title: "Start Timestamp"

packages/aws_logs/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ expensive in terms of performance and costs and should be preferably used only
1414
when no SQS notification can be attached to the S3 buckets. This input
1515
integration also supports S3 notification from SNS to SQS.
1616

17-
You can enable SQS notification method by setting `queue_url` configuration value.
17+
You can enable SQS notification method by setting `queue_url` and `number_of_workers` configuration values.
1818
You can enable S3 bucket list polling method by setting `bucket_arn`, `access_point_arn`
1919
or `non_aws_bucket_name` configuration values and `number_of_workers` value.
2020

packages/aws_logs/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: aws_logs
33
title: Custom AWS Logs
44
description: Collect raw logs from AWS S3 or CloudWatch with Elastic Agent.
55
type: integration
6-
version: "1.8.0"
6+
version: "1.8.1"
77
categories:
88
- cloud
99
- observability

0 commit comments

Comments
 (0)