Skip to content

Commit

Permalink
Fix generator files (#3621) (#3626)
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 #3159.
(cherry picked from commit 87b0618)
  • Loading branch information
tsg authored and ruflin committed Feb 21, 2017
1 parent 4ea9a66 commit e925a27
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
@@ -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
@@ -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 e925a27

Please sign in to comment.