{"id":15204018,"url":"https://github.com/starkriedesel/cabin-es","last_synced_at":"2025-10-02T21:30:32.032Z","repository":{"id":62554807,"uuid":"72786315","full_name":"starkriedesel/cabin-es","owner":"starkriedesel","description":"ElasticSearch output provider for the Ruby Cabin logging framework","archived":true,"fork":false,"pushed_at":"2016-11-03T21:19:15.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-21T08:11:48.511Z","etag":null,"topics":["cabin","elasticsearch","logging"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/starkriedesel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-03T21:00:08.000Z","updated_at":"2023-12-01T16:46:21.000Z","dependencies_parsed_at":"2022-11-03T05:15:32.391Z","dependency_job_id":null,"html_url":"https://github.com/starkriedesel/cabin-es","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/starkriedesel/cabin-es","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starkriedesel%2Fcabin-es","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starkriedesel%2Fcabin-es/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starkriedesel%2Fcabin-es/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starkriedesel%2Fcabin-es/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starkriedesel","download_url":"https://codeload.github.com/starkriedesel/cabin-es/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starkriedesel%2Fcabin-es/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276416279,"owners_count":25638705,"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-09-22T02:00:08.972Z","response_time":79,"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":["cabin","elasticsearch","logging"],"created_at":"2024-09-28T05:05:31.824Z","updated_at":"2025-10-02T21:30:31.745Z","avatar_url":"https://github.com/starkriedesel.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cabin - ElasticSearch\n\n[ElasticSearch](https://www.elastic.co/) output provider for the [Ruby Cabin](https://github.com/jordansissel/ruby-cabin) logging framework.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'cabin-es', require: 'cabin/es'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install cabin-es\n\n## Usage\n\nUsed just like any other Cabin output plugin:\n\n```ruby\nrequire 'cabin'\nrequire 'cabin/es'\n\n# Create a new Cabin channel\n@logger = Cabin::Channel.new\n\n# Subscribe to an ElasticSearch host\nes = Cabin::Output::ElasticSearch.new(url: 'http://elasticsearch.example.com:9200', index: 'cabin', type: 'log')\n@logger.subscribe(es)\n\n# Send logs just like normal\n@logger.info \"Test Message\", {some: 'data', nested: { data: 'is cool' }}\n\n# Set the ElasticSearch \"_type\" on a per-message basis\n@logger.info \"Special Message\", {some: 'data', _type: 'special'}\n```\n\nMessage and data fields are imported into ElasticSearch as you would expect\n```json\n{\n  \"_index\": \"cabin\",\n  \"_type\": \"log\",\n  \"_id\": \"AVgrn6PBq2Wn7-YPg6FT\",\n  \"_score\": null,\n  \"_source\": {\n    \"timestamp\": \"2016-11-03T14:17:12.076636-0500\",\n    \"message\": \"Test Message\",\n    \"level\": \"info\",\n    \"some\": \"data\",\n    \"nested\": {\n      \"data\": \"is cool\"\n    }\n  },\n  \"fields\": {\n    \"timestamp\": [\n      1478200632076\n    ]\n  },\n  \"sort\": [\n    1478200632076\n  ]\n}\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/starkriedesel/cabin-es.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarkriedesel%2Fcabin-es","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarkriedesel%2Fcabin-es","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarkriedesel%2Fcabin-es/lists"}