{"id":3308,"date":"2025-02-16T08:59:49","date_gmt":"2023-01-20T06:40:12","guid":{"rendered":""},"modified":"2025-02-02T00:46:20","modified_gmt":"2025-02-01T23:46:20","slug":"how-to-install-graylog-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-graylog-on-ubuntu-24-04\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 Graylog on Ubuntu 24.04"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<h1>How to Install Graylog on Ubuntu 24.04<\/h1>\n<h2>Introduction<\/h2>\n<p>Graylog is an open-source log management platform that provides real-time, centralized logging with features like searching, analyzing, and visualizing log data. In this guide, you will learn how to install Graylog on Ubuntu 24.04.<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>A server running Ubuntu 24.04<\/li>\n<li>Root access or a user with <code>sudo<\/code> privileges<\/li>\n<li>Java OpenJDK installed (version 8 or higher)<\/li>\n<li>A domain name (optional)<\/li>\n<\/ul>\n<h2>Step 1: Update the System<\/h2>\n<p>First, update your package list and upgrade your installed packages:<\/p>\n<pre><code>sudo apt update\r\nsudo apt upgrade -y<\/code><\/pre>\n<h2>Step 2: Install Java OpenJDK<\/h2>\n<p>Graylog requires Java to run. Install OpenJDK by running:<\/p>\n<pre><code>sudo apt install openjdk-11-jdk -y<\/code><\/pre>\n<h2>Step 3: Install MongoDB<\/h2>\n<p>Graylog uses MongoDB as its database. Install it by following these steps:<\/p>\n<pre><code>sudo apt install -y mongodb<\/code><\/pre>\n<p>Start and enable the MongoDB service:<\/p>\n<pre><code>sudo systemctl start mongodb\r\nsudo systemctl enable mongodb<\/code><\/pre>\n<h2>Step 4: Install Elasticsearch<\/h2>\n<p>Graylog uses Elasticsearch for full-text search capabilities. Add the Elasticsearch GPG key and repository:<\/p>\n<pre><code>wget -qO - https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch | sudo apt-key add -\r\necho \"deb https:\/\/artifacts.elastic.co\/packages\/7.x\/apt stable main\" | sudo tee \/etc\/apt\/sources.list.d\/elastic-7.x.list<\/code><\/pre>\n<p>Now install Elasticsearch:<\/p>\n<pre><code>sudo apt update\r\nsudo apt install elasticsearch -y<\/code><\/pre>\n<p>Start and enable the Elasticsearch service:<\/p>\n<pre><code>sudo systemctl start elasticsearch\r\nsudo systemctl enable elasticsearch<\/code><\/pre>\n<h2>Step 5: Install Graylog<\/h2>\n<p>Download the Graylog repository and install it:<\/p>\n<pre><code>wget https:\/\/packages.graylog2.org\/repo\/packages\/graylog-4.2-repository_latest.deb\r\nsudo dpkg -i graylog-4.2-repository_latest.deb\r\nsudo apt update\r\nsudo apt install graylog-server -y<\/code><\/pre>\n<h2>Step 6: Configure Graylog<\/h2>\n<p>Open the Graylog configuration file:<\/p>\n<pre><code>sudo nano \/etc\/graylog\/server\/server.conf<\/code><\/pre>\n<p>Change the following settings:<\/p>\n<ul>\n<li><code>password_secret<\/code>: Generate a random secret string.<\/li>\n<li><code>root_password_sha2<\/code>: Set the root password. Use the command <code>echo -n your_password | shasum -a 256<\/code> to hash the password.<\/li>\n<li><code>http_bind_address<\/code>: Set to <code>0.0.0.0:9000<\/code> to allow external access.<\/li>\n<\/ul>\n<p>Once done, save and exit.<\/p>\n<h2>Step 7: Start Graylog Server<\/h2>\n<p>Start the Graylog service and enable it to run on boot:<\/p>\n<pre><code>sudo systemctl start graylog-server\r\nsudo systemctl enable graylog-server<\/code><\/pre>\n<h2>Step 8: Configure Firewall (Optional)<\/h2>\n<p>If you have a firewall enabled, allow access to Graylog:<\/p>\n<pre><code>sudo ufw allow 9000\/tcp<\/code><\/pre>\n<h2>Step 9: Access Graylog Web Interface<\/h2>\n<p>Open your web browser and access Graylog using the following URL:<\/p>\n<pre><code>http:\/\/your_server_ip:9000<\/code><\/pre>\n<p>Log in using the username <code>admin<\/code> and the password you created earlier.<\/p>\n<h2>Conclusion<\/h2>\n<p>You have successfully installed Graylog on Ubuntu 24.04. You can now start using Graylog for log management! Explore its features to analyze and visualize your log data effectively.<\/p>\n<h2>Resources<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.graylog.org\/\" target=\"_blank\" rel=\"follow\">Graylog Official Website<\/a><\/li>\n<li><a href=\"https:\/\/docs.graylog.org\/en\/latest\/index.html\" target=\"_blank\" rel=\"follow\">Graylog Documentation<\/a><\/li>\n<\/ul>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 How to Install Graylog on Ubuntu 24.04 Introduction Graylog is an open-source log management platform that provides real-time, centralized logging with features like searching, analyzing, and visualizing\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-3308","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/3308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=3308"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/3308\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=3308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=3308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=3308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}