Skip to content

Commit

Permalink
Use s3.yml as config name to match config/{{.input}}.yml in manifest.…
Browse files Browse the repository at this point in the history
…yml (#17166) (#17265)

(cherry picked from commit 841540c)
  • Loading branch information
kaiyan-sheng authored Mar 26, 2020
1 parent 7dd64f1 commit 3562dee
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 14 deletions.
6 changes: 6 additions & 0 deletions x-pack/filebeat/module/aws/cloudtrail/config/file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: log
paths:
{{ range $i, $path := .paths }}
- {{$path}}
{{ end }}
exclude_files: [".gz$"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{{ if eq .input "s3" }}

type: s3
queue_url: {{ .queue_url }}
expand_event_list_from_field: Records
Expand All @@ -23,14 +21,3 @@ api_timeout: {{ .api_timeout }}
{{ if .endpoint }}
endpoint: {{ .endpoint }}
{{ end }}

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

type: log
paths:
{{ range $i, $path := .paths }}
- {{$path}}
{{ end }}
exclude_files: [".gz$"]

{{ end }}
2 changes: 1 addition & 1 deletion x-pack/filebeat/module/aws/cloudtrail/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ var:
- name: endpoint

ingest_pipeline: ingest/pipeline.yml
input: config/cloudtrail.yml
input: config/{{.input}}.yml

0 comments on commit 3562dee

Please sign in to comment.