![install pwgen install pwgen](https://selinux.cn/wp-content/uploads/2019/10/d20191015163303.png)
If everything is working fine then you will get “ok” : 1 in above output.Īdd Graylog repository and install graylog-server package wget sudo dpkg -i graylog-3.1-repository_b sudo apt update sudo apt -y install graylog-server Step 6: Configure Graylog on Ubuntu MongoDB config file: ‘/etc/nf’, After changes make sure you restart the MongoDB service 4.6: Test the connection mongo -eval 'db.runCommand()'
![install pwgen install pwgen](https://extiverse.com/extension/justoverclock/flarum-ext-pwgen/card.png)
Systemctl status mongod netstat -tunelp | grep 27017 sudo apt update sudo apt -y install apt-transport-https wget -qO - | sudo apt-key add - echo "deb stable main" | sudo tee -a /etc/apt//elastic-6.x.list sudo apt update sudo apt -y install elasticsearch-oss 3.1 Set Elasticsearch cluster name: sudo vim /etc/elasticsearch/elasticsearch.yml eg: cluster.name: graylog to_create_index: false 3.2 Restart the Elasticsearch service: sudo systemctl daemon-reload sudo systemctl enable rvice sudo systemctl restart rvice Step 4: Install MongoDB on Ubuntu 4.1: Import MongoDB public GPG Key sudo apt update sudo apt install gnupg wget -qO - | sudo apt-key add - 4.2: Add MongoDB 4.4 APT Repository to Ubuntu echo "deb focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt//mongodb-org-4.4.list sudo apt update 4.3: Install MongoDB 4.4 on Ubuntu sudo apt install -y mongodb-org 4.4: Enable MongoDB service auto start on boot sudo systemctl enable -now mongod 4.5: Verify MongoDB service status apt install net-tools Graylog 3 requires Elasticsearch 6.x to work. $ sudo apt -y install vim bash-completion apt-transport-https uuid-runtime pwgen openjdk-8-jre-headless Step 3: Install Elasticsearch on Ubuntu
![install pwgen install pwgen](http://vcloud-lab.com/files/images/84c2a847-a2bd-4895-9d62-ca5a68652908.png)
Elasticsearch required Java (OpenJDK/Oracle Java) installed on the system. $ sudo apt update Step 2: Install OpenJDK on Ubuntuĭependency on Graylog is Elasticsearch. To avoid any dependency issues it is always recommended updating the system before installing any package. See Also: Step 1: Update the Ubuntu system