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 (elastic#17166) (elastic#17266)

(cherry picked from commit 778156c)
  • Loading branch information
kaiyan-sheng authored Mar 26, 2020
1 parent cff3c3b commit 000a95c
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 000a95c

Please sign in to comment.