Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Wazuh indexer to OpenSearch 2.10.0 #2562

Merged
merged 7 commits into from
Nov 2, 2023

Conversation

rauldpm
Copy link
Member

@rauldpm rauldpm commented Oct 26, 2023

Related issue
Closes #2520

Description

This PR bumps the Wazuh indexer to OpenSearch 2.10.0

Logs example

RPM WIA
[root@centos7 unattended_installer]# bash wazuh-install.sh -a
26/10/2023 17:52:24 INFO: Starting Wazuh installation assistant. Wazuh version: 4.8.0
26/10/2023 17:52:24 INFO: Verbose logging redirected to /var/log/wazuh-install.log
26/10/2023 17:52:26 INFO: --- Dependencies ---
26/10/2023 17:52:26 INFO: Installing lsof.
26/10/2023 17:52:30 INFO: Verifying that your system meets the recommended minimum hardware requirements.
26/10/2023 17:52:30 INFO: Wazuh web interface port will be 443.
26/10/2023 17:52:31 INFO: Wazuh development repository added.
26/10/2023 17:52:31 INFO: --- Configuration files ---
26/10/2023 17:52:31 INFO: Generating configuration files.
26/10/2023 17:52:32 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
26/10/2023 17:52:32 INFO: --- Wazuh indexer ---
26/10/2023 17:52:32 INFO: Starting Wazuh indexer installation.
26/10/2023 17:53:42 INFO: Wazuh indexer installation finished.
26/10/2023 17:53:42 INFO: Wazuh indexer post-install configuration finished.
26/10/2023 17:53:42 INFO: Starting service wazuh-indexer.
26/10/2023 17:53:49 INFO: wazuh-indexer service started.
26/10/2023 17:53:49 INFO: Initializing Wazuh indexer cluster security settings.
26/10/2023 17:53:59 INFO: Wazuh indexer cluster initialized.
26/10/2023 17:53:59 INFO: --- Wazuh server ---
26/10/2023 17:53:59 INFO: Starting the Wazuh manager installation.
26/10/2023 17:54:28 INFO: Wazuh manager installation finished.
26/10/2023 17:54:28 INFO: Starting service wazuh-manager.
26/10/2023 17:54:40 INFO: wazuh-manager service started.
26/10/2023 17:54:40 INFO: Starting Filebeat installation.
26/10/2023 17:54:47 INFO: Filebeat installation finished.
26/10/2023 17:54:48 INFO: Filebeat post-install configuration finished.
26/10/2023 17:54:48 INFO: Starting service filebeat.
26/10/2023 17:54:48 INFO: filebeat service started.
26/10/2023 17:54:48 INFO: --- Wazuh dashboard ---
26/10/2023 17:54:49 INFO: Installing chrome.
26/10/2023 17:55:09 INFO: --- Dependencies ---
26/10/2023 17:55:09 INFO: Installing xorg-x11-fonts-100dpi.
26/10/2023 17:55:11 INFO: Installing xorg-x11-fonts-75dpi.
26/10/2023 17:55:12 INFO: Installing xorg-x11-utils.
26/10/2023 17:55:13 INFO: Installing xorg-x11-fonts-cyrillic.
26/10/2023 17:55:14 INFO: Installing xorg-x11-fonts-Type1.
26/10/2023 17:55:15 INFO: Installing xorg-x11-fonts-misc.
26/10/2023 17:55:18 INFO: Starting Wazuh dashboard installation.
26/10/2023 17:56:04 INFO: Wazuh dashboard installation finished.
26/10/2023 17:56:04 INFO: Wazuh dashboard post-install configuration finished.
26/10/2023 17:56:04 INFO: Starting service wazuh-dashboard.
26/10/2023 17:56:04 INFO: wazuh-dashboard service started.
26/10/2023 17:56:06 INFO: Updating the internal users.
26/10/2023 17:56:07 INFO: A backup of the internal users has been saved in the /etc/wazuh-indexer/internalusers-backup folder.
26/10/2023 17:56:20 INFO: Initializing Wazuh dashboard web application.
26/10/2023 17:56:21 INFO: Wazuh dashboard web application initialized.
26/10/2023 17:56:21 INFO: --- Summary ---
26/10/2023 17:56:21 INFO: You can access the web interface https://<wazuh-dashboard-ip>:443
   User: admin
   Password: Q0ehfBMTM0CYZ.*f6xHqAiIDC0kENxnv
26/10/2023 17:56:21 INFO: Installation finished.
[root@centos7 unattended_installer]# hostname -I
10.0.2.15 192.168.56.4 
[root@centos7 unattended_installer]# curl -k -u admin:Q0ehfBMTM0CYZ.*f6xHqAiIDC0kENxnv https://localhost:9200/_cluster/health?pretty
{
"cluster_name" : "wazuh-cluster",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"discovered_master" : true,
"discovered_cluster_manager" : true,
"active_primary_shards" : 10,
"active_shards" : 10,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0
}

1

2

