Skip to content

Commit

Permalink
Fix generator files (elastic#3621)
Browse files Browse the repository at this point in the history
There were some changes in the structure of some files, and this is
needed to update the generator as well.

Part of elastic#3159.
(cherry picked from commit 87b0618)
  • Loading branch information
tsg authored and Tudor Golubenco committed Feb 20, 2017
1 parent 4ea9a66 commit 86a86e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
15 changes: 6 additions & 9 deletions filebeat/scripts/module/fileset/config/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
- input_type: log
paths:
{%- for path in paths %}
- {{path}}
{%- endfor %}
exclude_files: [".gz$"]
fields:
source_type: {module}-{fileset}
pipeline_id: {{beat.pipeline_id}}
input_type: log
paths:
{{ range $i, $path := .paths }}
- {{$path}}
{{ end }}
exclude_files: [".gz$"]
13 changes: 6 additions & 7 deletions filebeat/scripts/module/fileset/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
module_version: 1.0

vars:
paths:
var:
- name: paths
default:
- /example/path*
- /example/test.log*
os.darwin:
- /usr/local/example/path*
- /usr/local/example/test.log*
os.windows:
- "c:/example/path*"
- c:/programdata/example/logs/test.log*

ingest_pipeline: ingest/pipeline.json
prospectors:
- config/{fileset}.yml
prospectors: config/{fileset}.yml

0 comments on commit 86a86e9

Please sign in to comment.