loggly-github
Create GitHub tickets for Loggly alerts.
loggly-github starts an HTTP server where Loggly can send alert postbacks to. For each new alert it will open a GitHub ticket (if there's not already an open ticket for that alert).
Installation & Configuration
Install with npm
npm install -g loggly-github
Create a configuration file
When generating a personal access token on GitHub, make sure to enable the "repo" scope.
Start the server
loggly-github --config <path-to-config-file>
Create a new alerting endpoint in Loggly
Configure the endpoint in Loggly to send a POST request to the loggly-github server:
http://my-server:1234/<secret>/github/<github-user>/<github-repo>?assignee=<assignee>
secret
(required): The secret as defined in your configurationgithub-user
/github-repo
(required): GitHub repo where the ticket is createdassignee
(optional): GitHub user to assign the ticket to
Development
Install dependencies:
npm install
Run tests:
npm test
Release a new version:
- Bump the version in
package.json
, merge to master. - Push a new tag to master.
- Travis will deploy to NPM.