Skip to content

Commit

Permalink
Add max_number_of_messages into aws filebeat fileset vars (elastic#22057
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kaiyan-sheng authored Oct 22, 2020
1 parent daed8f9 commit 5d07709
Show file tree
Hide file tree
Showing 15 changed files with 144 additions and 0 deletions.
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

0 comments on commit 5d07709

Please sign in to comment.