Graylog is a free and open source powerful centralized log management tool based on Elasticsearch and MongoDB. Graylog helps you to collect and analyze your system logs to debug applications.
Graylog is made up of three components Elasticsearch, MongoDB and Graylog server. Elasticsearch is used to store the log messages and provide searching facilities. MongoDB isused to store the configuration and meta information. Graylog server collects the logs from various inputs and provides a web interface for managing the logs.
In this tutorial, we will explain how to install and configure Graylog server on Ubuntu 16.04.
A server running Ubuntu 16.04.
A non-root user with sudo privileges setup on your server.
A static IP address 192.168.15.110 configure on your server.
##Update the System
First, update your system to the latest stable version by running the following command:
sudo apt-get update -ysudo apt-get upgrade -y
Once your system is up to date, you can proceed to the next step.
Elasticsearch is one of the main components of Graylog server. Elasticsearch stores all the logs sent by Graylog server and displays the messages over the built-in web interface.
Before starting, Elasticsearch requires Java to be installed on your server. So you will need to install Java first.
By default Java is not available in Ubuntu default repository. So first add the Oracle Java PPA to apt with the following command:
sudo add-apt-repository ppa:webupd8team/java
Next, update your apt package database with the following command:
sudo apt-get update -y
Next, Install the latest stable version of Oracle Java 8 with the following command:
sudo apt-get install oracle-java8-installer
Next, Verify the Java version by running the following command:
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
Before installing Elasticsearch, you will need to download and install a GPG signing key.
Looking for the right web hosting solution for your website can be an intimidating task. Options nowadays are more diversified than ever, and each year brings new developments in the web hosting market. If you have no clue of what to look out for, you can find yourself overwhelmed with...
Content marketing continues to be one of the most valuable tools for today’s online businesses. With content, you can improve your chances of reaching your target audience, boost your search engine standing, and even unlock new opportunities for sales. The more content you produce, the more you can strengthen your...
User Experience (UX) is one of the most crucial factors to consider in web design. As the number of websites and applications in the world today continues to accelerate, businesses are under more pressure than ever to impress customers straight away. If a user visits your website and finds slow-loading...