heroku drains
July 1, 2026 ยท View on GitHub
forward logs to syslog or HTTPS
heroku drainsheroku drains:add URLheroku drains:getheroku drains:remove URLheroku drains:set URL
heroku drains
display the log drains of an app
USAGE
$ heroku drains -a <value> [--prompt] [--json] [-r <value>]
FLAGS
-a, --app=<value> (required) app to run command against
-r, --remote=<value> git remote of app to use
--json output in json format
GLOBAL FLAGS
--prompt interactively prompt for command arguments and flags
DESCRIPTION
display the log drains of an app
See code: src/commands/drains/index.ts
heroku drains:add URL
adds a log drain to an app
USAGE
$ heroku drains:add URL -a <value> [--prompt] [-r <value>]
ARGUMENTS
URL URL of the log drain
FLAGS
-a, --app=<value> (required) app to run command against
-r, --remote=<value> git remote of app to use
GLOBAL FLAGS
--prompt interactively prompt for command arguments and flags
DESCRIPTION
adds a log drain to an app
See code: src/commands/drains/add.ts
heroku drains:get
display the log drain for a space
USAGE
$ heroku drains:get -s <value> [--prompt] [--json]
FLAGS
-s, --space=<value> (required) space for which to get log drain
--json output in json format
GLOBAL FLAGS
--prompt interactively prompt for command arguments and flags
DESCRIPTION
display the log drain for a space
ALIASES
$ heroku drains:get
heroku drains:remove URL
removes a log drain from an app
USAGE
$ heroku drains:remove URL -a <value> [--prompt] [-r <value>]
ARGUMENTS
URL URL of the log drain
FLAGS
-a, --app=<value> (required) app to run command against
-r, --remote=<value> git remote of app to use
GLOBAL FLAGS
--prompt interactively prompt for command arguments and flags
DESCRIPTION
removes a log drain from an app
EXAMPLES
$ drains:remove [URL|TOKEN]
See code: src/commands/drains/remove.ts
heroku drains:set URL
replaces the log drain for a space
USAGE
$ heroku drains:set URL -s <value> [--prompt]
ARGUMENTS
URL URL to replace the log drain with
FLAGS
-s, --space=<value> (required) space for which to set log drain
GLOBAL FLAGS
--prompt interactively prompt for command arguments and flags
DESCRIPTION
replaces the log drain for a space
ALIASES
$ heroku drains:set