How to analyze Github events using Logz.io

Reading Time: 3 minutes

Hello Readers! In this blog, I will show you how we can analyze GitHub events using logz.io. Here GitHub events can be committed details, pull requests raised to that repository, code changes your repository details, etc. Logz.io is a platform for you to monitor your application.

So, let’s get started!!!

Step 1: Create an account in logz.io. It gives you 14days free trial. Follow the link for account creation:

https://logz.io/freetrial/

Step 2: Integrate it with Github.

logz.io integrations

Click on Explore Integrations. Search Github in the search box.

integrations

Click on GitHub to integrate. You will get the following details after successful integrations.

logz.io

Logz.io will capture the following GitHub events for you:

github events

Step 3: Add a webhook in your GitHub repository for which you want to analyze data on logz.io. Goto Repository > settings > webhooks > Add webhook. Fill in the details there. Your payload URL should be in the following format:

<a href=”https://<<LISTENER-HOST>&gt;:8071/?token=<https://<<LISTENER-HOST>&gt;:8071/?token=<<LOG-SHIPPING-TOKEN>>&type=github

github webhook

Following options you will find there for event triggers:

  • Just the push event
  • Send me everything
  • Let me select individual events

Select events as per your need. And check the active box and Click on Add webhook.

add webhook

My webhook is successfully added as you can see below:

add webhook

Step 4: Now you will be able to find all the logs in your logz.io. It will some time to fetch the details. After that, you will be able to get all. It will look like this.

dashboard

Inside the available fields column on the left side, you will be able to get a number of fields. Select those fields that you want to see inside the logs. 

I am getting all my commit details after selecting the commit fields here:

logs of commit

I am also getting my pull request details here:

logs of pr

Explore all the available fields for more details.

That’s all for now!!

Conclusion:

Thank you for sticking to the end. In this blog, we have learned how we can analyze GitHub events using logz.io. This is really very quick and simple. If you like this blog, please share my blog and show your appreciation by giving thumbs-ups, and don’t forget to give me suggestions on how I can improve my future blogs that can suit your needs.

HAPPY LEARNING! 

Written by 

Naincy Kumari is a DevOps Consultant at Knoldus Inc. She is always ready to learn new technologies and tools. She loves painting and dancing.