Skip to content

Instantly share code, notes, and snippets.

@tylerflint tylerflint/drains.sh
Created Sep 26, 2018

Embed
What would you like to do?
Nanobox external logdrains
# papertrail
# export LOGGER_TOKEN=(from /etc/logvac/config.json)
# export APP=app-name
# export ENDPOINT=logs7.papertrailapp.com:16810
curl -k -v -X POST -H "X-Auth-Token: $LOGGER_TOKEN" https://127.0.0.1:6361/drains -d '{"type": "papertrail", "id": "${APP}", "endpoint": "${ENDPOINT}"}'
# datadog
# export LOGGER_TOKEN=(from /etc/logvac/config.json)
# export APP=app-name
# export KEY=(from dashboard)
curl -k -v -X POST -H "X-Auth-Token: $LOGGER_TOKEN" https://127.0.0.1:6361/drains -d '{"type": "datadog", "id": "${APP}", "key": "${KEY}"}'
@laruche

This comment has been minimized.

Copy link

laruche commented Dec 19, 2018

how you can execute this script from you boxfile configuration ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.