Graylog is a popular open-source log management and analysis tool that enables organizations to collect, process, and analyze large amounts of log data. In this tutorial, we will guide you through the process of installing Graylog on Kali Linux latest version.
Before starting with the installation process, make sure you have the following prerequisites:
Elasticsearch is a distributed database that is used by Graylog to store and index log data.
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
sudo apt-get update
sudo apt-get install elasticsearch-oss
sudo systemctl enable --now elasticsearch.service
MongoDB is a NoSQL document-oriented database used by Graylog to store configuration and meta-data.
echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo systemctl enable --now mongod.service
mongo --eval 'db.version()'
Now that we have installed Elasticsearch and MongoDB, we are ready to install Graylog itself.
wget https://packages.graylog2.org/repo/packages/graylog-4.2-repository_latest.deb
sudo dpkg -i graylog-4.2-repository_latest.deb
sudo apt-get update
sudo apt-get install graylog-server
sudo nano /etc/graylog/server/server.conf
rest_listen_uri = http://192.168.0.10:9000/api/
web_listen_uri = http://192.168.0.10:9000/
Save and close the configuration file.
Start and enable the Graylog server service by running:
sudo systemctl enable --now graylog-server.service
At this point, Graylog is up and running and we can access the web interface.
Open a web browser and navigate to http://
Login with the default credentials:
That's it! You've successfully installed Graylog on Kali Linux latest version.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!