– Now, install Elasticsearch using the follwing command: ~]# sudo yum install elasticsearch -y Name=Elasticsearch repository for 2.x packages You will need to create a repo for it using the following command: ~]# vi /etc//elasticsearch.repo – Elasticsearch is not available in the default CentOS repositories. – To install Elasticsearch, we have to Import the GPG key using the following command: rpm -import – Start the MongoDB service and enable it to start on boot with the following command: ~]# sudo chkconfig -add mongod – Install MongoDB by running the following command: ~]# sudo yum install mongodb-org -y – Add the following contents: īaseurl=$releasever/mongodb-org/3.2/x86_64/ To do so,you have to create the file mongodb-org-3.2.repo under /etc// directory using the following commands: ~]# vi /etc//mongodb-org-3.2.repo You will need to add the MongoDB repo first. – MongoDB is not available in the default CentOS repository. – To install graylog, we will need to install those additional packages: ~]# sudo yum install java-1.8.0-openjdk-headless.x86_64 -y
In this tutorial, we will learn how to install and configure the Graylog server on CentOS 7/RHEL 7 Graylog Server : Receives and parses the logs coming from various inputs and provides a web interface to manage those logs. MongoDB : Database to store configuration and meta information.
Įlasticsearch : Receives and stores the logs from the Graylog server and offers a search facility. Graylog is an open source log management software that can be used to easily collect, index, and analyze remote system logs centrally.