{"id":3322,"date":"2023-10-29T14:41:17","date_gmt":"2024-11-18T03:48:35","guid":{"rendered":""},"modified":"2025-02-02T00:46:20","modified_gmt":"2025-02-01T23:46:20","slug":"how-to-install-graylog-on-windows-vps-using-docker","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-graylog-on-windows-vps-using-docker\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 Graylog on Windows VPS using Docker"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<h1>\u00a0<\/h1>\n<h2>Introduction<\/h2>\n<p>Graylog is an open-source log management tool that allows you to centralize and analyze logs from different sources. This guide will walk you through the steps to install Graylog on a Windows VPS using Docker.<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>A Windows VPS with administrative access.<\/li>\n<li>Windows VPSDocker installed. If not, you can download it from the <a href=\"https:\/\/www.docker.com\/products\/docker-desktop\" target=\"_blank\" rel=\"follow\">Docker Hub<\/a>.<\/li>\n<li>A network port (default is 9000) open for Graylog.<\/li>\n<li>Basic knowledge of Docker commands.<\/li>\n<\/ul>\n<h2>Step 1: Install Docker on Windows<\/h2>\n<p>If you haven&#8217;t installed Docker yet, download and install Docker Desktop from the link provided in the prerequisites. Follow the installation instructions provided on Docker&#8217;s website.<\/p>\n<h2>Step 2: Enable WSL 2 Backend<\/h2>\n<p>During the Docker installation, make sure to enable the WSL 2 feature. You can also follow the instructions provided <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/wsl\/install-win10\" target=\"_blank\" rel=\"follow\">here<\/a> to install WSL manually.<\/p>\n<h2>Step 3: Install Docker Compose<\/h2>\n<p>Once Docker is installed, open a command prompt and update Docker Compose:<\/p>\n<pre><code>docker-compose --version<\/code><\/pre>\n<h2>Step 4: Create a Graylog Directory<\/h2>\n<p>Create a directory for your Graylog installation where you will store the configuration files:<\/p>\n<pre><code>mkdir C:\\graylog\r\ncd C:\\graylog<\/code><\/pre>\n<h2>Step 5: Set Up Docker Compose File<\/h2>\n<p>Create a new file named <code>docker-compose.yml<\/code> in the Graylog directory using a text editor (e.g., Notepad):<\/p>\n<pre><code>Notepad docker-compose.yml<\/code><\/pre>\n<p>Then add the following configuration:<\/p>\n<pre><code>version: '3'\r\n\r\nservices:\r\n  mongodb:\r\n    image: mongo:4.2\r\n    volumes:\r\n      - mongo_data:\/data\/db\r\n    restart: always\r\n\r\n  elasticsearch:\r\n    image: docker.elastic.co\/elasticsearch\/elasticsearch:7.10.1\r\n    environment:\r\n      - discovery.type=single-node\r\n      - ES_JAVA_OPTS=-Xmx512m -Xms512m\r\n    volumes:\r\n      - es_data:\/usr\/share\/elasticsearch\/data\r\n    restart: always\r\n\r\n  graylog:\r\n    image: graylog\/graylog:4.0\r\n    environment:\r\n      - GRAYLOG_PASSWORD_SECRET=somepasswordpepper\r\n      - GRAYLOG_ROOT_PASSWORD_SHA2=yourrootpasswordhash\r\n      - GRAYLOG_HTTP_EXTERNAL_URI=http:\/\/your.server.ip:9000\/\r\n    volumes:\r\n      - graylog_journal:\/usr\/share\/graylog\/data\/journal\r\n    ports:\r\n      - \"9000:9000\"\r\n    restart: always\r\n\r\nvolumes:\r\n  mongo_data:\r\n  es_data:\r\n  graylog_journal:<\/code><\/pre>\n<h3>Note:<\/h3>\n<p>Replace <code>your.server.ip<\/code> with your server&#8217;s public IP address. Generate a password hash using the following command in PowerShell or any Unix-like environment:<\/p>\n<pre><code>echo -n \"yourrootpassword\" | shasum -a 256<\/code><\/pre>\n<p>Replace <code>yourrootpassword<\/code> with the password you want to use for the Graylog admin user.<\/p>\n<h2>Step 6: Start Graylog with Docker Compose<\/h2>\n<p>Navigate to the Graylog directory and run Docker Compose to start Graylog:<\/p>\n<pre><code>cd C:\\graylog\r\ndocker-compose up -d<\/code><\/pre>\n<h2>Step 7: Access Graylog<\/h2>\n<p>After the containers are up and running, you can access the Graylog web interface by navigating to <code>http:\/\/your.server.ip:9000\/<\/code> in your web browser. Login with:<\/p>\n<ul>\n<li>Username: <code>admin<\/code><\/li>\n<li>Password: <code>yourrootpassword<\/code><\/li>\n<\/ul>\n<h2>Step 8: Configure Firewall (if necessary)<\/h2>\n<p>If you have a firewall running on your Windows VPS, ensure that port 9000 is allowed to accept incoming connections:<\/p>\n<pre><code>netsh advfirewall firewall add rule name=\"Graylog\" protocol=TCP dir=in localport=9000 action=allow<\/code><\/pre>\n<h2>Conclusion<\/h2>\n<p>You have successfully installed Graylog on a Windows VPS using Docker! You can now start collecting and analyzing logs through the Graylog interface.<\/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\/pages\/installation\/graylog_omnibus.html\" target=\"_blank\" rel=\"follow\">Graylog Installation Guide<\/a><\/li>\n<li><a href=\"https:\/\/docs.docker.com\/get-started\/overview\/\" target=\"_blank\" rel=\"follow\">Docker 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 \u00a0 Introduction Graylog is an open-source log management tool that allows you to centralize and analyze logs from different sources. This guide will walk you through the\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-3322","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\/3322","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=3322"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/3322\/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=3322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=3322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=3322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}