{"_id":"bunyan-hub","_rev":"37-f66984ff9c1f2f5b8fff0e5a767ac400","name":"bunyan-hub","time":{"modified":"2022-06-13T05:18:58.247Z","created":"2015-03-03T11:35:21.334Z","0.0.1":"2015-03-03T11:35:21.334Z","0.1.0":"2015-03-04T04:18:07.691Z","0.1.1":"2015-03-04T04:19:39.622Z","0.1.2":"2015-03-04T04:43:54.158Z","0.2.0":"2015-03-04T07:26:05.897Z","0.2.1":"2015-03-05T08:43:22.287Z","0.3.0":"2015-03-06T09:24:35.542Z","0.3.1":"2015-03-06T09:32:02.491Z","0.3.2":"2015-03-06T09:38:54.898Z","0.4.0":"2015-03-08T13:08:03.007Z","0.4.1":"2015-03-08T13:11:04.806Z","1.0.0-rc":"2015-03-22T04:19:56.637Z","1.0.0-rc2":"2015-03-22T04:24:15.619Z","1.0.0-rc3":"2015-03-23T11:35:54.135Z","1.0.0-rc4":"2015-03-24T06:04:17.740Z","1.0.0":"2015-03-25T10:50:33.895Z","1.0.1":"2015-03-26T14:02:11.177Z","1.0.2":"2015-03-26T14:32:16.312Z","1.0.3":"2015-03-27T02:00:54.386Z","1.1.0":"2015-03-31T09:36:40.257Z"},"maintainers":[{"name":"undozen","email":"undozen@creditcloud.com"}],"dist-tags":{"beta":"1.0.0-rc","latest":"1.1.0"},"versions":{"1.0.0-rc":{"name":"bunyan-hub","version":"1.0.0-rc","description":"centralised bunyan log aggregator using dnode protocol","main":"index.js","files":["server.js","run.js","cmd.js"],"bin":{"bunyan-hub":"cmd.js","bunyanhub":"cmd.js"},"scripts":{"test":"prove --exec node test/*.js","start":"node server.js"},"repository":{"type":"git","url":"https://github.com/undoZen/bunyan-hub.git"},"keywords":["bunyan","logging"],"author":{"name":"undoZen","email":"opensource@undozen.com"},"license":"MIT","bugs":{"url":"https://github.com/undoZen/bunyan-hub/issues"},"homepage":"https://github.com/undoZen/bunyan-hub","dependencies":{"destroy":"^1.0.3","eventemitter3":"^0.1.6"},"devDependencies":{"co":"^4.5.1","tape":"^3.5.0","xtend":"^4.0.0"},"gitHead":"9b15b1d9cfd7d8e256936107c0b264b1e6e504f8","_id":"bunyan-hub@1.0.0-rc","_shasum":"3c426f6e58ebf5beaa551bbc2b4cc5616cc61f59","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"undozen","email":"undozen@creditcloud.com"},"maintainers":[{"name":"undozen","email":"undozen@creditcloud.com"}],"dist":{"shasum":"3c426f6e58ebf5beaa551bbc2b4cc5616cc61f59","tarball":"https://registry.npmjs.org/bunyan-hub/-/bunyan-hub-1.0.0-rc.tgz","integrity":"sha512-S22MqOSk0hpSpIPQd1+OjrXCBFzmAtBFBpZRBKcIluaJpAgDBzqjYamfqLcxZdc+m84313rhqsew/WdqUcSC7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHtvWUi3H7eBcSk8xqq9902JYPU2K5Pm22HqmdJPdOdLAiEAzmRLPM3xmwlbzjHVlYgrFbo6VBpmj5jEuJI+5g+Ynh0="}]}},"1.0.0-rc2":{"name":"bunyan-hub","version":"1.0.0-rc2","description":"centralised bunyan log aggregator through tcp","main":"index.js","files":["server.js","run.js","cmd.js"],"bin":{"bunyan-hub":"cmd.js","bunyanhub":"cmd.js"},"preferGlobal":true,"scripts":{"test":"prove --exec node test/*.js","start":"node server.js"},"repository":{"type":"git","url":"https://github.com/undoZen/bunyan-hub.git"},"keywords":["bunyan","logging"],"author":{"name":"undoZen","email":"opensource@undozen.com"},"license":"MIT","bugs":{"url":"https://github.com/undoZen/bunyan-hub/issues"},"homepage":"https://github.com/undoZen/bunyan-hub","dependencies":{"destroy":"^1.0.3","eventemitter3":"^0.1.6"},"devDependencies":{"co":"^4.5.1","tape":"^3.5.0","xtend":"^4.0.0"},"gitHead":"1a196ef35819e86458692f467c82bc7c2cf0f379","_id":"bunyan-hub@1.0.0-rc2","_shasum":"9f2859dfab555afd0c3ef53ce7a8fa5544ba0311","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"undozen","email":"undozen@creditcloud.com"},"maintainers":[{"name":"undozen","email":"undozen@creditcloud.com"}],"dist":{"shasum":"9f2859dfab555afd0c3ef53ce7a8fa5544ba0311","tarball":"https://registry.npmjs.org/bunyan-hub/-/bunyan-hub-1.0.0-rc2.tgz","integrity":"sha512-cBwG6PqtoAkx5Lqg8j2jzZ6ESFmSNtnslYVvnSdm8IK8P46rJOVX10DHSA8PWtXKekmML+3Qx4rXlSskeXyZsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQ9qsLPSDw6AKnyUojW94f3c2/nBpgTxyaYeCsXxXOWQIhAMhl0fEhmUp4+xnxLuBddKO7PV6M9zAjZYAN0Il17Kpg"}]}},"1.0.0-rc3":{"name":"bunyan-hub","version":"1.0.0-rc3","description":"centralised bunyan log aggregator through tcp","main":"index.js","files":["server.js","run.js","cmd.js"],"bin":{"bunyan-hub":"cmd.js","bunyanhub":"cmd.js"},"preferGlobal":true,"scripts":{"test":"prove --exec node test/*.js","start":"node server.js"},"repository":{"type":"git","url":"https://github.com/undoZen/bunyan-hub.git"},"keywords":["bunyan","logging"],"author":{"name":"undoZen","email":"opensource@undozen.com"},"license":"MIT","bugs":{"url":"https://github.com/undoZen/bunyan-hub/issues"},"homepage":"https://github.com/undoZen/bunyan-hub","dependencies":{"destroy":"^1.0.3","eventemitter3":"^0.1.6"},"devDependencies":{"co":"^4.5.1","tape":"^3.5.0","xtend":"^4.0.0"},"gitHead":"4d989ff671e58178e732ec346328c4e0aeea8222","_id":"bunyan-hub@1.0.0-rc3","_shasum":"86419e33416afaea8cd736d1f49cc714f5749599","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"undozen","email":"undozen@creditcloud.com"},"maintainers":[{"name":"undozen","email":"undozen@creditcloud.com"}],"dist":{"shasum":"86419e33416afaea8cd736d1f49cc714f5749599","tarball":"https://registry.npmjs.org/bunyan-hub/-/bunyan-hub-1.0.0-rc3.tgz","integrity":"sha512-EkvMBBvMbQqudpwztkocSZ5YWSJyQCnkD2Vw/jvo2yZDXmMp8H6xYtboD8TwCQPTX5kRe6l1ry/eok8w5jQvIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlVRgBzcf1fzU4ZiDH+je2XLOJGgXp38EvdfRQxHGlAgIgYVJi8KVs6qDNwoTPWBPmkYKJ+kLLUGCvDi/mCj6PQoU="}]}},"1.0.0-rc4":{"name":"bunyan-hub","version":"1.0.0-rc4","description":"centralised bunyan log aggregator through tcp","main":"index.js","files":["server.js","run.js","cmd.js"],"bin":{"bunyan-hub":"cmd.js","bunyanhub":"cmd.js"},"preferGlobal":true,"scripts":{"test":"prove --exec node test/*.js","start":"node server.js"},"repository":{"type":"git","url":"https://github.com/undoZen/bunyan-hub.git"},"keywords":["bunyan","logging"],"author":{"name":"undoZen","email":"opensource@undozen.com"},"license":"MIT","bugs":{"url":"https://github.com/undoZen/bunyan-hub/issues"},"homepage":"https://github.com/undoZen/bunyan-hub","dependencies":{"destroy":"^1.0.3","eventemitter3":"^0.1.6"},"devDependencies":{"co":"^4.5.1","tape":"^3.5.0","xtend":"^4.0.0"},"gitHead":"e8bf8a9247da45a13403d4d58aeb55e91f8ea8c5","_id":"bunyan-hub@1.0.0-rc4","_shasum":"f7000af5f867d257ce73b12615f54fb9201c8afa","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"undozen","email":"opensource@undozen.com"},"maintainers":[{"name":"undozen","email":"undozen@creditcloud.com"}],"dist":{"shasum":"f7000af5f867d257ce73b12615f54fb9201c8afa","tarball":"https://registry.npmjs.org/bunyan-hub/-/bunyan-hub-1.0.0-rc4.tgz","integrity":"sha512-rJ+KwxDXFNqI8znxTIYCTLrn3qPuxCjCEv0RmiuMrOlPMG4SPwGZnzoTeIEHgPDbU2ScMERgQnmA8M1qkoTbbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ0GO6BeAMJt1peovkvg8AuZx/a0wGkqLlETZNk21G7gIgG3A9TNfUf6/Ot/0RnPCa8rGYuWb3Y2Icqh/amSrboac="}]}},"1.0.0":{"name":"bunyan-hub","version":"1.0.0","description":"centralised bunyan log aggregator through tcp","main":"index.js","files":["server.js","run.js","cmd.js"],"bin":{"bunyan-hub":"cmd.js","bunyanhub":"cmd.js"},"preferGlobal":true,"scripts":{"test":"prove --exec node test/*.js","start":"node server.js"},"repository":{"type":"git","url":"https://github.com/undoZen/bunyan-hub.git"},"keywords":["bunyan","logging"],"author":{"name":"undoZen","email":"opensource@undozen.com"},"license":"MIT","bugs":{"url":"https://github.com/undoZen/bunyan-hub/issues"},"homepage":"https://github.com/undoZen/bunyan-hub","dependencies":{"destroy":"^1.0.3","eventemitter3":"^0.1.6"},"devDependencies":{"co":"^4.5.1","tape":"^3.5.0","xtend":"^4.0.0"},"gitHead":"4e1edb30b088c52f3241a787b4496ff556c42df0","_id":"bunyan-hub@1.0.0","_shasum":"8b0eabea0e839028a76f0876ee13e77a83a77528","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"undozen","email":"opensource@undozen.com"},"maintainers":[{"name":"undozen","email":"undozen@creditcloud.com"}],"dist":{"shasum":"8b0eabea0e839028a76f0876ee13e77a83a77528","tarball":"https://registry.npmjs.org/bunyan-hub/-/bunyan-hub-1.0.0.tgz","integrity":"sha512-R5MjPSVgybyyq3SvQztPh6rLk1M55FSbyIp9xjD86uNUzUNDwWZnUBfVhT2yo40t89W15FU19f7POnWaBIcfTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAJEOH+TQqgEdM5llu/uQ6OkxDRvE1x8HfpbLhJMqq5aAiEAsGsVGN+Fm2uOyKEI5H4e1/p4nHozb9YJNSVKhh/JsHI="}]}},"1.0.1":{"name":"bunyan-hub","version":"1.0.1","description":"centralised bunyan log aggregator through tcp","main":"index.js","files":["server.js","run.js","cmd.js"],"bin":{"bunyan-hub":"cmd.js","bunyanhub":"cmd.js"},"preferGlobal":true,"scripts":{"test":"prove --exec node test/*.js","start":"node server.js"},"repository":{"type":"git","url":"https://github.com/undoZen/bunyan-hub.git"},"keywords":["bunyan","logging"],"author":{"name":"undoZen","email":"opensource@undozen.com"},"license":"MIT","bugs":{"url":"https://github.com/undoZen/bunyan-hub/issues"},"homepage":"https://github.com/undoZen/bunyan-hub","dependencies":{"destroy":"^1.0.3","eventemitter3":"^0.1.6"},"devDependencies":{"co":"^4.5.1","tape":"^3.5.0","xtend":"^4.0.0"},"gitHead":"c882ef2b99dfd2853548abb50494a5587ba5140b","_id":"bunyan-hub@1.0.1","_shasum":"0e393e8dcd2e36f5218a21a8569caecd7dc1a334","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"undozen","email":"opensource@undozen.com"},"maintainers":[{"name":"undozen","email":"undozen@creditcloud.com"}],"dist":{"shasum":"0e393e8dcd2e36f5218a21a8569caecd7dc1a334","tarball":"https://registry.npmjs.org/bunyan-hub/-/bunyan-hub-1.0.1.tgz","integrity":"sha512-mf28kqAR0Wl/DZwzviUhwiYTnMgK/n7OYYcQPsX3CD3wKZEjjUhIUy2cIbSFIOcEhSdwhIsScl5SdmVUC888eA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhFxb30tq9QXrndHc1p0nkm1qN3wOEPJ2Psedd5S13MQIhAPd058f/E4KHSX1VFMXCSpksT0HaQ5Q6ExjJ7Gd4FBVQ"}]}},"1.0.2":{"name":"bunyan-hub","version":"1.0.2","description":"centralised bunyan log aggregator through tcp","main":"index.js","files":["server.js","run.js","cmd.js"],"bin":{"bunyan-hub":"cmd.js","bunyanhub":"cmd.js"},"preferGlobal":true,"scripts":{"test":"prove --exec node test/*.js","start":"node server.js"},"repository":{"type":"git","url":"https://github.com/undoZen/bunyan-hub.git"},"keywords":["bunyan","logging"],"author":{"name":"undoZen","email":"opensource@undozen.com"},"license":"MIT","bugs":{"url":"https://github.com/undoZen/bunyan-hub/issues"},"homepage":"https://github.com/undoZen/bunyan-hub","dependencies":{"destroy":"^1.0.3","eventemitter3":"^0.1.6"},"devDependencies":{"co":"^4.5.1","tape":"^3.5.0","xtend":"^4.0.0"},"gitHead":"62778e0cc276e9691ae1a602ba4d64d98403fc59","_id":"bunyan-hub@1.0.2","_shasum":"1cedbeed0a6eca763760c0f71fa1132183f967ab","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"undozen","email":"opensource@undozen.com"},"maintainers":[{"name":"undozen","email":"undozen@creditcloud.com"}],"dist":{"shasum":"1cedbeed0a6eca763760c0f71fa1132183f967ab","tarball":"https://registry.npmjs.org/bunyan-hub/-/bunyan-hub-1.0.2.tgz","integrity":"sha512-RwKCBzLXxHLZh4ZAySVg4eJ1QI+tKkem+YTeoH/6/Jh5WxXz8aeMySGhHzZA0yJQpevRXvN3oF5m9PQCoNBvnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF8akTghE3gCHyD3MeLlChRRPgu3UGPiPjetmaLXshbvAiAQ1YX6H/87su9r+WT4mOLjpYQjeBJOQT0EfP6V6P1//w=="}]}},"1.0.3":{"name":"bunyan-hub","version":"1.0.3","description":"centralised bunyan log aggregator through tcp","main":"index.js","files":["server.js","run.js","cmd.js"],"bin":{"bunyan-hub":"cmd.js","bunyanhub":"cmd.js"},"preferGlobal":true,"scripts":{"test":"prove --exec node test/*.js","start":"node server.js"},"repository":{"type":"git","url":"https://github.com/undoZen/bunyan-hub.git"},"keywords":["bunyan","logging"],"author":{"name":"undoZen","email":"opensource@undozen.com"},"license":"MIT","bugs":{"url":"https://github.com/undoZen/bunyan-hub/issues"},"homepage":"https://github.com/undoZen/bunyan-hub","dependencies":{"destroy":"^1.0.3","eventemitter3":"^0.1.6"},"devDependencies":{"co":"^4.5.1","tape":"^3.5.0","xtend":"^4.0.0"},"gitHead":"289cd34e052790c59f2a266676f3adcaea7def53","_id":"bunyan-hub@1.0.3","_shasum":"4935405a67ff604abc6e805883ae2592a9085768","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"undozen","email":"opensource@undozen.com"},"maintainers":[{"name":"undozen","email":"undozen@creditcloud.com"}],"dist":{"shasum":"4935405a67ff604abc6e805883ae2592a9085768","tarball":"https://registry.npmjs.org/bunyan-hub/-/bunyan-hub-1.0.3.tgz","integrity":"sha512-QzUkfjF27Ez9Ofy4qJaOhk9chGNhxvwzjeEX4grdy0v4e212oJTn8BTJP1ZQk7Lp5M0iHhmrN7Dh1jU6lPEvKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWb95sMD2SJFNviFE/KqTqopVK9+B5XCqJweMOm6rU0gIhALk0aHUEbn17pwmWbzOTNR0MWYw048FVeGxLO2MwgYZc"}]}},"1.1.0":{"name":"bunyan-hub","version":"1.1.0","description":"centralised bunyan log aggregator through tcp","main":"index.js","files":["server.js","run.js","cmd.js"],"bin":{"bunyan-hub-server":"server.js","bunyan-hub":"cmd.js","bunyanhub":"cmd.js"},"preferGlobal":true,"scripts":{"test":"prove --exec node test/*.js","start":"node server.js"},"repository":{"type":"git","url":"https://github.com/undoZen/bunyan-hub.git"},"keywords":["bunyan","logging"],"author":{"name":"undoZen","email":"opensource@undozen.com"},"license":"MIT","bugs":{"url":"https://github.com/undoZen/bunyan-hub/issues"},"homepage":"https://github.com/undoZen/bunyan-hub","dependencies":{"destroy":"^1.0.3","eventemitter3":"^0.1.6"},"devDependencies":{"co":"^4.5.1","tape":"^3.5.0","xtend":"^4.0.0"},"gitHead":"1295c52edac4392641b94d33e70ad7d6469f3c12","_id":"bunyan-hub@1.1.0","_shasum":"0eb37e0b942b03f2ba9f4d0584f3cd9ebd7e4e0f","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"undozen","email":"opensource@undozen.com"},"maintainers":[{"name":"undozen","email":"undozen@creditcloud.com"}],"dist":{"shasum":"0eb37e0b942b03f2ba9f4d0584f3cd9ebd7e4e0f","tarball":"https://registry.npmjs.org/bunyan-hub/-/bunyan-hub-1.1.0.tgz","integrity":"sha512-WI6OvlZtM9dan30ZZvJNqV6FrU0sns2NueecNHkYHYA4TiBAsVq1Xm1MtSPTOWgTIds6wnpYBg4IazJtqJF1+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKP052Kv2zfjRzdrMjS9bz6/7ak57JM4Sr3fdDSmbiUgIhAIFszyQExCYPiBoayWelLqTsqdK2Skf4xswxLVHMCBUR"}]}}},"description":"centralised bunyan log aggregator through tcp","homepage":"https://github.com/undoZen/bunyan-hub","keywords":["bunyan","logging"],"repository":{"type":"git","url":"https://github.com/undoZen/bunyan-hub.git"},"author":{"name":"undoZen","email":"opensource@undozen.com"},"bugs":{"url":"https://github.com/undoZen/bunyan-hub/issues"},"license":"MIT","readme":"# bunyan-hub\n\nA centralized bunyan log aggregator.\n\n[bunyan](https://github.com/trentm/node-bunyan) is a simple and powerful log module for node.js. This program is a server which collecting log events from all local node service. It simply start a tcp server on 28692 (BUNYA on phonepad) and waiting other node program to send new-line determined JSON string to it. You can use [bunyan-hub-logger](https://www.npmjs.com/package/bunyan-hub-logger) (or [bunyan-pub-stream](https://www.npmjs.com/package/bunyan-pub-stream) + bunyan) to push log to it and use [bunyan-sub](https://www.npmjs.com/package/bunyan-sub) cli tool to subcribes to it with specified conditions. or use [bunyan-sub-stream](https://www.npmjs.com/package/bunyan-sub-stream) api for programing use.\n\nI think the best part of it is that you can use bunyan-sub-stream to pipe to other `bunyan-*-stream`s from npm.\n\nI'm also planning develop a web dashboad for it like [logio](http://logio.org/) and then it would a killer app for having a local centralized log aggregator.\n\n## install\n\n```bash\nnpm i -g bunyan-hub\n```\n\n## usage\n\n```bash\nbunyanhub start\nbunyanhub stop\n```\n\nYou can also run `bunyan-hub-server` directly, which is the same as run `node server.js` in source directory. So you can use pm2 as the process supervisor.\n\n```bash\npm2 start --name bunyan-hub `which bunyan-hub-server`\n```\n\nThen you can only stop it by `pm2 stop bunyan-hub`, `bunyanhub stop` will stop the instance but immediately restarted by pm2.\n\n## protocol\nonce connected to localhost:28692 which bunyan-hub listening, you could write a JSON with `cmd` property ending with `\\n` or FIN.\n\n* `{\"cmd\":\"stop\"}\\n` will stop the server.\n* `{\"cmd\":\"version\"}\\n` will give you bunyah-hub version back.\n* `{\"cmd\":\"publish\"}\\n` will return you nothing, but expect you to further sending more JSON string which is in bunyan record format.\n* `{\"cmd\":\"subscribe\"}\\n` will turn you tcp client into subscription mode, bunyan-hub will send you bunyan records in new-line determined JSON string.\n\nusually you don't need to use raw TCP connection you self, instead using high level modules mentioned in the top section of this readme document.\n\n## license\nMIT\n","readmeFilename":"README.md"}