DEB WIA
root@debian11:/home/vagrant/wazuh-packages/unattended_installer# bash wazuh-install.sh -a -i
26/10/2023 19:40:31 INFO: Starting Wazuh installation assistant. Wazuh version: 4.8.0
26/10/2023 19:40:31 INFO: Verbose logging redirected to /var/log/wazuh-install.log
26/10/2023 19:40:35 WARNING: Hardware and system checks ignored.
26/10/2023 19:40:35 INFO: Wazuh web interface port will be 443.
26/10/2023 19:40:40 INFO: Wazuh development repository added.
26/10/2023 19:40:40 INFO: --- Configuration files ---
26/10/2023 19:40:40 INFO: Generating configuration files.
26/10/2023 19:40:40 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
26/10/2023 19:40:40 INFO: --- Wazuh indexer ---
26/10/2023 19:40:40 INFO: Starting Wazuh indexer installation.
26/10/2023 19:41:18 INFO: Wazuh indexer installation finished.
26/10/2023 19:41:18 INFO: Wazuh indexer post-install configuration finished.
26/10/2023 19:41:18 INFO: Starting service wazuh-indexer.
26/10/2023 19:41:33 INFO: wazuh-indexer service started.
26/10/2023 19:41:33 INFO: Initializing Wazuh indexer cluster security settings.
26/10/2023 19:41:44 INFO: Wazuh indexer cluster initialized.
26/10/2023 19:41:44 INFO: --- Wazuh server ---
26/10/2023 19:41:44 INFO: Starting the Wazuh manager installation.
26/10/2023 19:42:11 INFO: Wazuh manager installation finished.
26/10/2023 19:42:11 INFO: Starting service wazuh-manager.
26/10/2023 19:42:25 INFO: wazuh-manager service started.
26/10/2023 19:42:25 INFO: Starting Filebeat installation.
26/10/2023 19:42:27 INFO: Filebeat installation finished.
26/10/2023 19:42:29 INFO: Filebeat post-install configuration finished.
26/10/2023 19:42:29 INFO: Starting service filebeat.
26/10/2023 19:42:29 INFO: filebeat service started.
26/10/2023 19:42:29 INFO: --- Wazuh dashboard ---
26/10/2023 19:42:30 INFO: --- Dependencies ----
26/10/2023 19:42:30 INFO: Installing chromium-browser.
26/10/2023 19:42:30 WARNING: Cannot install optional dependency: chromium-browser.
26/10/2023 19:42:30 INFO: Installing libnss3-dev.
26/10/2023 19:42:30 WARNING: Cannot install optional dependency: libnss3-dev.
26/10/2023 19:42:30 INFO: Installing fonts-liberation.
26/10/2023 19:42:30 WARNING: Cannot install optional dependency: fonts-liberation.
26/10/2023 19:42:30 WARNING: Wazuh dashboard dependencies skipped. PDF report generation may not work.
26/10/2023 19:42:30 INFO: Starting Wazuh dashboard installation.
26/10/2023 19:43:12 INFO: Wazuh dashboard installation finished.
26/10/2023 19:43:12 INFO: Wazuh dashboard post-install configuration finished.
26/10/2023 19:43:12 INFO: Starting service wazuh-dashboard.
26/10/2023 19:43:12 INFO: wazuh-dashboard service started.
26/10/2023 19:43:13 INFO: Updating the internal users.
26/10/2023 19:43:17 INFO: A backup of the internal users has been saved in the /etc/wazuh-indexer/internalusers-backup folder.
26/10/2023 19:43:45 INFO: Initializing Wazuh dashboard web application.
26/10/2023 19:43:48 INFO: Wazuh dashboard web application initialized.
26/10/2023 19:43:48 INFO: --- Summary ---
26/10/2023 19:43:48 INFO: You can access the web interface https://<wazuh-dashboard-ip>:443
   User: admin
   Password: +C.i63rfi1DRpCH2eXULiC5HNVpvwUqt
26/10/2023 19:43:48 INFO: Installation finished.

root@debian11:/home/vagrant/wazuh-packages/unattended_installer# hostname -I
10.0.2.15 192.168.56.44 

root@debian11:/home/vagrant/wazuh-packages/unattended_installer# curl -k -u admin:+C.i63rfi1DRpCH2eXULiC5HNVpvwUqt https://localhost:9200/_cluster/health?pretty
{
"cluster_name" : "wazuh-cluster",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"discovered_master" : true,
"discovered_cluster_manager" : true,
"active_primary_shards" : 9,
"active_shards" : 9,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0
}

3

4

Tests

  • Build the package in any supported platform
    • Linux
  • Package installation
  • Package upgrade
  • Package remove
  • Tests for Linux RPM
    • Build the package for x86_64
    • %files section is correctly updated if necessary
  • Tests for Linux deb
    • Build the package for x86_64
    • Check file permissions after installing the package

@rauldpm rauldpm self-assigned this Oct 26, 2023
@rauldpm rauldpm linked an issue Oct 26, 2023 that may be closed by this pull request
13 tasks
@davidjiglesias davidjiglesias merged commit 222ff2d into 4.8.0 Nov 2, 2023
6 checks passed
@davidjiglesias davidjiglesias deleted the enhancement/2520-bump-indexer branch November 2, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump Wazuh indexer to OpenSearch 2.10.0
3 participants