According to the docs, filebeat setup
is the same as filebeat --setup
except that filebeat --setup
keeps running while filebeat setup
runs the setup and exits.
Sets up the initial environment, including the index template, Kibana dashboards (when available), and machine learning jobs (when available).
Loads the sample Kibana dashboards. If you want to load the dashboards without running Filebeat, use the setup command instead.
However, it seems the ingest nodes are only loaded when running filebeat --setup
. This will not load the pipelines as seen by "GET /_ingest/pipeline/" in Kibana's console.
filebeat setup -e -v \
-E 'setup.template.overwrite=true' \
-E 'setup.kibana.host="kibana.example.com:5601"' \
-E 'output.logstash.enabled=false' \
-E 'output.elasticsearch.hosts=["elasticsearch.example.com:9200"]'
2018/01/27 13:58:14.232586 beat.go:436: INFO Home path: [/usr/share/filebeat] Config path: [/etc/filebeat] Data path: [/var/lib/filebeat] Logs path: [/var/log/filebeat]
2018/01/27 13:58:14.232661 metrics.go:23: INFO Metrics logging every 30s
2018/01/27 13:58:14.232675 beat.go:443: INFO Beat UUID: aff84948-7a36-4d9d-8418-50e711c18258
2018/01/27 13:58:14.232691 beat.go:203: INFO Setup Beat: filebeat; Version: 6.1.2
2018/01/27 13:58:14.232867 client.go:123: INFO Elasticsearch url: http://elasticsearch.example.com:9200
2018/01/27 13:58:14.233130 module.go:76: INFO Beat name: LXD1
2018/01/27 13:58:14.233281 client.go:123: INFO Elasticsearch url: http://elasticsearch.example.com:9200
2018/01/27 13:58:14.235110 client.go:651: INFO Connected to Elasticsearch version 6.1.2
2018/01/27 13:58:14.236008 load.go:55: INFO Loading template for Elasticsearch version: 6.1.2
2018/01/27 13:58:14.236019 load.go:58: INFO Existing template will be overwritten, as overwrite is enabled.
2018/01/27 13:58:14.261007 load.go:89: INFO Elasticsearch template with name 'filebeat-6.1.2' loaded
Loaded index template
2018/01/27 13:58:14.261136 client.go:123: INFO Elasticsearch url: http://elasticsearch.example.com:9200
2018/01/27 13:58:14.262468 client.go:651: INFO Connected to Elasticsearch version 6.1.2
2018/01/27 13:58:14.262514 client.go:69: INFO Kibana url: http://kibana.example.com:5601
2018/01/27 13:58:38.307364 beat.go:551: INFO Kibana dashboards successfully loaded.
Loaded dashboards
2018/01/27 13:58:38.307508 client.go:123: INFO Elasticsearch url: http://elasticsearch.example.com:9200
2018/01/27 13:58:38.308961 client.go:651: INFO Connected to Elasticsearch version 6.1.2
2018/01/27 13:58:38.309459 modules.go:459: WARN Xpack Machine Learning is not enabled
2018/01/27 13:58:38.310399 modules.go:459: WARN Xpack Machine Learning is not enabled
2018/01/27 13:58:38.311140 modules.go:459: WARN Xpack Machine Learning is not enabled
Loaded machine learning job configurations
This command will load the pipelines as seen by "Elasticsearch pipeline with ID ... loaded" in the output.
filebeat --setup -e -v \
-E 'setup.template.overwrite=true' \
-E 'setup.kibana.host="kibana.example.com:5601"' \
-E 'output.logstash.enabled=false' \
-E 'output.elasticsearch.hosts=["elasticsearch.example.com:9200"]'
... (output same as above)
2018/01/27 13:59:29.463309 crawler.go:82: INFO Loading and starting Prospectors completed. Enabled prospectors: 1
2018/01/27 13:59:29.463345 reload.go:127: INFO Config reloader started
2018/01/27 13:59:29.485863 reload.go:258: INFO Starting 2 runners ...
2018/01/27 13:59:29.486034 client.go:123: INFO Elasticsearch url: http://elasticsearch.example.com:9200
2018/01/27 13:59:29.487848 client.go:651: INFO Connected to Elasticsearch version 6.1.2
2018/01/27 13:59:29.502610 modules.go:384: INFO Elasticsearch pipeline with ID 'filebeat-6.1.2-auditd-log-pipeline' loaded
2018/01/27 13:59:29.502630 prospector.go:87: INFO Starting prospector of type: log; ID: 9601487749450928370
2018/01/27 13:59:29.502712 client.go:123: INFO Elasticsearch url: http://elasticsearch.example.com:9200
2018/01/27 13:59:29.504498 client.go:651: INFO Connected to Elasticsearch version 6.1.2
2018/01/27 13:59:29.530594 modules.go:384: INFO Elasticsearch pipeline with ID 'filebeat-6.1.2-system-auth-pipeline' loaded
2018/01/27 13:59:29.550989 modules.go:384: INFO Elasticsearch pipeline with ID 'filebeat-6.1.2-system-syslog-pipeline' loaded
2018/01/27 13:59:29.551011 prospector.go:87: INFO Starting prospector of type: log; ID: 18044925928469627648
2018/01/27 13:59:29.551018 prospector.go:87: INFO Starting prospector of type: log; ID: 8734454681295277600
2018/01/27 13:59:29.551036 reload.go:219: INFO Loading of config files completed.
2018/01/27 13:59:30.434150 client.go:651: INFO Connected to Elasticsearch version 6.1.2
2018/01/27 13:59:30.435186 load.go:55: INFO Loading template for Elasticsearch version: 6.1.2
2018/01/27 13:59:30.435198 load.go:58: INFO Existing template will be overwritten, as overwrite is enabled.
2018/01/27 13:59:30.460249 load.go:89: INFO Elasticsearch template with name 'filebeat-6.1.2' loaded
IHMO pipelines are part of the setup. Why are they only included when actually running filebeat?