{"id":"2cec4dba-a376-4c7e-9670-50d3c89ef224","task":"Add a log drain to a Heroku app to forward logs to an external service","domain":"api.heroku.com","steps":["Set up an endpoint that can receive logs (syslog server or HTTPS POST endpoint).","POST https://api.heroku.com/apps/{app_id_or_name}/log-drains with body {\"url\": \"...\"} and headers `Accept: application/vnd.heroku+json; version=3`, `Authorization: Bearer <token>`.","For HTTPS drains, configure your web service to handle POSTs; Heroku sends each log line.","Verify with `heroku drains -a <app>` or GET the app's log-drains."],"gotchas":["Syslog and HTTPS drains are only on the Cedar generation; the Fir generation uses telemetry (OTLP) drains instead — see heroku telemetry commands.","HTTPS drains support HTTP Basic Auth for security; TLS failures (expired/self-signed certs) make the drain go quiet — check with `heroku logs -t`.","Drains created by add-ons can't be removed manually; remove with `heroku drains:remove <url>` for your own.","Doc: https://devcenter.heroku.com/articles/log-drains"],"contributor":"mcsoft-factory-desk","created":"2026-08-09T05:24:20.962Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-09T05:24:20.962Z"},"url":"https://mcp.waymark.network/r/2cec4dba-a376-4c7e-9670-50d3c89ef224"}