{"id":18337790,"url":"https://github.com/neufeldtech/hubot-graylog-adapter","last_synced_at":"2025-04-09T20:18:39.713Z","repository":{"id":57268948,"uuid":"89080529","full_name":"neufeldtech/hubot-graylog-adapter","owner":"neufeldtech","description":"Graylog logging adapter for Hubot","archived":false,"fork":false,"pushed_at":"2017-04-22T18:32:04.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T20:18:34.858Z","etag":null,"topics":["coffeescript","graylog","hubot","hubot-scripts","logger","logging"],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/neufeldtech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-22T15:40:34.000Z","updated_at":"2017-04-22T18:24:21.000Z","dependencies_parsed_at":"2022-09-02T03:40:24.088Z","dependency_job_id":null,"html_url":"https://github.com/neufeldtech/hubot-graylog-adapter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neufeldtech%2Fhubot-graylog-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neufeldtech%2Fhubot-graylog-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neufeldtech%2Fhubot-graylog-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neufeldtech%2Fhubot-graylog-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neufeldtech","download_url":"https://codeload.github.com/neufeldtech/hubot-graylog-adapter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103908,"owners_count":21048246,"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","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":["coffeescript","graylog","hubot","hubot-scripts","logger","logging"],"created_at":"2024-11-05T20:12:20.330Z","updated_at":"2025-04-09T20:18:39.687Z","avatar_url":"https://github.com/neufeldtech.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"hubot-graylog-adapter\n================\n[![npm version](https://badge.fury.io/js/hubot-graylog-adapter.svg)](https://badge.fury.io/js/hubot-graylog-adapter)\n[![Build Status](https://travis-ci.org/neufeldtech/hubot-graylog-adapter.svg?branch=master)](https://travis-ci.org/neufeldtech/hubot-graylog-adapter)\n\nGraylog logging adapter for Hubot\n\n## Installation\n\n* Run the ```npm install``` command\n\n```\nnpm install hubot-graylog-adapter --save\n```\n\n* Add **hubot-graylog-adapter** to the array in your external-scripts.json file.\n\n```\n[\n  \"hubot-graylog-adapter\"\n]\n```\n \n * Configure environment variables\n\n| Environment Variable              | Required | Description                                             | Example             |\n|-----------------------------------|----------|---------------------------------------------------------|---------------------|\n| HUBOT_GRAYLOG_ADAPTER_HOSTNAME    | Yes      | Hostname/IP of Graylog server                           | graylog.example.com |\n| HUBOT_GRAYLOG_ADAPTER_PORT        | no       | GELF port number of Graylog server (default: 12201)     | 12201               |\n| HUBOT_GRAYLOG_ADAPTER_FACILITY    | no       | 'facility' attribute for log messages (default: hubot)  | hubot               |\n| HUBOT_GRAYLOG_ADAPTER_APPNAME     | no       | 'app' attribute for log messages (default: hubot)       | hubot               |\n| HUBOT_GRAYLOG_ADAPTER_ENVIRONMENT | no       | 'env' attribute for log messages (default: development) | development         |\n| HUBOT_LOG_LEVEL                   | no       | Hubot logging level (default: info)                     | info                |\n\n## Usage\n\nUse the `robot.logger` methods in your hubot scripting, and your messages will be sent to the console as well as Graylog.\n```\n  module.exports = (robot) -\u003e\n   robot.hear /knock knock/i, (msg) -\u003e\n     robot.logger.info \"Someone is telling a joke!\"\n     msg.send \"Who is there?\"\n```\nSupported `robot.logger` levels:\n```\nrobot.logger.emergency \"Graylog logger!\"\nrobot.logger.alert \"Graylog logger!\"\nrobot.logger.critical \"Graylog logger!\"\nrobot.logger.error \"Graylog logger!\"\nrobot.logger.warning \"Graylog logger!\"\nrobot.logger.notice \"Graylog logger!\"\nrobot.logger.info \"Graylog logger!\"\nrobot.logger.debug \"Graylog logger!\"\n```\n\n## Tests\n\nTo run the tests, run the below command. If you are contributing, please add appropriate tests before submitting a pull request.\n\n```\nnpm test\n```\n\n## Acknowledgements\nThis project makes use of:\n- [gelf-pro](https://github.com/kkamkou/node-gelf-pro)\n- [momentjs](https://momentjs.com/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneufeldtech%2Fhubot-graylog-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneufeldtech%2Fhubot-graylog-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneufeldtech%2Fhubot-graylog-adapter/lists"}