To configure the Graylog repository, type: $ sudo dpkg -i graylog-4.1-repository_1-3_all.deb
Graylog collects the logs from the various inputs and provides the output to the web interface that it offers to manage the logs.įirst, we will need to download the Graylog Repo file using the wget command: $ wget With the output of the command, you can see the line "number": "7.10.2" show the elasticsearch version. "minimum_index_compatibility_version" : "6.0.0-beta1" "minimum_wire_compatibility_version" : "6.8.0", "cluster_uuid" : "sz3jP3rKTPWZlasWwD-rBg", You can check if it's working $ sudo curl -XGET ' "name" : "Ubuntunode", └─19565 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controllerĪug 22 12:38:24 li663-124 systemd: Started Elasticsearch.Įlasticsearch by default works on the port 9200, you should open it on the firewall. ├─19502 /bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly =60 > Loaded: loaded (/lib/systemd/system/rvice disabled vendor preset: enabled)Īctive: active (running) since Sun 12:38:24 UTC 11min agoĬGroup: /system.slice/rvice Now verify service is running properly using the following command: $ sudo systemctl status rvice You can enable and start the Elasticsearch service using one command: $ sudo systemctl enable -now rvice To use your own version of Java set the ES_JAVA_HOME environment variable. Configuration files - /etc/elasticsearch directory Java start-up options - /etc/default/elasticsearch fileĮlasticsearch comes with a bundled version of OpenJDK. Modify the elasticsearch configuration file to set some information as the cluster name, the IP address on which the elasticsearch is listening, and the port number $ sudo vi /etc/elasticsearch/elasticsearch.yml cluster.name: graylog-serverĭ.hosts: Įlasticsearch main configuration files and directory are :ĭata is stored - /var/lib/elasticsearch directory.
Now update the repository $ sudo apt updateįinally, install the opensource version of elasticsearch by typing: $ sudo apt install elasticsearch-oss Next, add the Elasticsearch repository: # echo "deb stable main" | sudo tee -a /etc/apt//elastic-7.x.list Import the repository’s GPG key: $ wget -qO - | sudo apt-key add. Refer to Graylog's official website for the supported version of elasticseach.Įlasticseach need Java, it comes with Java bundled version of OpenJDK Graylog stores all the log data in Elasticsearch. Step 2: Install Elasticsearch on Ubuntu 20.04 The output shows we have installed MongoDB version 5.0.2. You can check the version of MongoDB that is installed $ sudo mongod -version db version v5.0.2 └─17965 /usr/bin/mongod -config /etc/nfĪug 22 04:47:46 li175-223 systemd: Started MongoDB Database Server.Īs the output shows MongoDB started and the service is up and running. Loaded: loaded (/lib/systemd/system/rvice disabled vendor preset: enabled)Īctive: active (running) since Sun 04:47:46 UTC 3s ago