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:
Step 2: Integrate it with Github.
Click on Explore Integrations. Search Github in the search box.
Click on GitHub to integrate. You will get the following details after successful integrations.
Logz.io will capture the following GitHub events for you:
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>>:8071/?token=<https://<<LISTENER-HOST>>:8071/?token=<<LOG-SHIPPING-TOKEN>>&type=github
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.
My webhook is successfully added as you can see below:
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.
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:
I am also getting my pull request details here:
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!