0.1.4 • Published 10 years ago

loggly-github v0.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

loggly-github

Create GitHub tickets for Loggly alerts.

Build Status npm

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

{
  "port": "<HTTP port to listen on>",
  "secret": "<Any alphanumeric API secret>",
  "github": {
    "token": "<GitHub access token>"
  }
}

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 configuration
  • github-user/github-repo (required): GitHub repo where the ticket is created
  • assignee (optional): GitHub user to assign the ticket to

Development

Install dependencies:

npm install

Run tests:

npm test

Release a new version:

  1. Bump the version in package.json, merge to master.
  2. Push a new tag to master.
  3. Travis will deploy to NPM.
0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.0

10 years ago