Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick #22057 to 7.x: Add max_number_of_messages into aws filebeat fileset vars #22105

Merged
merged 1 commit into from
Oct 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions x-pack/filebeat/filebeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ filebeat.modules:
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

cloudwatch:
enabled: false

Expand Down Expand Up @@ -176,6 +182,12 @@ filebeat.modules:
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

ec2:
enabled: false

Expand Down Expand Up @@ -210,6 +222,12 @@ filebeat.modules:
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

elb:
enabled: false

Expand Down Expand Up @@ -244,6 +262,12 @@ filebeat.modules:
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

s3access:
enabled: false

Expand Down Expand Up @@ -278,6 +302,12 @@ filebeat.modules:
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

vpcflow:
enabled: false

Expand Down Expand Up @@ -312,6 +342,12 @@ filebeat.modules:
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

#-------------------------------- Azure Module --------------------------------
- module: azure
# All logs
Expand Down
36 changes: 36 additions & 0 deletions x-pack/filebeat/module/aws/_meta/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

cloudwatch:
enabled: false

Expand Down Expand Up @@ -79,6 +85,12 @@
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

ec2:
enabled: false

Expand Down Expand Up @@ -113,6 +125,12 @@
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

elb:
enabled: false

Expand Down Expand Up @@ -147,6 +165,12 @@
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

s3access:
enabled: false

Expand Down Expand Up @@ -181,6 +205,12 @@
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

vpcflow:
enabled: false

Expand Down Expand Up @@ -214,3 +244,9 @@

# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5
4 changes: 4 additions & 0 deletions x-pack/filebeat/module/aws/cloudtrail/config/s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ role_arn: {{ .role_arn }}
fips_enabled: {{ .fips_enabled }}
{{ end }}

{{ if .max_number_of_messages }}
max_number_of_messages: {{ .max_number_of_messages }}
{{ end }}

tags: {{.tags | tojson}}
publisher_pipeline.disable_host: {{ inList .tags "forwarded" }}

Expand Down
2 changes: 2 additions & 0 deletions x-pack/filebeat/module/aws/cloudtrail/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ var:
default: true
- name: process_insight_logs
default: true
- name: fips_enabled
- name: max_number_of_messages

ingest_pipeline: ingest/pipeline.yml
input: config/{{.input}}.yml
4 changes: 4 additions & 0 deletions x-pack/filebeat/module/aws/cloudwatch/config/s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ role_arn: {{ .role_arn }}
fips_enabled: {{ .fips_enabled }}
{{ end }}

{{ if .max_number_of_messages }}
max_number_of_messages: {{ .max_number_of_messages }}
{{ end }}

tags: {{.tags | tojson}}
publisher_pipeline.disable_host: {{ inList .tags "forwarded" }}

Expand Down
2 changes: 2 additions & 0 deletions x-pack/filebeat/module/aws/cloudwatch/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ var:
- name: role_arn
- name: tags
default: [forwarded]
- name: fips_enabled
- name: max_number_of_messages

ingest_pipeline: ingest/pipeline.yml
input: config/{{.input}}.yml
4 changes: 4 additions & 0 deletions x-pack/filebeat/module/aws/ec2/config/s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ role_arn: {{ .role_arn }}
fips_enabled: {{ .fips_enabled }}
{{ end }}

{{ if .max_number_of_messages }}
max_number_of_messages: {{ .max_number_of_messages }}
{{ end }}

tags: {{.tags | tojson}}
publisher_pipeline.disable_host: {{ inList .tags "forwarded" }}

Expand Down
2 changes: 2 additions & 0 deletions x-pack/filebeat/module/aws/ec2/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ var:
- name: role_arn
- name: tags
default: [forwarded]
- name: fips_enabled
- name: max_number_of_messages

ingest_pipeline: ingest/pipeline.yml
input: config/{{.input}}.yml
4 changes: 4 additions & 0 deletions x-pack/filebeat/module/aws/elb/config/s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ role_arn: {{ .role_arn }}
fips_enabled: {{ .fips_enabled }}
{{ end }}

{{ if .max_number_of_messages }}
max_number_of_messages: {{ .max_number_of_messages }}
{{ end }}

tags: {{.tags | tojson}}
publisher_pipeline.disable_host: {{ inList .tags "forwarded" }}

Expand Down
2 changes: 2 additions & 0 deletions x-pack/filebeat/module/aws/elb/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ var:
- name: role_arn
- name: tags
default: [forwarded]
- name: fips_enabled
- name: max_number_of_messages

ingest_pipeline: ingest/pipeline.yml
input: config/{{.input}}.yml
Expand Down
4 changes: 4 additions & 0 deletions x-pack/filebeat/module/aws/s3access/config/s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ role_arn: {{ .role_arn }}
fips_enabled: {{ .fips_enabled }}
{{ end }}

{{ if .max_number_of_messages }}
max_number_of_messages: {{ .max_number_of_messages }}
{{ end }}

tags: {{.tags | tojson}}
publisher_pipeline.disable_host: {{ inList .tags "forwarded" }}

Expand Down
2 changes: 2 additions & 0 deletions x-pack/filebeat/module/aws/s3access/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ var:
- name: role_arn
- name: tags
default: [forwarded]
- name: fips_enabled
- name: max_number_of_messages

ingest_pipeline: ingest/pipeline.yml
input: config/{{.input}}.yml
4 changes: 4 additions & 0 deletions x-pack/filebeat/module/aws/vpcflow/config/input.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ role_arn: {{ .role_arn }}
fips_enabled: {{ .fips_enabled }}
{{ end }}

{{ if .max_number_of_messages }}
max_number_of_messages: {{ .max_number_of_messages }}
{{ end }}

{{ else if eq .input "file" }}

type: log
Expand Down
2 changes: 2 additions & 0 deletions x-pack/filebeat/module/aws/vpcflow/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ var:
- name: role_arn
- name: tags
default: [forwarded]
- name: fips_enabled
- name: max_number_of_messages

ingest_pipeline: ingest/pipeline.yml
input: config/input.yml
36 changes: 36 additions & 0 deletions x-pack/filebeat/modules.d/aws.yml.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

cloudwatch:
enabled: false

Expand Down Expand Up @@ -82,6 +88,12 @@
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

ec2:
enabled: false

Expand Down Expand Up @@ -116,6 +128,12 @@
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

elb:
enabled: false

Expand Down Expand Up @@ -150,6 +168,12 @@
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

s3access:
enabled: false

Expand Down Expand Up @@ -184,6 +208,12 @@
# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5

vpcflow:
enabled: false

Expand Down Expand Up @@ -217,3 +247,9 @@

# AWS IAM Role to assume
#var.role_arn: arn:aws:iam::123456789012:role/test-mb

# Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint.
#var.fips_enabled: false

# The maximum number of messages to return from SQS. Valid values: 1 to 10.
#var.max_number_of_messages: 5