0
0
Elasticsearchquery~20 mins

Beats (Filebeat, Metricbeat) in Elasticsearch - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Beats Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Predict Output
intermediate
2:00remaining
What is the output of this Filebeat configuration snippet?
Given this Filebeat input configuration, what will Filebeat do when started?
Elasticsearch
filebeat.inputs:
- type: log
  enabled: true
  paths:
    - /var/log/syslog
  multiline.pattern: '^\['
  multiline.negate: true
  multiline.match: after
AFilebeat reads /var/log/syslog and combines lines not starting with '[' into the previous line
BFilebeat reads /var/log/syslog and combines lines starting with '[' into the previous line
CFilebeat reads /var/log/syslog but does not combine any lines because multiline is disabled
DFilebeat reads /var/log/syslog and combines all lines into a single event
Attempts:
2 left
💡 Hint
Look at multiline.negate and multiline.match values carefully.
Predict Output
intermediate
2:00remaining
What metric does Metricbeat collect with this module config?
Given this Metricbeat module configuration, what metric will be collected?
Elasticsearch
metricbeat.modules:
- module: system
  metricsets:
    - cpu
    - memory
  period: 10s
  enabled: true
ACPU and memory usage metrics every 10 seconds
BOnly CPU usage metrics every 10 seconds
COnly memory usage metrics every 10 seconds
DDisk usage metrics every 10 seconds
Attempts:
2 left
💡 Hint
Check the metricsets list carefully.
🔧 Debug
advanced
2:00remaining
Why does Filebeat fail to start with this config?
This Filebeat config snippet causes Filebeat to fail on startup. What is the cause?
Elasticsearch
filebeat.inputs:
- type: log
  enabled: true
  paths: /var/log/*.log
output.elasticsearch:
  hosts: ["localhost:9200"]
Aenabled must be false to start Filebeat
Bpaths should be a list, not a string
Coutput.elasticsearch hosts must be a string, not a list
Dtype: log is invalid, should be type: file
Attempts:
2 left
💡 Hint
Check the YAML syntax for paths.
Predict Output
advanced
2:00remaining
What is the output of this Metricbeat processor configuration?
Given this Metricbeat config snippet, what will be the value of the 'host.name' field in the event?
Elasticsearch
processors:
- add_host_metadata:
    netinfo.enabled: false
- add_cloud_metadata:
- add_fields:
    target: host
    fields:
      name: custom-hostname
AThe cloud provider hostname
BThe system hostname from the OS
CAn empty string
D"custom-hostname"
Attempts:
2 left
💡 Hint
Look at the add_fields processor target and fields.
🧠 Conceptual
expert
2:00remaining
Which option best describes the role of Filebeat and Metricbeat in the Elastic Stack?
Choose the most accurate description of Filebeat and Metricbeat roles.
ABoth Filebeat and Metricbeat collect logs but from different sources
BFilebeat collects metrics; Metricbeat collects logs
CFilebeat collects and ships log files; Metricbeat collects and ships system and service metrics
DFilebeat and Metricbeat are used to store data in Elasticsearch
Attempts:
2 left
💡 Hint
Think about what logs and metrics mean.