Last active
August 24, 2018 15:13
-
-
Save fquinner/7b32b4d8d3fa0c0b61d99a4a1a6f5ee1 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
cat << EOF > /etc/datadog-agent/conf.d/logs.yaml | |
logs: | |
- type: udp | |
port: 10516 | |
service: webapp | |
source: python | |
- type: tcp | |
port: 10518 | |
service: webapp | |
source: python | |
EOF | |
find /etc/datadog-agent -name datadog.yaml | |
echo "logs_enabled: true" >> /etc/datadog-agent/datadog.yaml | |
DD_API_KEY=${DD_API_KEY} bash -c "$(curl -L https://raw.githubusercontent.com/DataDog/datadog-agent/master/cmd/agent/install_script.sh)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment