Complete the code to specify the input type for Filebeat.
filebeat.inputs:
- type: [1]The input type log is used in Filebeat to collect log files.
Complete the code to enable Metricbeat system module.
metricbeat.modules:
- module: system
[1]: trueThe key enabled is used to activate a Metricbeat module.
Fix the error in the Filebeat output configuration to send data to Elasticsearch.
output.elasticsearch: hosts: ["[1]"]
Elasticsearch listens on port 9200 by default, so the host must include this port.
Fill both blanks to configure Filebeat to read logs from /var/log and exclude .gz files.
filebeat.inputs:
- type: log
paths:
- [1]
exclude_files: [[2]]Filebeat reads log files matching /var/log/*.log and excludes compressed files *.gz.
Fill all three blanks to create a Metricbeat configuration that collects CPU metrics every 10 seconds and sends to Elasticsearch at localhost:9200.
metricbeat.modules: - module: system metricsets: [[1]] period: [2] output.elasticsearch: hosts: ["[3]"]
The cpu metricset collects CPU data, 10s sets the collection interval, and localhost:9200 is the Elasticsearch host.