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)
  • Loading branch information
kaiyan-sheng committed Mar 26, 2020
1 parent 4484a0b commit 778156c
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 778156c

Please sign in to comment.