Skip to content
This repository has been archived by the owner on Mar 19, 2018. It is now read-only.
/ loggly-github Public archive

UNMAINTAINED. Create GitHub tickets for Loggly alerts.

License

Notifications You must be signed in to change notification settings

cargomedia/loggly-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNMAINTAINED

This project is not maintained anymore. If you want to take over contact us at tech@cargomedia.ch.

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.

About

UNMAINTAINED. Create GitHub tickets for Loggly alerts.

Resources

License

Stars

Watchers

Forks

Packages

No packages published