Menu
ZacsTech
  • Home
  • Linux
  • Windows
  • How To
  • Resources
  • Contact Us
ZacsTech
How to install Graylog on Ubuntu 22.04 LTS

How to install Graylog on Ubuntu 22.04 LTS

Posted on March 31, 2024March 31, 2024

Graylog is a powerful open-source log management platform that allows you to collect, index, and analyze log data from various sources in real-time. It offers robust features for centralized log management, making it an invaluable tool for monitoring and troubleshooting systems. In this guide, we’ll walk you through the step-by-step process of installing Graylog on Ubuntu 22.04 LTS.

Prerequisites: Before starting the installation process, ensure that you have the following prerequisites:

  1. A server running Ubuntu 22.04 LTS with root or sudo privileges.
  2. Sufficient memory and disk space for running Graylog.

Commands

  1. sudo apt update
  2. sudo apt install apt-transport-https wget curl uuid-runtime ca-certificates gnupg2
  3. curl -sSL https://www.mongodb.org/static/pgp/server-6.0.asc -o mongoserver.asc
  4. gpg –no-default-keyring –keyring ./mongo_key_temp.gpg –import ./mongoserver.asc
  5. gpg –no-default-keyring –keyring ./mongo_key_temp.gpg –export > ./mongoserver_key.gpg
  6. sudo mv mongoserver_key.gpg /etc/apt/trusted.gpg.d/
  7. echo “deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu $(lsb_release -cs)/mongodb-org/6.0 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
  8. sudo apt install mongodb-org
  9. sudo systemctl enable –now mongod
  10. sudo systemctl restart mongod.service
  11. sudo systemctl status mongod
  12. wget -qO – https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg –dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
  13. echo “deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/7.x/apt stable main” | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
  14. sudo apt install elasticsearch
  15. sudo tee -a /etc/elasticsearch/elasticsearch.yml > /dev/null <<EOT cluster.name: graylog action.auto_create_index: false EOT
  16. sudo systemctl daemon-reload
  17. sudo systemctl enable –now elasticsearch
  18. sudo systemctl start elasticsearch
  19. sudo systemctl status elasticsearch
  20. wget https://packages.graylog2.org/repo/packages/graylog-5.0-repository_latest.deb
  21. sudo dpkg -i graylog-5.0-repository_latest.deb
  22. sudo apt update && sudo apt-get install graylog-server
  23. < /dev/urandom tr -dc A-Z-a-z-0-9 | head -c${1:-96};echo;
  24. sudo nano /etc/graylog/server/server.conf
  25. echo -n “Enter Password: ” && head -1 </dev/stdin | tr -d ‘\n’ | sha256sum | cut -d” ” -f1
  26. sudo systemctl daemon-reload
  27. sudo systemctl enable –now graylog-server
  28. sudo systemctl restart graylog-server
  29. sudo systemctl status graylog-server

 

Video: How to Install Graylog on Ubuntu 22.04 LTS: Step-by-Step Guide

 

Related posts:

How to Install SonarQube using Docker Compose on Ubuntu 22.04How to Install SonarQube using Docker Compose on Ubuntu 22.04 How to Install Jenkins on Ubuntu 22.04How to install Jenkins on Ubuntu 22.04 Default ThumbnailHow to install Jellyfin Media Server on Ubuntu 22.04 LTS Commands How to Quickly Set up a Mail Server on Ubuntu 22.04 with ModoboaHow to Install and Configure Mail Server in Ubuntu 22.04 (EASILY)

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • facebook
  • twitter
  • pinterest
Privacy Policy
Terms and Conditions

Contact Us
About Us
©2025 ZacsTech | Powered by SuperbThemes
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT