Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate: modules yaml and their json expected file to use the input and the input.type field #6121

Merged
merged 1 commit into from
Feb 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ https://github.com/elastic/beats/compare/v6.0.0-beta2...master[Check the HEAD di
one. This change also affect YAML configuration. {pull}6078[6078]
- Refactor the Redis prospector to use the input interface {pull}6116[6116]
- Refactor the UDP prospector to use the input interface {pull}6118[6118]
- Refactor the usage of prospector to input in the YAML reference {pull}6121[6121]

*Heartbeat*

Expand Down
52 changes: 26 additions & 26 deletions filebeat/filebeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ filebeat.modules:
# Convert the timestamp to UTC. Requires Elasticsearch >= 6.1.
#var.convert_timezone: false

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:

# Authorization logs
#auth:
Expand All @@ -39,9 +39,9 @@ filebeat.modules:
# Convert the timestamp to UTC. Requires Elasticsearch >= 6.1.
#var.convert_timezone: false

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:

#------------------------------- Apache2 Module ------------------------------
#- module: apache2
Expand All @@ -53,9 +53,9 @@ filebeat.modules:
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:

# Error logs
#error:
Expand All @@ -65,9 +65,9 @@ filebeat.modules:
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:

#------------------------------- Auditd Module -------------------------------
#- module: auditd
Expand All @@ -78,9 +78,9 @@ filebeat.modules:
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:

#------------------------------- Icinga Module -------------------------------
#- module: icinga
Expand All @@ -92,9 +92,9 @@ filebeat.modules:
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:

# Debug logs
#debug:
Expand All @@ -104,9 +104,9 @@ filebeat.modules:
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:

# Startup logs
#startup:
Expand All @@ -116,9 +116,9 @@ filebeat.modules:
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:

#-------------------------------- Kafka Module -------------------------------
- module: kafka
Expand Down Expand Up @@ -162,9 +162,9 @@ filebeat.modules:
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:

# Slow logs
#slowlog:
Expand All @@ -174,9 +174,9 @@ filebeat.modules:
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:

#-------------------------------- Nginx Module -------------------------------
#- module: nginx
Expand All @@ -200,9 +200,9 @@ filebeat.modules:
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:

#------------------------------- Osquery Module ------------------------------
- module: osquery
Expand All @@ -228,9 +228,9 @@ filebeat.modules:
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:

#-------------------------------- Redis Module -------------------------------
#- module: redis
Expand Down Expand Up @@ -262,9 +262,9 @@ filebeat.modules:
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:


#=========================== Filebeat prospectors =============================
Expand Down
8 changes: 4 additions & 4 deletions filebeat/module/apache2/_meta/config.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:

# Error logs
#error:
Expand All @@ -19,6 +19,6 @@
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:
2 changes: 1 addition & 1 deletion filebeat/module/apache2/access/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var:
- "C:/Program Files/Apache Software Foundation/Apache2.*/logs/access.log*"

ingest_pipeline: ingest/default.json
prospector: config/access.yml
input: config/access.yml

requires.processors:
- name: user_agent
Expand Down
12 changes: 12 additions & 0 deletions filebeat/module/apache2/access/test/test.log-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
},
"prospector": {
"type": "log"
},
"input": {
"type": "log"
}
},
"fields": {
Expand Down Expand Up @@ -89,6 +92,9 @@
},
"prospector": {
"type": "log"
},
"input": {
"type": "log"
}
},
"fields": {
Expand Down Expand Up @@ -128,6 +134,9 @@
},
"prospector": {
"type": "log"
},
"input": {
"type": "log"
}
},
"fields": {
Expand Down Expand Up @@ -177,6 +186,9 @@
"prospector": {
"type": "log"
},
"input": {
"type": "log"
},
"read_timestamp": "2017-05-29T19:34:14.378Z",
"source": "/home/exekias/go/src/github.com/elastic/beats/filebeat/apache2.log"
},
Expand Down
2 changes: 1 addition & 1 deletion filebeat/module/apache2/error/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ var:
- "C:/Program Files/Apache Software Foundation/Apache2.*/logs/error.log*"

ingest_pipeline: ingest/pipeline.json
prospector: config/error.yml
input: config/error.yml
9 changes: 9 additions & 0 deletions filebeat/module/apache2/error/test/test.log-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"prospector": {
"type": "log"
},
"input": {
"type": "log"
},
"source": "module/apache2/error/test/test.log",
"fields": {
"pipeline_id": "apache2-error-pipeline",
Expand Down Expand Up @@ -56,6 +59,9 @@
"prospector": {
"type": "log"
},
"input": {
"type": "log"
},
"source": "module/apache2/error/test/test.log",
"fields": {
"pipeline_id": "apache2-error-pipeline",
Expand Down Expand Up @@ -86,6 +92,9 @@
"prospector": {
"type": "log"
},
"input": {
"type": "log"
},
"source": "module/apache2/error/test/test.log",
"fields": {
"pipeline_id": "apache2-error-pipeline",
Expand Down
4 changes: 2 additions & 2 deletions filebeat/module/auditd/_meta/config.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:
2 changes: 1 addition & 1 deletion filebeat/module/auditd/log/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var:
os.windows: []

ingest_pipeline: ingest/pipeline.json
prospector: config/log.yml
input: config/log.yml

requires.processors:
- name: geoip
Expand Down
6 changes: 6 additions & 0 deletions filebeat/module/auditd/log/test/test.log-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"prospector": {
"type": "log"
},
"input": {
"type": "log"
},
"source": "/Users/me/go/src/github.com/elastic/beats/filebeat/module/auditd/log/test/test.log",
"fileset": {
"module": "auditd",
Expand Down Expand Up @@ -49,6 +52,9 @@
"prospector": {
"type": "log"
},
"input": {
"type": "log"
},
"source": "/Users/me/go/src/github.com/elastic/beats/filebeat/module/auditd/log/test/test.log",
"fileset": {
"module": "auditd",
Expand Down
12 changes: 6 additions & 6 deletions filebeat/module/icinga/_meta/config.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:

# Debug logs
#debug:
Expand All @@ -19,9 +19,9 @@
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:

# Startup logs
#startup:
Expand All @@ -31,6 +31,6 @@
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Prospector configuration (advanced). Any prospector configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#prospector:
#input:
2 changes: 1 addition & 1 deletion filebeat/module/icinga/debug/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ var:
- c:/programdata/icinga2/var/log/icinga2/debug.log*

ingest_pipeline: ingest/pipeline.json
prospector: config/debug.yml
input: config/debug.yml
9 changes: 9 additions & 0 deletions filebeat/module/icinga/debug/test/test.log-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"prospector": {
"type": "log"
},
"input": {
"type": "log"
},
"icinga": {
"debug": {
"severity": "debug",
Expand Down Expand Up @@ -53,6 +56,9 @@
"prospector": {
"type": "log"
},
"input": {
"type": "log"
},
"icinga": {
"debug": {
"severity": "debug",
Expand Down Expand Up @@ -91,6 +97,9 @@
"prospector": {
"type": "log"
},
"input": {
"type": "log"
},
"icinga": {
"debug": {
"severity": "notice",
Expand Down
2 changes: 1 addition & 1 deletion filebeat/module/icinga/main/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ var:
- c:/programdata/icinga2/var/log/icinga2/icinga2.log*

ingest_pipeline: ingest/pipeline.json
prospector: config/main.yml
input: config/main.yml
Loading