diff --git a/filebeat/Makefile b/filebeat/Makefile index 7af9b77c56f6..9550db6885f6 100644 --- a/filebeat/Makefile +++ b/filebeat/Makefile @@ -39,10 +39,10 @@ modules: .PHONY: configs configs: python-env cat ${ES_BEATS}/filebeat/_meta/common.p1.yml > _meta/beat.yml - . ${PYTHON_ENV}/bin/activate; python ${ES_BEATS}/metricbeat/scripts/config_collector.py --beat ${BEAT_NAME} $(PWD) >> _meta/beat.yml + . ${PYTHON_ENV}/bin/activate; python ${ES_BEATS}/script/config_collector.py --beat ${BEAT_NAME} $(PWD) >> _meta/beat.yml cat ${ES_BEATS}/filebeat/_meta/common.p2.yml >> _meta/beat.yml cat ${ES_BEATS}/filebeat/_meta/common.full.p1.yml > _meta/beat.full.yml - . ${PYTHON_ENV}/bin/activate; python ${ES_BEATS}/metricbeat/scripts/config_collector.py --beat ${BEAT_NAME} --full $(PWD) >> _meta/beat.full.yml + . ${PYTHON_ENV}/bin/activate; python ${ES_BEATS}/script/config_collector.py --beat ${BEAT_NAME} --full $(PWD) >> _meta/beat.full.yml cat ${ES_BEATS}/filebeat/_meta/common.full.p2.yml >> _meta/beat.full.yml # Collects all module docs diff --git a/filebeat/module/apache2/_meta/fields.yml b/filebeat/module/apache2/_meta/fields.yml index fe226d86d62b..9a0810d1972c 100644 --- a/filebeat/module/apache2/_meta/fields.yml +++ b/filebeat/module/apache2/_meta/fields.yml @@ -2,6 +2,7 @@ title: "Apache2" description: > Apache2 Module + short_config: true fields: - name: apache2 type: group diff --git a/filebeat/module/auditd/_meta/fields.yml b/filebeat/module/auditd/_meta/fields.yml index 360fb7326717..c3d79ce0594c 100644 --- a/filebeat/module/auditd/_meta/fields.yml +++ b/filebeat/module/auditd/_meta/fields.yml @@ -2,6 +2,7 @@ title: "Auditd" description: > Module for parsing auditd logs. + short_config: true fields: - name: auditd type: group diff --git a/filebeat/module/mysql/_meta/fields.yml b/filebeat/module/mysql/_meta/fields.yml index 4cafbcd87458..62763f8d4630 100644 --- a/filebeat/module/mysql/_meta/fields.yml +++ b/filebeat/module/mysql/_meta/fields.yml @@ -2,6 +2,7 @@ title: "MySQL" description: > Module for parsing the MySQL log files. + short_config: true fields: - name: mysql type: group diff --git a/filebeat/module/nginx/_meta/fields.yml b/filebeat/module/nginx/_meta/fields.yml index 8f9cef374999..f2b8faa3e0ff 100644 --- a/filebeat/module/nginx/_meta/fields.yml +++ b/filebeat/module/nginx/_meta/fields.yml @@ -2,6 +2,7 @@ title: "Nginx" description: > Module for parsing the Nginx log files. + short_config: true fields: - name: nginx type: group diff --git a/filebeat/module/system/_meta/fields.yml b/filebeat/module/system/_meta/fields.yml index d4c85fa85ec1..a6fb8d16c8b2 100644 --- a/filebeat/module/system/_meta/fields.yml +++ b/filebeat/module/system/_meta/fields.yml @@ -2,6 +2,7 @@ title: "System" description: > Module for parsing system log files. + short_config: true fields: - name: system type: group diff --git a/metricbeat/Makefile b/metricbeat/Makefile index 708fd89080d3..e09a1ef93ec3 100644 --- a/metricbeat/Makefile +++ b/metricbeat/Makefile @@ -52,9 +52,9 @@ collect-docs: python-env .PHONY: configs configs: python-env cat ${ES_BEATS}/metricbeat/_meta/common.yml > _meta/beat.yml - . ${PYTHON_ENV}/bin/activate; python ${ES_BEATS}/metricbeat/scripts/config_collector.py --beat ${BEAT_NAME} $(PWD) >> _meta/beat.yml + . ${PYTHON_ENV}/bin/activate; python ${ES_BEATS}/script/config_collector.py --beat ${BEAT_NAME} $(PWD) >> _meta/beat.yml cat ${ES_BEATS}/metricbeat/_meta/common.full.yml > _meta/beat.full.yml - . ${PYTHON_ENV}/bin/activate; python ${ES_BEATS}/metricbeat/scripts/config_collector.py --beat ${BEAT_NAME} --full $(PWD) >> _meta/beat.full.yml + . ${PYTHON_ENV}/bin/activate; python ${ES_BEATS}/script/config_collector.py --beat ${BEAT_NAME} --full $(PWD) >> _meta/beat.full.yml # Generates imports for all modules and metricsets .PHONY: imports diff --git a/metricbeat/metricbeat.yml b/metricbeat/metricbeat.yml index 9153956e01df..657ea61828d2 100644 --- a/metricbeat/metricbeat.yml +++ b/metricbeat/metricbeat.yml @@ -46,14 +46,6 @@ metricbeat.modules: period: 10s processes: ['.*'] -#------------------------------- kibana Module ------------------------------- -- module: kibana - metricsets: ["status"] - enabled: true - period: 10s - hosts: ["localhost:5601"] - - #================================ General ===================================== diff --git a/metricbeat/module/redis/_meta/fields.yml b/metricbeat/module/redis/_meta/fields.yml index 1174fc5a9797..496cd7024bc3 100644 --- a/metricbeat/module/redis/_meta/fields.yml +++ b/metricbeat/module/redis/_meta/fields.yml @@ -2,7 +2,6 @@ title: "Redis" description: > Redis metrics collected from Redis. - short_config: false fields: - name: redis type: group diff --git a/metricbeat/module/system/_meta/fields.yml b/metricbeat/module/system/_meta/fields.yml index a6098908e472..5edf3e4e5438 100644 --- a/metricbeat/module/system/_meta/fields.yml +++ b/metricbeat/module/system/_meta/fields.yml @@ -2,6 +2,7 @@ title: "System" description: > System status metrics, like CPU and memory usage, that are collected from the operating system. + short_config: true fields: - name: system type: group diff --git a/metricbeat/scripts/config_collector.py b/script/config_collector.py similarity index 98% rename from metricbeat/scripts/config_collector.py rename to script/config_collector.py index c258e8b6c1c0..527c14cf3aac 100644 --- a/metricbeat/scripts/config_collector.py +++ b/script/config_collector.py @@ -31,7 +31,7 @@ def collect(beat_name, beat_path, full=False): module_configs = beat_path + "/config.yml" # By default, short config is read if short is set - short_config = True + short_config = False # Check if full config exists if full: