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.
Truth be told, it’s difficult for a web application that doesn’t have some kind of identification, even if you don’t see it as a security measure in and of itself. The Internet is a kind of lawless land, and even on free services like Google’s, authentication ensures that abuses will...
Although data persistence is almost always a fundamental element of applications, Node.js has no native integration with databases. Everything is delegated to third-party libraries to be included manually, in addition to the standard APIs. Although MongoDB and other non-relational databases are the most common choice with Node because if you...