{"id":20081935,"url":"https://github.com/eval/bunny_drain","last_synced_at":"2025-11-27T20:05:26.838Z","repository":{"id":17088909,"uuid":"19854101","full_name":"eval/bunny_drain","owner":"eval","description":"Heroku logs =\u003e AMQP","archived":false,"fork":false,"pushed_at":"2014-08-14T12:04:33.000Z","size":184,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T13:50:33.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eval.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-16T11:23:34.000Z","updated_at":"2015-11-13T16:25:04.000Z","dependencies_parsed_at":"2022-08-26T13:23:21.272Z","dependency_job_id":null,"html_url":"https://github.com/eval/bunny_drain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eval/bunny_drain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eval%2Fbunny_drain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eval%2Fbunny_drain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eval%2Fbunny_drain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eval%2Fbunny_drain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eval","download_url":"https://codeload.github.com/eval/bunny_drain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eval%2Fbunny_drain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27282348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-26T02:00:06.075Z","response_time":193,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T15:40:59.564Z","updated_at":"2025-11-27T20:05:26.819Z","avatar_url":"https://github.com/eval.png","language":"Ruby","readme":"# Bunny Drain\n\n## What is it?\n\nBunny drain will get your heroku logs to RabbitMQ.\n\n## Quickstart\n\n### Prerequisites:\n* Ruby version \u003e= 1.9.3\n* RabbitMQ running on `127.0.0.1:5672`\n* a Heroku-app\n* a publicly accessible url that will forward traffic to your local machine\n\n### Install:\n```bash\ngit clone https://github.com/eval/bunny_drain.git\ncd bunny_drain\nbundle install --binstubs\n```\n\n### Boot:\n```bash\nexport RACK_ENV=development\nbin/foreman start web\n# open http://localhost:5000 to verify the server is running\n```\nWithout input not a lot will happen. So let's...\n### Connect a drain:\n\nBesides a heroku-app, we need a publicly accessible url that will forward traffic to our local server.\nInstall for example [localtunnel.me](http://localtunnel.me/), and generate a url:\n```bash\nlt --port 5000\nyour url is: https://gqgh.localtunnel.me\n```\nWe now add this url as a syslog-drain to our Heroku-app:\n```bash\nheroku drains:add https://gqgh.localtunnel.me --app my-heroku-app\n# Get the drain-token:\nheroku drains\n# https://gqgh.localtunnel.me (d.xxxxxxxx-yyyy-zzzz-xxxx-yyyyyyyyyyyy)\n\n# Bunny Drain will only accept POSTs with certain drain-tokens. \n# Let's make it available to the server:\nexport DRAIN_NAME_MAPPING=\"d.xxxxxxxx-yyyy-zzzz-xxxx-yyyyyyyyyyyy=my-heroku-app\"\n# restart the server, visit your heroku-app and see the logs come in!\n```\n\n## Configuration\n\nSee [Envfile](Envfile) for all ENV-variables that will help you configure the server.\n\nNote: when running the server with `RACK_ENV=production` all these ENV-variables should be provided.\n\n## Development\n\nTo make changes to the application without restarting, the app uses [Shotgun](https://github.com/rtomayko/shotgun).  \nJust start foreman using `Procfile.dev`:\n\n```bash\nbin/foreman start web -f Procfile.dev\n```\n\n## License\n\nReleased under the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feval%2Fbunny_drain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feval%2Fbunny_drain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feval%2Fbunny_drain/lists"}