The aim of this PR is to fix the download process of the offline pre-release packages.
This has been done by changing the links when the -d pre-release option is used in the Wazuh Installation Assistant script.
Tests
Download and installation process in Amazon Linux 2023:
```shellsession
[root@ip-172-31-36-146 wazuh-installation-assistant]# bash wazuh-install.sh -dw rpm -d pre-release
24/10/2024 11:53:10 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
24/10/2024 11:53:10 INFO: Verbose logging redirected to /var/log/wazuh-install.log
24/10/2024 11:53:11 INFO: --- Dependencies ---
24/10/2024 11:53:11 INFO: Installing curl.
24/10/2024 11:53:12 INFO: Verifying that your system meets the recommended minimum hardware requirements.
24/10/2024 11:53:12 INFO: --- Download Packages ---
24/10/2024 11:53:12 INFO: Starting Wazuh packages download.
24/10/2024 11:53:12 INFO: Downloading Wazuh rpm packages for x86_64.
24/10/2024 11:53:21 INFO: The manager package was downloaded.
24/10/2024 11:53:23 INFO: The filebeat package was downloaded.
24/10/2024 11:53:41 INFO: The indexer package was downloaded.
24/10/2024 11:53:47 INFO: The dashboard package was downloaded.
24/10/2024 11:53:47 INFO: The packages are in wazuh-offline/wazuh-packages
24/10/2024 11:53:47 INFO: Downloading configuration files and assets.
24/10/2024 11:53:47 INFO: The resource https://packages.wazuh.com/key/GPG-KEY-WAZUH was downloaded.
24/10/2024 11:53:48 INFO: The resource https://packages-dev.wazuh.com/4.10/tpl/wazuh/filebeat/filebeat.yml was downloaded.
24/10/2024 11:53:48 INFO: The resource https://raw.githubusercontent.com/wazuh/wazuh/4.10.0/extensions/elasticsearch/7.x/wazuh-template.json was downloaded.
24/10/2024 11:53:48 INFO: The resource https://packages-dev.wazuh.com/pre-release/filebeat/wazuh-filebeat-0.4.tar.gz was downloaded.
24/10/2024 11:53:48 INFO: The configuration files and assets are in wazuh-offline.tar.gz
24/10/2024 11:55:06 INFO: You can follow the installation guide here https://documentation.wazuh.com/current/deployment-options/offline-installation.html
[root@ip-172-31-36-146 wazuh-installation-assistant]# curl -sO https://packages-dev.wazuh.com/4.10/config.yml
[root@ip-172-31-36-146 wazuh-installation-assistant]# nano config.yml
[root@ip-172-31-36-146 wazuh-installation-assistant]# ./wazuh-install.sh -g
24/10/2024 12:11:51 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
24/10/2024 12:11:51 INFO: Verbose logging redirected to /var/log/wazuh-install.log
24/10/2024 12:11:52 INFO: Verifying that your system meets the recommended minimum hardware requirements.
24/10/2024 12:11:52 INFO: --- Configuration files ---
24/10/2024 12:11:52 INFO: Generating configuration files.
24/10/2024 12:11:52 INFO: Generating the root certificate.
24/10/2024 12:11:53 INFO: Generating Admin certificates.
24/10/2024 12:11:54 INFO: Generating Wazuh indexer certificates.
24/10/2024 12:11:54 INFO: Generating Filebeat certificates.
24/10/2024 12:11:55 INFO: Generating Wazuh dashboard certificates.
24/10/2024 12:11:55 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
[root@ip-172-31-36-146 wazuh-installation-assistant]# ping google.com
PING google.com (142.251.111.101) 56(84) bytes of data.
^C
--- google.com ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2070ms
[root@ip-172-31-36-146 wazuh-installation-assistant]# bash wazuh-install.sh --offline-installation --wazuh-indexer node-1
24/10/2024 12:12:44 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
24/10/2024 12:12:44 INFO: Verbose logging redirected to /var/log/wazuh-install.log
24/10/2024 12:12:44 INFO: Checking dependencies for Wazuh installation assistant.
24/10/2024 12:12:47 INFO: Verifying that your system meets the recommended minimum hardware requirements.
24/10/2024 12:12:47 INFO: Checking prerequisites for Offline installation.
24/10/2024 12:12:47 INFO: Checking wazuh-offline.tar.gz file.
24/10/2024 12:13:01 INFO: --- Wazuh indexer ---
24/10/2024 12:13:01 INFO: Starting Wazuh indexer installation.
24/10/2024 12:13:21 INFO: Wazuh indexer installation finished.
24/10/2024 12:13:21 INFO: Wazuh indexer post-install configuration finished.
24/10/2024 12:13:21 INFO: Starting service wazuh-indexer.
24/10/2024 12:13:50 INFO: wazuh-indexer service started.
24/10/2024 12:13:50 INFO: Initializing Wazuh indexer cluster security settings.
24/10/2024 12:13:51 INFO: Wazuh indexer cluster initialized.
24/10/2024 12:13:51 INFO: Installation finished.
[root@ip-172-31-36-146 wazuh-installation-assistant]# bash wazuh-install.sh --offline-installation --start-cluster
24/10/2024 12:14:16 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
24/10/2024 12:14:16 INFO: Verbose logging redirected to /var/log/wazuh-install.log
24/10/2024 12:14:16 INFO: Checking dependencies for Wazuh installation assistant.
24/10/2024 12:14:19 INFO: Verifying that your system meets the recommended minimum hardware requirements.
24/10/2024 12:14:19 INFO: Checking wazuh-offline.tar.gz file.
24/10/2024 12:14:27 INFO: Wazuh indexer cluster security configuration initialized.
24/10/2024 12:14:33 INFO: Updating the internal users.
24/10/2024 12:14:37 INFO: A backup of the internal users has been saved in the /etc/wazuh-indexer/internalusers-backup folder.
24/10/2024 12:15:01 INFO: Wazuh indexer cluster started.
[root@ip-172-31-36-146 wazuh-installation-assistant]# curl -k -u admin:N16+lkpRfVWfWux1Xz4cxgZfXttNrThF https://127.0.0.1:9200
{
"name" : "node-1",
"cluster_name" : "wazuh-indexer-cluster",
"cluster_uuid" : "wD3FC3VSR_-aoUPLDOUV6w",
"version" : {
"number" : "7.10.2",
"build_type" : "rpm",
"build_hash" : "3b801c7d4cecb2aef1f0277089efbed3e574bdba",
"build_date" : "2024-10-18T12:12:25.529411Z",
"build_snapshot" : false,
"lucene_version" : "9.11.1",
"minimum_wire_compatibility_version" : "7.10.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "The OpenSearch Project: https://opensearch.org/"
}
[root@ip-172-31-36-146 wazuh-installation-assistant]# curl -k -u admin:N16+lkpRfVWfWux1Xz4cxgZfXttNrThF https://127.0.0.1:9200/_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role node.roles cluster_manager name
127.0.0.1 39 73 29 0.44 0.49 0.23 dimr data,ingest,master,remote_cluster_client * node-1
[root@ip-172-31-36-146 wazuh-installation-assistant]# bash wazuh-install.sh --offline-installation --wazuh-server wazuh-1
24/10/2024 12:16:49 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
24/10/2024 12:16:49 INFO: Verbose logging redirected to /var/log/wazuh-install.log
24/10/2024 12:16:49 INFO: Checking dependencies for Wazuh installation assistant.
24/10/2024 12:16:52 INFO: Verifying that your system meets the recommended minimum hardware requirements.
24/10/2024 12:16:53 INFO: Checking wazuh-offline.tar.gz file.
24/10/2024 12:16:53 INFO: --- Wazuh server ---
24/10/2024 12:16:53 INFO: Starting the Wazuh manager installation.
24/10/2024 12:18:09 INFO: Wazuh manager installation finished.
24/10/2024 12:18:09 INFO: Wazuh manager vulnerability detection configuration finished.
24/10/2024 12:18:09 INFO: Starting service wazuh-manager.
24/10/2024 12:18:31 INFO: wazuh-manager service started.
24/10/2024 12:18:31 INFO: Checking Wazuh API connection
24/10/2024 12:18:31 INFO: Attempt 1: Checking the Wazuh API to be ready
24/10/2024 12:18:36 INFO: Wazuh API is ready to receive requests.
24/10/2024 12:18:36 INFO: Wazuh API connection successful
24/10/2024 12:18:36 INFO: Starting Filebeat installation.
24/10/2024 12:18:52 INFO: Filebeat installation finished.
24/10/2024 12:18:53 INFO: Filebeat post-install configuration finished.
24/10/2024 12:18:55 INFO: The filebeat.yml file has been updated to use the Filebeat Keystore username and password.
24/10/2024 12:19:24 INFO: Starting service filebeat.
24/10/2024 12:19:25 INFO: filebeat service started.
24/10/2024 12:19:25 INFO: Checking Filebeat connection
24/10/2024 12:19:26 INFO: Filebeat connection successful
24/10/2024 12:19:26 INFO: Installation finished.
[root@ip-172-31-36-146 wazuh-installation-assistant]# bash wazuh-install.sh --offline-installation --wazuh-dashboard dashboard
24/10/2024 12:20:14 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
24/10/2024 12:20:14 INFO: Verbose logging redirected to /var/log/wazuh-install.log
24/10/2024 12:20:14 INFO: Checking dependencies for Wazuh installation assistant.
24/10/2024 12:20:18 INFO: Verifying that your system meets the recommended minimum hardware requirements.
24/10/2024 12:20:18 INFO: Wazuh web interface port will be 443.
24/10/2024 12:20:18 INFO: Checking prerequisites for Offline installation.
24/10/2024 12:20:19 INFO: Checking wazuh-offline.tar.gz file.
24/10/2024 12:20:19 INFO: --- Wazuh dashboard ----
24/10/2024 12:20:20 INFO: Starting Wazuh dashboard installation.
24/10/2024 12:22:31 INFO: Wazuh dashboard installation finished.
24/10/2024 12:22:31 INFO: Wazuh dashboard post-install configuration finished.
24/10/2024 12:22:31 INFO: Starting service wazuh-dashboard.
24/10/2024 12:22:32 INFO: wazuh-dashboard service started.
24/10/2024 12:22:51 INFO: Initializing Wazuh dashboard web application.
24/10/2024 12:22:51 INFO: Wazuh dashboard web application initialized.
24/10/2024 12:22:51 INFO: --- Summary ---
24/10/2024 12:22:51 INFO: You can access the web interface https://:443
User: admin
Password: N16+lkpRfVWfWux1Xz4cxgZfXttNrThF
24/10/2024 12:22:51 INFO: Installation finished.
```
![imagen](https://github.com/user-attachments/assets/28b80357-5d40-4228-b208-598a484a0f8b)
Download and installation process in Ubuntu 22.04:
```shellsession
root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# bash wazuh-install.sh -dw deb -d pre-release
24/10/2024 09:45:52 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
24/10/2024 09:45:52 INFO: Verbose logging redirected to /var/log/wazuh-install.log
24/10/2024 09:46:34 INFO: Verifying that your system meets the recommended minimum hardware requirements.
24/10/2024 09:46:34 INFO: --- Download Packages ---
24/10/2024 09:46:34 INFO: Starting Wazuh packages download.
24/10/2024 09:46:34 INFO: Downloading Wazuh deb packages for x86_64.
24/10/2024 09:46:38 INFO: The manager package was downloaded.
24/10/2024 09:46:38 INFO: The filebeat package was downloaded.
24/10/2024 09:46:42 INFO: The indexer package was downloaded.
24/10/2024 09:46:46 INFO: The dashboard package was downloaded.
24/10/2024 09:46:46 INFO: The packages are in wazuh-offline/wazuh-packages
24/10/2024 09:46:46 INFO: Downloading configuration files and assets.
24/10/2024 09:46:46 INFO: The resource https://packages.wazuh.com/key/GPG-KEY-WAZUH was downloaded.
24/10/2024 09:46:47 INFO: The resource https://packages-dev.wazuh.com/4.10/tpl/wazuh/filebeat/filebeat.yml was downloaded.
24/10/2024 09:46:47 INFO: The resource https://raw.githubusercontent.com/wazuh/wazuh/4.10.0/extensions/elasticsearch/7.x/wazuh-template.json was downloaded.
24/10/2024 09:46:47 INFO: The resource https://packages-dev.wazuh.com/pre-release/filebeat/wazuh-filebeat-0.4.tar.gz was downloaded.
24/10/2024 09:46:47 INFO: The configuration files and assets are in wazuh-offline.tar.gz
24/10/2024 09:47:57 INFO: You can follow the installation guide here https://documentation.wazuh.com/current/deployment-options/offline-installation.html
root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# curl -sO https://packages-dev.wazuh.com/4.10/config.yml
root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# nano config.yml
root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# bash wazuh-install.sh -g
24/10/2024 10:06:19 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
24/10/2024 10:06:19 INFO: Verbose logging redirected to /var/log/wazuh-install.log
24/10/2024 10:07:00 INFO: Verifying that your system meets the recommended minimum hardware requirements.
24/10/2024 10:07:00 INFO: --- Configuration files ---
24/10/2024 10:07:00 INFO: Generating configuration files.
24/10/2024 10:07:00 INFO: Generating the root certificate.
24/10/2024 10:07:01 INFO: Generating Admin certificates.
24/10/2024 10:07:01 INFO: Generating Wazuh indexer certificates.
24/10/2024 10:07:02 INFO: Generating Filebeat certificates.
24/10/2024 10:07:02 INFO: Generating Wazuh dashboard certificates.
24/10/2024 10:07:03 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# ping google.com
PING google.com (142.251.179.138) 56(84) bytes of data.
^C
--- google.com ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2040ms
root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# bash wazuh-install.sh --offline-installation --wazuh-indexer node-1
24/10/2024 10:36:28 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
24/10/2024 10:36:28 INFO: Verbose logging redirected to /var/log/wazuh-install.log
24/10/2024 10:36:28 INFO: Checking dependencies for Wazuh installation assistant.
24/10/2024 10:36:32 INFO: Verifying that your system meets the recommended minimum hardware requirements.
24/10/2024 10:36:34 INFO: Checking prerequisites for Offline installation.
24/10/2024 10:36:36 INFO: Checking wazuh-offline.tar.gz file.
24/10/2024 10:36:49 INFO: --- Wazuh indexer ---
24/10/2024 10:36:49 INFO: Starting Wazuh indexer installation.
24/10/2024 10:37:31 INFO: Wazuh indexer installation finished.
24/10/2024 10:37:31 INFO: Wazuh indexer post-install configuration finished.
24/10/2024 10:37:31 INFO: Starting service wazuh-indexer.
24/10/2024 10:37:57 INFO: wazuh-indexer service started.
24/10/2024 10:37:57 INFO: Initializing Wazuh indexer cluster security settings.
24/10/2024 10:38:00 INFO: Wazuh indexer cluster initialized.
24/10/2024 10:38:00 INFO: Installation finished.
root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# bash wazuh-install.sh --offline-installation --start-cluster
24/10/2024 10:44:21 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
24/10/2024 10:44:21 INFO: Verbose logging redirected to /var/log/wazuh-install.log
24/10/2024 10:44:21 INFO: Checking dependencies for Wazuh installation assistant.
24/10/2024 10:44:26 INFO: Verifying that your system meets the recommended minimum hardware requirements.
24/10/2024 10:44:26 INFO: Checking wazuh-offline.tar.gz file.
24/10/2024 10:44:32 INFO: Wazuh indexer cluster security configuration initialized.
24/10/2024 10:44:45 INFO: Updating the internal users.
24/10/2024 10:44:49 INFO: A backup of the internal users has been saved in the /etc/wazuh-indexer/internalusers-backup folder.
24/10/2024 10:45:09 INFO: Wazuh indexer cluster started.
root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# tar -axf wazuh-install-files.tar wazuh-install-files/wazuh-passwords.txt -O | grep -P "\'admin\'" -A 1
indexer_username: 'admin'
indexer_password: 'PG4T0EIAg1uvn6.Ah5CeEve?lS1WcOjS'
root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# curl -k -u admin:PG4T0EIAg1uvn6.Ah5CeEve?lS1WcOjS https://127.0.0.1:9200
{
"name" : "node-1",
"cluster_name" : "wazuh-indexer-cluster",
"cluster_uuid" : "B_EaNi4PTZSz29CEkA3lFw",
"version" : {
"number" : "7.10.2",
"build_type" : "deb",
"build_hash" : "3b801c7d4cecb2aef1f0277089efbed3e574bdba",
"build_date" : "2024-10-18T12:14:33.047349Z",
"build_snapshot" : false,
"lucene_version" : "9.11.1",
"minimum_wire_compatibility_version" : "7.10.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "The OpenSearch Project: https://opensearch.org/"
}
root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# curl -k -u admin:PG4T0EIAg1uvn6.Ah5CeEve?lS1WcOjS https://127.0.0.1:9200/_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role node.roles cluster_manager name
127.0.0.1 17 78 7 0.05 0.22 0.17 dimr data,ingest,master,remote_cluster_client * node-1
root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# bash wazuh-install.sh --offline-installation --wazuh-server wazuh-1
24/10/2024 10:54:35 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
24/10/2024 10:54:35 INFO: Verbose logging redirected to /var/log/wazuh-install.log
24/10/2024 10:54:35 INFO: Checking dependencies for Wazuh installation assistant.
24/10/2024 10:54:40 INFO: Verifying that your system meets the recommended minimum hardware requirements.
24/10/2024 10:54:41 INFO: Checking prerequisites for Offline installation.
24/10/2024 10:54:43 INFO: Checking wazuh-offline.tar.gz file.
24/10/2024 10:54:43 INFO: --- Wazuh server ---
24/10/2024 10:54:43 INFO: Starting the Wazuh manager installation.
24/10/2024 10:56:25 INFO: Wazuh manager installation finished.
24/10/2024 10:56:25 INFO: Wazuh manager vulnerability detection configuration finished.
24/10/2024 10:56:25 INFO: Starting service wazuh-manager.
24/10/2024 10:56:47 INFO: wazuh-manager service started.
24/10/2024 10:56:47 INFO: Checking Wazuh API connection
24/10/2024 10:56:47 INFO: Attempt 1: Checking the Wazuh API to be ready
24/10/2024 10:56:53 INFO: Wazuh API is ready to receive requests.
24/10/2024 10:56:53 INFO: Wazuh API connection successful
24/10/2024 10:56:53 INFO: Starting Filebeat installation.
24/10/2024 10:57:22 INFO: Filebeat installation finished.
24/10/2024 10:57:23 INFO: Filebeat post-install configuration finished.
24/10/2024 10:57:27 INFO: The filebeat.yml file has been updated to use the Filebeat Keystore username and password.
24/10/2024 10:57:56 INFO: Starting service filebeat.
24/10/2024 10:57:58 INFO: filebeat service started.
24/10/2024 10:57:58 INFO: Checking Filebeat connection
24/10/2024 10:57:58 INFO: Filebeat connection successful
24/10/2024 10:57:58 INFO: Installation finished.
root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# bash wazuh-install.sh --offline-installation --wazuh-dashboard dashboard
24/10/2024 11:45:07 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0
24/10/2024 11:45:07 INFO: Verbose logging redirected to /var/log/wazuh-install.log
24/10/2024 11:45:07 INFO: Checking dependencies for Wazuh installation assistant.
24/10/2024 11:45:11 INFO: Verifying that your system meets the recommended minimum hardware requirements.
24/10/2024 11:45:11 INFO: Wazuh web interface port will be 443.
24/10/2024 11:45:13 INFO: Checking prerequisites for Offline installation.
24/10/2024 11:45:16 INFO: Checking wazuh-offline.tar.gz file.
24/10/2024 11:45:16 INFO: --- Wazuh dashboard ----
24/10/2024 11:45:16 INFO: Starting Wazuh dashboard installation.
24/10/2024 11:46:16 INFO: Wazuh dashboard installation finished.
24/10/2024 11:46:16 INFO: Wazuh dashboard post-install configuration finished.
24/10/2024 11:46:16 INFO: Starting service wazuh-dashboard.
24/10/2024 11:46:16 INFO: wazuh-dashboard service started.
24/10/2024 11:46:41 INFO: Initializing Wazuh dashboard web application.
24/10/2024 11:46:42 INFO: Wazuh dashboard web application initialized.
24/10/2024 11:46:42 INFO: --- Summary ---
24/10/2024 11:46:42 INFO: You can access the web interface https://:443
User: admin
Password: PG4T0EIAg1uvn6.Ah5CeEve?lS1WcOjS
24/10/2024 11:46:42 INFO: Installation finished.
```
![Captura desde 2024-10-24 13-49-00](https://github.com/user-attachments/assets/7b15b9bb-0a09-4774-ae62-75d2e4017ec0)
Related issue
Description
The aim of this PR is to fix the download process of the offline pre-release packages. This has been done by changing the links when the
-d pre-release
option is used in the Wazuh Installation Assistant script.Tests
Download and installation process in Amazon Linux 2023:
```shellsession [root@ip-172-31-36-146 wazuh-installation-assistant]# bash wazuh-install.sh -dw rpm -d pre-release 24/10/2024 11:53:10 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0 24/10/2024 11:53:10 INFO: Verbose logging redirected to /var/log/wazuh-install.log 24/10/2024 11:53:11 INFO: --- Dependencies --- 24/10/2024 11:53:11 INFO: Installing curl. 24/10/2024 11:53:12 INFO: Verifying that your system meets the recommended minimum hardware requirements. 24/10/2024 11:53:12 INFO: --- Download Packages --- 24/10/2024 11:53:12 INFO: Starting Wazuh packages download. 24/10/2024 11:53:12 INFO: Downloading Wazuh rpm packages for x86_64. 24/10/2024 11:53:21 INFO: The manager package was downloaded. 24/10/2024 11:53:23 INFO: The filebeat package was downloaded. 24/10/2024 11:53:41 INFO: The indexer package was downloaded. 24/10/2024 11:53:47 INFO: The dashboard package was downloaded. 24/10/2024 11:53:47 INFO: The packages are in wazuh-offline/wazuh-packages 24/10/2024 11:53:47 INFO: Downloading configuration files and assets. 24/10/2024 11:53:47 INFO: The resource https://packages.wazuh.com/key/GPG-KEY-WAZUH was downloaded. 24/10/2024 11:53:48 INFO: The resource https://packages-dev.wazuh.com/4.10/tpl/wazuh/filebeat/filebeat.yml was downloaded. 24/10/2024 11:53:48 INFO: The resource https://raw.githubusercontent.com/wazuh/wazuh/4.10.0/extensions/elasticsearch/7.x/wazuh-template.json was downloaded. 24/10/2024 11:53:48 INFO: The resource https://packages-dev.wazuh.com/pre-release/filebeat/wazuh-filebeat-0.4.tar.gz was downloaded. 24/10/2024 11:53:48 INFO: The configuration files and assets are in wazuh-offline.tar.gz 24/10/2024 11:55:06 INFO: You can follow the installation guide here https://documentation.wazuh.com/current/deployment-options/offline-installation.html [root@ip-172-31-36-146 wazuh-installation-assistant]# curl -sO https://packages-dev.wazuh.com/4.10/config.yml [root@ip-172-31-36-146 wazuh-installation-assistant]# nano config.yml [root@ip-172-31-36-146 wazuh-installation-assistant]# ./wazuh-install.sh -g 24/10/2024 12:11:51 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0 24/10/2024 12:11:51 INFO: Verbose logging redirected to /var/log/wazuh-install.log 24/10/2024 12:11:52 INFO: Verifying that your system meets the recommended minimum hardware requirements. 24/10/2024 12:11:52 INFO: --- Configuration files --- 24/10/2024 12:11:52 INFO: Generating configuration files. 24/10/2024 12:11:52 INFO: Generating the root certificate. 24/10/2024 12:11:53 INFO: Generating Admin certificates. 24/10/2024 12:11:54 INFO: Generating Wazuh indexer certificates. 24/10/2024 12:11:54 INFO: Generating Filebeat certificates. 24/10/2024 12:11:55 INFO: Generating Wazuh dashboard certificates. 24/10/2024 12:11:55 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation. [root@ip-172-31-36-146 wazuh-installation-assistant]# ping google.com PING google.com (142.251.111.101) 56(84) bytes of data. ^C --- google.com ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2070ms [root@ip-172-31-36-146 wazuh-installation-assistant]# bash wazuh-install.sh --offline-installation --wazuh-indexer node-1 24/10/2024 12:12:44 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0 24/10/2024 12:12:44 INFO: Verbose logging redirected to /var/log/wazuh-install.log 24/10/2024 12:12:44 INFO: Checking dependencies for Wazuh installation assistant. 24/10/2024 12:12:47 INFO: Verifying that your system meets the recommended minimum hardware requirements. 24/10/2024 12:12:47 INFO: Checking prerequisites for Offline installation. 24/10/2024 12:12:47 INFO: Checking wazuh-offline.tar.gz file. 24/10/2024 12:13:01 INFO: --- Wazuh indexer --- 24/10/2024 12:13:01 INFO: Starting Wazuh indexer installation. 24/10/2024 12:13:21 INFO: Wazuh indexer installation finished. 24/10/2024 12:13:21 INFO: Wazuh indexer post-install configuration finished. 24/10/2024 12:13:21 INFO: Starting service wazuh-indexer. 24/10/2024 12:13:50 INFO: wazuh-indexer service started. 24/10/2024 12:13:50 INFO: Initializing Wazuh indexer cluster security settings. 24/10/2024 12:13:51 INFO: Wazuh indexer cluster initialized. 24/10/2024 12:13:51 INFO: Installation finished. [root@ip-172-31-36-146 wazuh-installation-assistant]# bash wazuh-install.sh --offline-installation --start-cluster 24/10/2024 12:14:16 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0 24/10/2024 12:14:16 INFO: Verbose logging redirected to /var/log/wazuh-install.log 24/10/2024 12:14:16 INFO: Checking dependencies for Wazuh installation assistant. 24/10/2024 12:14:19 INFO: Verifying that your system meets the recommended minimum hardware requirements. 24/10/2024 12:14:19 INFO: Checking wazuh-offline.tar.gz file. 24/10/2024 12:14:27 INFO: Wazuh indexer cluster security configuration initialized. 24/10/2024 12:14:33 INFO: Updating the internal users. 24/10/2024 12:14:37 INFO: A backup of the internal users has been saved in the /etc/wazuh-indexer/internalusers-backup folder. 24/10/2024 12:15:01 INFO: Wazuh indexer cluster started. [root@ip-172-31-36-146 wazuh-installation-assistant]# curl -k -u admin:N16+lkpRfVWfWux1Xz4cxgZfXttNrThF https://127.0.0.1:9200 { "name" : "node-1", "cluster_name" : "wazuh-indexer-cluster", "cluster_uuid" : "wD3FC3VSR_-aoUPLDOUV6w", "version" : { "number" : "7.10.2", "build_type" : "rpm", "build_hash" : "3b801c7d4cecb2aef1f0277089efbed3e574bdba", "build_date" : "2024-10-18T12:12:25.529411Z", "build_snapshot" : false, "lucene_version" : "9.11.1", "minimum_wire_compatibility_version" : "7.10.0", "minimum_index_compatibility_version" : "7.0.0" }, "tagline" : "The OpenSearch Project: https://opensearch.org/" } [root@ip-172-31-36-146 wazuh-installation-assistant]# curl -k -u admin:N16+lkpRfVWfWux1Xz4cxgZfXttNrThF https://127.0.0.1:9200/_cat/nodes?v ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role node.roles cluster_manager name 127.0.0.1 39 73 29 0.44 0.49 0.23 dimr data,ingest,master,remote_cluster_client * node-1 [root@ip-172-31-36-146 wazuh-installation-assistant]# bash wazuh-install.sh --offline-installation --wazuh-server wazuh-1 24/10/2024 12:16:49 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0 24/10/2024 12:16:49 INFO: Verbose logging redirected to /var/log/wazuh-install.log 24/10/2024 12:16:49 INFO: Checking dependencies for Wazuh installation assistant. 24/10/2024 12:16:52 INFO: Verifying that your system meets the recommended minimum hardware requirements. 24/10/2024 12:16:53 INFO: Checking wazuh-offline.tar.gz file. 24/10/2024 12:16:53 INFO: --- Wazuh server --- 24/10/2024 12:16:53 INFO: Starting the Wazuh manager installation. 24/10/2024 12:18:09 INFO: Wazuh manager installation finished. 24/10/2024 12:18:09 INFO: Wazuh manager vulnerability detection configuration finished. 24/10/2024 12:18:09 INFO: Starting service wazuh-manager. 24/10/2024 12:18:31 INFO: wazuh-manager service started. 24/10/2024 12:18:31 INFO: Checking Wazuh API connection 24/10/2024 12:18:31 INFO: Attempt 1: Checking the Wazuh API to be ready 24/10/2024 12:18:36 INFO: Wazuh API is ready to receive requests. 24/10/2024 12:18:36 INFO: Wazuh API connection successful 24/10/2024 12:18:36 INFO: Starting Filebeat installation. 24/10/2024 12:18:52 INFO: Filebeat installation finished. 24/10/2024 12:18:53 INFO: Filebeat post-install configuration finished. 24/10/2024 12:18:55 INFO: The filebeat.yml file has been updated to use the Filebeat Keystore username and password. 24/10/2024 12:19:24 INFO: Starting service filebeat. 24/10/2024 12:19:25 INFO: filebeat service started. 24/10/2024 12:19:25 INFO: Checking Filebeat connection 24/10/2024 12:19:26 INFO: Filebeat connection successful 24/10/2024 12:19:26 INFO: Installation finished. [root@ip-172-31-36-146 wazuh-installation-assistant]# bash wazuh-install.sh --offline-installation --wazuh-dashboard dashboard 24/10/2024 12:20:14 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0 24/10/2024 12:20:14 INFO: Verbose logging redirected to /var/log/wazuh-install.log 24/10/2024 12:20:14 INFO: Checking dependencies for Wazuh installation assistant. 24/10/2024 12:20:18 INFO: Verifying that your system meets the recommended minimum hardware requirements. 24/10/2024 12:20:18 INFO: Wazuh web interface port will be 443. 24/10/2024 12:20:18 INFO: Checking prerequisites for Offline installation. 24/10/2024 12:20:19 INFO: Checking wazuh-offline.tar.gz file. 24/10/2024 12:20:19 INFO: --- Wazuh dashboard ---- 24/10/2024 12:20:20 INFO: Starting Wazuh dashboard installation. 24/10/2024 12:22:31 INFO: Wazuh dashboard installation finished. 24/10/2024 12:22:31 INFO: Wazuh dashboard post-install configuration finished. 24/10/2024 12:22:31 INFO: Starting service wazuh-dashboard. 24/10/2024 12:22:32 INFO: wazuh-dashboard service started. 24/10/2024 12:22:51 INFO: Initializing Wazuh dashboard web application. 24/10/2024 12:22:51 INFO: Wazuh dashboard web application initialized. 24/10/2024 12:22:51 INFO: --- Summary --- 24/10/2024 12:22:51 INFO: You can access the web interface https://Download and installation process in Ubuntu 22.04:
```shellsession root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# bash wazuh-install.sh -dw deb -d pre-release 24/10/2024 09:45:52 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0 24/10/2024 09:45:52 INFO: Verbose logging redirected to /var/log/wazuh-install.log 24/10/2024 09:46:34 INFO: Verifying that your system meets the recommended minimum hardware requirements. 24/10/2024 09:46:34 INFO: --- Download Packages --- 24/10/2024 09:46:34 INFO: Starting Wazuh packages download. 24/10/2024 09:46:34 INFO: Downloading Wazuh deb packages for x86_64. 24/10/2024 09:46:38 INFO: The manager package was downloaded. 24/10/2024 09:46:38 INFO: The filebeat package was downloaded. 24/10/2024 09:46:42 INFO: The indexer package was downloaded. 24/10/2024 09:46:46 INFO: The dashboard package was downloaded. 24/10/2024 09:46:46 INFO: The packages are in wazuh-offline/wazuh-packages 24/10/2024 09:46:46 INFO: Downloading configuration files and assets. 24/10/2024 09:46:46 INFO: The resource https://packages.wazuh.com/key/GPG-KEY-WAZUH was downloaded. 24/10/2024 09:46:47 INFO: The resource https://packages-dev.wazuh.com/4.10/tpl/wazuh/filebeat/filebeat.yml was downloaded. 24/10/2024 09:46:47 INFO: The resource https://raw.githubusercontent.com/wazuh/wazuh/4.10.0/extensions/elasticsearch/7.x/wazuh-template.json was downloaded. 24/10/2024 09:46:47 INFO: The resource https://packages-dev.wazuh.com/pre-release/filebeat/wazuh-filebeat-0.4.tar.gz was downloaded. 24/10/2024 09:46:47 INFO: The configuration files and assets are in wazuh-offline.tar.gz 24/10/2024 09:47:57 INFO: You can follow the installation guide here https://documentation.wazuh.com/current/deployment-options/offline-installation.html root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# curl -sO https://packages-dev.wazuh.com/4.10/config.yml root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# nano config.yml root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# bash wazuh-install.sh -g 24/10/2024 10:06:19 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0 24/10/2024 10:06:19 INFO: Verbose logging redirected to /var/log/wazuh-install.log 24/10/2024 10:07:00 INFO: Verifying that your system meets the recommended minimum hardware requirements. 24/10/2024 10:07:00 INFO: --- Configuration files --- 24/10/2024 10:07:00 INFO: Generating configuration files. 24/10/2024 10:07:00 INFO: Generating the root certificate. 24/10/2024 10:07:01 INFO: Generating Admin certificates. 24/10/2024 10:07:01 INFO: Generating Wazuh indexer certificates. 24/10/2024 10:07:02 INFO: Generating Filebeat certificates. 24/10/2024 10:07:02 INFO: Generating Wazuh dashboard certificates. 24/10/2024 10:07:03 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation. root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# ping google.com PING google.com (142.251.179.138) 56(84) bytes of data. ^C --- google.com ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2040ms root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# bash wazuh-install.sh --offline-installation --wazuh-indexer node-1 24/10/2024 10:36:28 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0 24/10/2024 10:36:28 INFO: Verbose logging redirected to /var/log/wazuh-install.log 24/10/2024 10:36:28 INFO: Checking dependencies for Wazuh installation assistant. 24/10/2024 10:36:32 INFO: Verifying that your system meets the recommended minimum hardware requirements. 24/10/2024 10:36:34 INFO: Checking prerequisites for Offline installation. 24/10/2024 10:36:36 INFO: Checking wazuh-offline.tar.gz file. 24/10/2024 10:36:49 INFO: --- Wazuh indexer --- 24/10/2024 10:36:49 INFO: Starting Wazuh indexer installation. 24/10/2024 10:37:31 INFO: Wazuh indexer installation finished. 24/10/2024 10:37:31 INFO: Wazuh indexer post-install configuration finished. 24/10/2024 10:37:31 INFO: Starting service wazuh-indexer. 24/10/2024 10:37:57 INFO: wazuh-indexer service started. 24/10/2024 10:37:57 INFO: Initializing Wazuh indexer cluster security settings. 24/10/2024 10:38:00 INFO: Wazuh indexer cluster initialized. 24/10/2024 10:38:00 INFO: Installation finished. root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# bash wazuh-install.sh --offline-installation --start-cluster 24/10/2024 10:44:21 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0 24/10/2024 10:44:21 INFO: Verbose logging redirected to /var/log/wazuh-install.log 24/10/2024 10:44:21 INFO: Checking dependencies for Wazuh installation assistant. 24/10/2024 10:44:26 INFO: Verifying that your system meets the recommended minimum hardware requirements. 24/10/2024 10:44:26 INFO: Checking wazuh-offline.tar.gz file. 24/10/2024 10:44:32 INFO: Wazuh indexer cluster security configuration initialized. 24/10/2024 10:44:45 INFO: Updating the internal users. 24/10/2024 10:44:49 INFO: A backup of the internal users has been saved in the /etc/wazuh-indexer/internalusers-backup folder. 24/10/2024 10:45:09 INFO: Wazuh indexer cluster started. root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# tar -axf wazuh-install-files.tar wazuh-install-files/wazuh-passwords.txt -O | grep -P "\'admin\'" -A 1 indexer_username: 'admin' indexer_password: 'PG4T0EIAg1uvn6.Ah5CeEve?lS1WcOjS' root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# curl -k -u admin:PG4T0EIAg1uvn6.Ah5CeEve?lS1WcOjS https://127.0.0.1:9200 { "name" : "node-1", "cluster_name" : "wazuh-indexer-cluster", "cluster_uuid" : "B_EaNi4PTZSz29CEkA3lFw", "version" : { "number" : "7.10.2", "build_type" : "deb", "build_hash" : "3b801c7d4cecb2aef1f0277089efbed3e574bdba", "build_date" : "2024-10-18T12:14:33.047349Z", "build_snapshot" : false, "lucene_version" : "9.11.1", "minimum_wire_compatibility_version" : "7.10.0", "minimum_index_compatibility_version" : "7.0.0" }, "tagline" : "The OpenSearch Project: https://opensearch.org/" } root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# curl -k -u admin:PG4T0EIAg1uvn6.Ah5CeEve?lS1WcOjS https://127.0.0.1:9200/_cat/nodes?v ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role node.roles cluster_manager name 127.0.0.1 17 78 7 0.05 0.22 0.17 dimr data,ingest,master,remote_cluster_client * node-1 root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# bash wazuh-install.sh --offline-installation --wazuh-server wazuh-1 24/10/2024 10:54:35 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0 24/10/2024 10:54:35 INFO: Verbose logging redirected to /var/log/wazuh-install.log 24/10/2024 10:54:35 INFO: Checking dependencies for Wazuh installation assistant. 24/10/2024 10:54:40 INFO: Verifying that your system meets the recommended minimum hardware requirements. 24/10/2024 10:54:41 INFO: Checking prerequisites for Offline installation. 24/10/2024 10:54:43 INFO: Checking wazuh-offline.tar.gz file. 24/10/2024 10:54:43 INFO: --- Wazuh server --- 24/10/2024 10:54:43 INFO: Starting the Wazuh manager installation. 24/10/2024 10:56:25 INFO: Wazuh manager installation finished. 24/10/2024 10:56:25 INFO: Wazuh manager vulnerability detection configuration finished. 24/10/2024 10:56:25 INFO: Starting service wazuh-manager. 24/10/2024 10:56:47 INFO: wazuh-manager service started. 24/10/2024 10:56:47 INFO: Checking Wazuh API connection 24/10/2024 10:56:47 INFO: Attempt 1: Checking the Wazuh API to be ready 24/10/2024 10:56:53 INFO: Wazuh API is ready to receive requests. 24/10/2024 10:56:53 INFO: Wazuh API connection successful 24/10/2024 10:56:53 INFO: Starting Filebeat installation. 24/10/2024 10:57:22 INFO: Filebeat installation finished. 24/10/2024 10:57:23 INFO: Filebeat post-install configuration finished. 24/10/2024 10:57:27 INFO: The filebeat.yml file has been updated to use the Filebeat Keystore username and password. 24/10/2024 10:57:56 INFO: Starting service filebeat. 24/10/2024 10:57:58 INFO: filebeat service started. 24/10/2024 10:57:58 INFO: Checking Filebeat connection 24/10/2024 10:57:58 INFO: Filebeat connection successful 24/10/2024 10:57:58 INFO: Installation finished. root@ip-172-31-32-78:/home/ubuntu/wazuh-installation-assistant# bash wazuh-install.sh --offline-installation --wazuh-dashboard dashboard 24/10/2024 11:45:07 INFO: Starting Wazuh installation assistant. Wazuh version: 4.10.0 24/10/2024 11:45:07 INFO: Verbose logging redirected to /var/log/wazuh-install.log 24/10/2024 11:45:07 INFO: Checking dependencies for Wazuh installation assistant. 24/10/2024 11:45:11 INFO: Verifying that your system meets the recommended minimum hardware requirements. 24/10/2024 11:45:11 INFO: Wazuh web interface port will be 443. 24/10/2024 11:45:13 INFO: Checking prerequisites for Offline installation. 24/10/2024 11:45:16 INFO: Checking wazuh-offline.tar.gz file. 24/10/2024 11:45:16 INFO: --- Wazuh dashboard ---- 24/10/2024 11:45:16 INFO: Starting Wazuh dashboard installation. 24/10/2024 11:46:16 INFO: Wazuh dashboard installation finished. 24/10/2024 11:46:16 INFO: Wazuh dashboard post-install configuration finished. 24/10/2024 11:46:16 INFO: Starting service wazuh-dashboard. 24/10/2024 11:46:16 INFO: wazuh-dashboard service started. 24/10/2024 11:46:41 INFO: Initializing Wazuh dashboard web application. 24/10/2024 11:46:42 INFO: Wazuh dashboard web application initialized. 24/10/2024 11:46:42 INFO: --- Summary --- 24/10/2024 11:46:42 INFO: You can access the web interface https://