Skip to content

Commit

Permalink
Fix generator files
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.
  • Loading branch information
Tudor Golubenco committed Feb 20, 2017
1 parent 9b43145 commit 6bd2be2
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 6bd2be2

Please sign in to comment.