Wednesday, March 25, 2020

How To Install Graylog-3.0 on Ubuntu 18.04.2 LTS

Video Tutorial - https://youtu.be/SHlVdgBt0es

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Graylog is a free, open-source log management tool which helps you to collect and analyze any machine logs centrally.
Offcial Website: https://www.graylog.org/                       
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Our Server Specification- [ Os:  Ubuntu 18.04.2 LTS Bionic Beaver 64Bit ]
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd  ; getconf LONG_BIT ; whoami ; apt update -y ; apt install -y build-essential software-properties-common curl gdebi vim wget aptitude leafpad nano git net-tools lsb-release apt-transport-https uuid-runtime pwgen curl dirmngr openjdk-8-jre-headless
java -version

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list

apt update ; apt install -y elasticsearch
systemctl enable elasticsearch
gedit /etc/elasticsearch/elasticsearch.yml &>/dev/null
cluster.name: graylog
systemctl restart elasticsearch ; systemctl status elasticsearch
curl -X GET http://127.0.0.1:9200
curl -XGET 'http://127.0.0.1:9200/_cluster/health?pretty=true'


apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 68818C72E52529D4
echo "deb http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
apt update ; apt install -y mongodb-org
systemctl start mongod ; systemctl enable mongod

wget https://packages.graylog2.org/repo/packages/graylog-3.0-repository_latest.deb
gdebi graylog-3.0-repository_latest.deb
apt update ; apt install graylog-server -y
pwgen -N 1 -s 96
gedit  /etc/graylog/server/server.conf &>/dev/null
password_secret =
echo -n yourpassword | sha256sum
gedit /etc/graylog/server/server.conf &>/dev/null
root_password_sha2 =
root_email = "yourmail@gmail.com"
root_timezone = UTC
is_master = true
elasticsearch_shards = 1
elasticsearch_replicas = 0
http_bind_address = 127.0.0.1:9000

systemctl start graylog-server ; systemctl enable graylog-server ; systemctl status graylog-server
tail /var/log/graylog-server/server.log
netstat -tlpn
http://127.0.0.1:9000

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment