Step 1 – Setup a Apache and start it
Step 2 – Enable Log Monitoring in Datadog agent
$ vi /etc/datadog-agent/datadog.yaml
$ systemctl restart datadog-agent
Prerequisite
Step 3 – Modify conf.yaml of apache with following changes
$ vi /etc/datadog-agent/conf.d/apache.d/conf.yaml
Modify this file with below content
logs:
- type: file
path: /var/log/apache2/access.log
source: apache
service: apache
- type: file
path: /var/log/apache2/error.log
source: apache
service: apache
# Restart a Datadog Agent
$ systemctl restart datadog-agent
Step 3 – Verify Datadog Agent with Log Enabled with Apache Log integration
$ datadog-agent configcheck | grep apache -A 5 -B 5
$ more /etc/datadog-agent/datadog.yaml | grep logs_enabled
$ datadog-agent config | grep logs_enabled -A 5 -B 5
$ chmod -R 755 /var/log/
$ chmod -R 755 /var/log/apache2/
$ datadog-agent status | grep apache -A 15 -B 5
Step 2 – Create a load on Apache
$ while true; do curl -s -o /dev/null http://localhost & done
Step X – Verify at Datadog websites
SOME USEFUL COMMANDS
$ datadog-agent status
$ datadog-agent check apache
$ sudo -u dd-agent datadog-agent check apache
$ datadog-agent config
$ datadog-agent diagnose
$ datadog-agent health
$ datadog-agent integration
$ datadog-agent integration show datadog-apache
Datadog Advance Tutorial 2021 -Session 2 – By DevOpsSchool
Datadog Advance Tutorial 2021 -Session 3 – Part 1- By DevOpsSchool
Datadog Advance Tutorial 2021 -Session 3 – Part 2- By DevOpsSchool
Datadog Advance Tutorial 2021 -Session 4 – Part 1- By DevOpsSchool
Datadog Advance Tutorial 2021 -Session 4 – Part 2- By DevOpsSchool
Datadog Advance Tutorial 2021 -Session 4 – Part 3- By DevOpsSchool
Datadog Advance Tutorial 2021 -Session 4 – Part 4- By DevOpsSchool
Datadog Advance Tutorial 2021 -Session 4 – Part 5- By DevOpsSchool
Datadog Advance Tutorial 2021 -Session 4 – Part 6 – By DevOpsSchool
Datadog Advance Tutorial 2021 -Session 4 – Part 7 – By DevOpsSchool
Datadog Advance Tutorial 2021 -Session 4 – Part 8 – By DevOpsSchool
Latest posts by Rajesh Kumar (see all)
- Best AI tools for Software Engineers - November 4, 2024
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024