To update your Ansible playbook to install Metricbeat:
From the homepage of your ELK site:
-
Click Add Metric Data.
-
Click Docker Metrics.
-
Click the DEB tab under Getting Started for the correct Linux instructions.
-
Download the Metricbeat
.deb
file. -
Use
dpkg
to install the.deb
file. -
Update and copy the provided Metricbeat config file.
-
Run the
metricbeat modules enable docker
command. -
Run the
metricbeat setup
command. -
Run the
metricbeat -enable
command. -
Enable the Metricbeat service on boot.
To verify that your play works as expected, on the Metricbeat installation page in the ELK server GUI, scroll to Step 5: Module Status and click Check Data.
If Filebeat and Metricbeat are properly configured and launched, the result of clicking "Check data" state--"Data successfully received from this module." It means Filebeat and Metricbeat are working properly and are sending data from the DVWA servers to ELK. For more information, click on "System logs dashboard"!