Skip to content

Instantly share code, notes, and snippets.

@fquinner
Last active August 24, 2018 15:13
Show Gist options
  • Save fquinner/7b32b4d8d3fa0c0b61d99a4a1a6f5ee1 to your computer and use it in GitHub Desktop.
Save fquinner/7b32b4d8d3fa0c0b61d99a4a1a6f5ee1 to your computer and use it in GitHub Desktop.
#!/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