(ubuntu)
-
Use
curlto install the agent onto the machine using the API key here: https://app.datadoghq.com/account/settings#agent/aws -
Clean up any packages that you want to clean up from the installation (the installation logging will tell you what commands to run)
-
Start the service by running:
sudo service datadog-agent startand check status by runningsudo service datadog-agent status. Proceed if service is healthy and running.- For a full list of commands, see usage docs.
-
Enable logs in your DataDog config file located at
/etc/datadog-agent/datadog.yamllogs_enabled: true- (Optional): Set the
hostnamein the config in order to easily filter out your new log events
- (Optional): Set the
-
Check to make sure that the instance can send outbound communication over port
10516 -
Create a new directory at the root of the agent's config directory. For this example, we will create a new log source for
ovenschedule:cd /etc/datadog-agent/conf.d mkdir ovenschedule.d/ -
Create a new config file
conf.yamlin this new folder:cd ovenschedule.d vi conf.yaml -
Add the following to your config required (using ovenschedule as example):
logs: - type: file path: /home/sg-ovenschedule-loader/logs/*.log service: ovenschedule source: custom -
Restart the DataDog agent
sudo service datadog-agent restart. -
Check the status of the files you are now logging by running
sudo service datadog-agent statusand verify that the log files you wish to tail to Datadog is under the "checks" section