Last active
October 3, 2023 15:27
-
-
Save collin-sanford/012c3c220c684ecb0cf6b9ad9960b54b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Install the Datadog Agent with the single line install (replace the API key with your API key) | |
2) Configure the Datadog Agent Configuration file at: /etc/datadog/datadog-agent.yaml (replace the API key with your API key) | |
# api key - https://app.datadoghq.com/organization-settings/api-keys | |
api_key: <api_key> | |
# datadog site | |
site: datadoghq.com | |
# logs | |
logs_enabled: true | |
logs_config: | |
use_compression: true | |
compression_level: 6 | |
batch_wait: 5 | |
open_files_limit: 200 | |
# agent configuration view in the datadog UI - https://docs.datadoghq.com/infrastructure/list/#agent-configuration | |
inventories_configuration_enabled: true | |
# live processes - https://docs.datadoghq.com/infrastructure/process/?tab=linuxwindows | |
process_config: | |
process_collection: | |
enabled: "true" | |
3) Make a new directory in /etc/datadog-agent/conf.d for your custom application | |
mkdir /etc/datadog-agent/conf.d/CUSTOM_APPLICATION.d | |
4) Create a new conf.yaml file in the new directory you just created to send custom application log files: eg. vi /etc/datadog-agent/conf.d/CUSTOM_APPLICATION.d/conf.yaml | |
logs: | |
- type: file | |
path: "<PATH_LOG_FILE>/<LOG_FILE_NAME>.log" | |
service: "<APP_NAME>" | |
source: "<APP_NAME>" | |
5) Restart the Datadog Agent with sudo systemctl restart datadog-agent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment