{"id":14826,"date":"2025-05-08T16:11:49","date_gmt":"2025-05-08T10:41:49","guid":{"rendered":"https:\/\/www.skynats.com\/?p=14826"},"modified":"2025-05-08T16:13:19","modified_gmt":"2025-05-08T10:43:19","slug":"how-to-install-wazuh-indexer-in-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/how-to-install-wazuh-indexer-in-ubuntu-24-04\/","title":{"rendered":"How to Install Wazuh-indexer in Ubuntu 24.04"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Wazuh is an open-source security platform that provides threat detection, compliance management, and incident response capabilities. It uses a distributed architecture where the Wazuh Indexer plays a critical role in storing and searching alert data. In this blog, we\u2019ll walk through the process of installing Wazuh Indexer on Ubuntu 24.04 server using the official Wazuh installation assistant.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-small-font-size\" id=\"h-installing-wazuh-indexer-on-ubuntu-24-04\">Installing Wazuh Indexer on Ubuntu 24.04 <\/h2>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-step-1-download-the-wazuh-installation-assistant-and-the-configuration-file\">Step 1: Download the Wazuh installation assistant and the configuration file<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">First, download the script for the Wazuh installation assistant and the configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#curl -sO https:\/\/packages.wazuh.com\/4.11\/wazuh-install.sh\n#curl -sO https:\/\/packages.wazuh.com\/4.11\/config.yml<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-step-2-edit-the-configuration-file\">Step 2: Edit the Configuration File<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Edit .\/config.yml and replace the node names and IP values:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Wazuh indexer nodes\n  indexer:\n    - name: node-1\n      ip: \"&lt;indexer-node-ip&gt;\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Also do the same for all Wazuh server, and Wazuh dashboard nodes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-step-3-generate-configuration-files\">Step 3: Generate Configuration Files<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run the Wazuh installation assistant with the option &#8211;generate-config-files to generate the Wazuh cluster key, certificates, and passwords necessary for installation:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#bash wazuh-install.sh --generate-config-files<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-step-4-copy-generated-files-to-all-servers\">Step 4: Copy Generated Files to All Servers<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After generation, you will have a file named wazuh-install-files.tar.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Copy the wazuh-install-files.tar file to all the servers of the distributed deployment<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-step-5-install-and-configure-the-wazuh-indexer-node\">Step 5: Install and Configure the Wazuh Indexer Node<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Install and configure the Wazuh indexer nodes:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Download installation script:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#curl -sO https:\/\/packages.wazuh.com\/4.11\/wazuh-install.sh<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Run the script with the option &#8211;wazuh-indexer and the node name to install and configure the <a href=\"https:\/\/wazuh.com\/\" target=\"_blank\" rel=\"noopener\">Wazuh<\/a> indexer.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#bash wazuh-install.sh --wazuh-indexer node-1<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading has-small-font-size\" id=\"h-step-6-initialize-the-wazuh-indexer-cluster\">Step 6: Initialize the Wazuh Indexer Cluster<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Run the Wazuh installation assistant with the option &#8211;start-cluster on any Wazuh indexer node to load the new certificate information and start the cluster.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#bash wazuh-install.sh --start-cluster<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading has-small-font-size\" id=\"h-step-7-cluster-installation\">Step 7: Cluster installation<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Run the following command to get the admin password:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#tar -axf wazuh-install-files.tar wazuh-install-files\/wazuh-passwords.txt -O | grep -P \"\\'admin\\'\" -A 1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Eg output:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;indexer_username: &#8216;<strong>admin<\/strong>&#8216;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;indexer_password: &#8216;<strong>vX?JU7v4Jszt4rcfmBkldC5K.SUbBieo<\/strong>&#8216;<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-small-font-size\" id=\"h-step-8-test-the-cluster-installation\">Step 8: Test the Cluster Installation<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, test your Wazuh Indexer by running a simple API call:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># curl -k -u admin:vX?JU7v4Jszt4rcfmBkldC5K.SUbBieo https:\/\/127.0.0.1:9200<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A successful response will look like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"name\" : \"node-1\",\n  \"cluster_name\" : \"wazuh-indexer-cluster\",\n  \"cluster_uuid\" : \"lTXL_l7bSZKFAIpOAXollg\",\n  \"version\" : {\n    \"number\" : \"7.10.2\",\n    \"build_type\" : \"deb\",\n    \"build_hash\" : \"e5a68d19815af94a9883fead7927edb40181f32d\",\n    \"build_date\" : \"2025-03-26T19:08:40.098412Z\",\n    \"build_snapshot\" : false,\n    \"lucene_version\" : \"9.11.1\",\n    \"minimum_wire_compatibility_version\" : \"7.10.0\",\n    \"minimum_index_compatibility_version\" : \"7.0.0\"\n  },\n  \"tagline\" : \"The OpenSearch Project: https:\/\/opensearch.org\/\"\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\">Conclusion<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Installing Wazuh Indexer on Ubuntu 24.04 is straightforward with the help of the Wazuh installation assistant.<br>Following these steps ensures a properly configured, secure, and scalable indexer cluster ready to handle your security event data. If you need further assistance, our <a href=\"https:\/\/www.skynats.com\/server-management\/\">support team<\/a> is here to help you with this.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wazuh is an open-source security platform that provides threat detection, compliance management, and incident response capabilities. It uses a distributed architecture where the Wazuh Indexer plays a critical role in storing and searching alert data. In this blog, we\u2019ll walk through the process of installing Wazuh Indexer on Ubuntu 24.04 server using the official Wazuh [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[302,1016],"class_list":["post-14826","post","type-post","status-publish","format-standard","hentry","category-blog","tag-server-management-services","tag-wazuh-indexer-in-ubuntu-24-04"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/14826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=14826"}],"version-history":[{"count":3,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/14826\/revisions"}],"predecessor-version":[{"id":14829,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/14826\/revisions\/14829"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=14826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=14826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=14826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}