Skip to content
share library_books

Logagent input plugin for GitHub Webhook Events

Input Plugin: GitHub Webhook Events

Input plugin to receive GitHub Webhook Events via HTTP and send them to Sematext Events.


  • List all crucial GitHub events in the Sematext Events stream


  • centralize GitHub Webhook Events
  • act as Webhook to receive GitHub Webhook Events
  • index GitHub Webhook Events in Elasticsearch or Sematext Cloud
  • create alerts on GitHub Webhook Events in Sematext Cloud


  • configure the GitHub API to send Events via Webhook


# github.yml

    module: input-github-webhook
    port: 9200
    useIndexFromUrlPath: true
      - github
      - webhook
      - notification

    module: output-sematext-events

    # if you use our EU region
    # receiver:

Start Logagent:

logagent --config github.yml

This will start a Node.js server and run on port 9200.

Once you've done that, go ahead and create a Monitoring App in Sematext. Grab the TOKEN and keep it somewhere safe.

The Logagent server will listen for API calls on port 9200 (default) to the /github/<MONITORING_APP_TOKEN> route. To configure routing GitHub Webhook Events to Sematext Events you need to enable it through the GitHub API.

The final full URL you need to configure the GitHub API will be https://<YOUR_DOMAIN>/github/<MONITORING_APP_TOKEN>.

You need to run the command below to tell the GitHub API to send Webhooks events to this Logagent GitHub input plugin. Don't forget to generate an API token. Check this out to learn how.

  -H 'authorization: token <YOUR_GITHUB_API_V3_TOKEN>' \
  -H 'cache-control: no-cache' \
  -d '{
  "config": {
    "url": "https://<YOUR_DOMAIN>/github/<TOKEN>"
  "events": [

That's it. GitHub will send events to your Logagent instance and this GitHub input plugin will funnel events to the Sematext Events stream.