Closed Tostti closed 1 month ago
Operating system: CentOS 8 From: Wazuh v4.7.5 To: Wazuh v4.9.0
Operating system: RHEL 9 From: Wazuh v4.7.5 To: Wazuh 4.9.0
Operating system: RHEL 9 From: Wazuh v4.8.2 To: Wazuh 4.9.0
Vagrant Ubuntu 20.04
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-20.04"
config.vm.synced_folder ".", "/vagrant", group:"root", owner:"root", mount_options: ["dmode=777,fmode=777"]
config.vm.network "private_network", ip: "********"
config.vm.define "10-ubuntu-20.04"
config.vm.provider "virtualbox" do |vb|
vb.memory = "8192"
vb.cpus = "4"
vb.name = "opensearch-10-ubuntu-20.04"
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate//vagrant", "1"]
#vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
end
config.vm.hostname = "opensearch-10-ubuntu-20.04"
end
vagrant@opensearch-10-ubuntu-20:~$ sudo su
root@opensearch-10-ubuntu-20:/home/vagrant# curl -sO https://packages.wazuh.com/4.7/wazuh-install.sh && sudo bash ./wazuh-install.sh -a
06/09/2024 16:24:45 INFO: Starting Wazuh installation assistant. Wazuh version: 4.7.5
06/09/2024 16:24:45 INFO: Verbose logging redirected to /var/log/wazuh-install.log
06/09/2024 16:24:58 INFO: Wazuh web interface port will be 443.
06/09/2024 16:25:01 INFO: --- Dependencies ----
06/09/2024 16:25:01 INFO: Installing apt-transport-https.
06/09/2024 16:25:05 INFO: Wazuh repository added.
06/09/2024 16:25:05 INFO: --- Configuration files ---
06/09/2024 16:25:05 INFO: Generating configuration files.
06/09/2024 16:25:06 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
06/09/2024 16:25:06 INFO: --- Wazuh indexer ---
06/09/2024 16:25:06 INFO: Starting Wazuh indexer installation.
06/09/2024 16:26:31 INFO: Wazuh indexer installation finished.
06/09/2024 16:26:31 INFO: Wazuh indexer post-install configuration finished.
06/09/2024 16:26:31 INFO: Starting service wazuh-indexer.
06/09/2024 16:26:48 INFO: wazuh-indexer service started.
06/09/2024 16:26:48 INFO: Initializing Wazuh indexer cluster security settings.
06/09/2024 16:26:59 INFO: Wazuh indexer cluster initialized.
06/09/2024 16:26:59 INFO: --- Wazuh server ---
06/09/2024 16:26:59 INFO: Starting the Wazuh manager installation.
06/09/2024 16:28:30 INFO: Wazuh manager installation finished.
06/09/2024 16:28:30 INFO: Starting service wazuh-manager.
06/09/2024 16:28:50 INFO: wazuh-manager service started.
06/09/2024 16:28:50 INFO: Starting Filebeat installation.
06/09/2024 16:28:55 INFO: Filebeat installation finished.
06/09/2024 16:28:56 INFO: Filebeat post-install configuration finished.
06/09/2024 16:28:56 INFO: Starting service filebeat.
06/09/2024 16:28:57 INFO: filebeat service started.
06/09/2024 16:28:57 INFO: --- Wazuh dashboard ---
06/09/2024 16:28:57 INFO: Starting Wazuh dashboard installation.
06/09/2024 16:30:35 INFO: Wazuh dashboard installation finished.
06/09/2024 16:30:35 INFO: Wazuh dashboard post-install configuration finished.
06/09/2024 16:30:35 INFO: Starting service wazuh-dashboard.
06/09/2024 16:30:36 INFO: wazuh-dashboard service started.
06/09/2024 16:30:55 INFO: Initializing Wazuh dashboard web application.
06/09/2024 16:30:55 INFO: Wazuh dashboard web application initialized.
06/09/2024 16:30:55 INFO: --- Summary ---
06/09/2024 16:30:55 INFO: You can access the web interface https://<wazuh-dashboard-ip>:443
User: admin
Password: *
06/09/2024 16:30:55 INFO: Installation finished.
root@opensearch-10-ubuntu-20:/home/vagrant# systemctl stop filebeat
root@opensearch-10-ubuntu-20:/home/vagrant# systemctl stop wazuh-dashboard
root@opensearch-10-ubuntu-20:/home/vagrant# curl -X DELETE "https://localhost:9200/_index_template/ss4o_*_template" -u admin:* -k
{"acknowledged":true}root@opensearch-10-ubuntu-20:/home/vagrant# curl -X PUT "https://localhost:9200/_cluster/settings" -u admin:* -k -H 'Content-Type: application/json' -d'
> {
> "persistent": {
> "cluster.routing.allocation.enable": "primaries"
> }
> }
> '
{"acknowledged":true,"persistent":{"cluster":{"routing":{"allocation":{"enable":"primaries"}}}},"transient":{}}root@opensearch-10-
root@opensearch-10-ubuntu-20:/home/vagrant# curl -X POST "https://localhost:9200/_flush/synced" -u admin:* -k
{"_shards":{"total":8,"successful":8,"failed":0}}root@opensearch-10-ubuntu-20:/home/vagrant# systemctl stop wazuh-indexer
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# apt-get install wazuh-indexer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
wazuh-indexer
1 upgraded, 0 newly installed, 0 to remove and 128 not upgraded.
Need to get 850 MB of archives.
After this operation, 107 MB of additional disk space will be used.
Get:1 https://packages-dev.wazuh.com/pre-release/apt unstable/main amd64 wazuh-indexer amd64 4.9.0-1 [850 MB]
Fetched 850 MB in 36s (23.4 MB/s)
(Reading database ... 162831 files and directories currently installed.)
Preparing to unpack .../wazuh-indexer_4.9.0-1_amd64.deb ...
Running Wazuh Indexer Pre-Installation Script
Unpacking wazuh-indexer (4.9.0-1) over (4.7.5-1) ...
Setting up wazuh-indexer (4.9.0-1) ...
Installing new version of config file /etc/default/wazuh-indexer ...
Configuration file '/etc/init.d/wazuh-indexer'
==> Deleted (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** wazuh-indexer (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/init.d/wazuh-indexer ...
Configuration file '/etc/wazuh-indexer/jvm.options'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** jvm.options (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/wazuh-indexer/jvm.options ...
Installing new version of config file /etc/wazuh-indexer/log4j2.properties ...
Installing new version of config file /etc/wazuh-indexer/opensearch-notifications-core/notifications-core.yml ...
Installing new version of config file /etc/wazuh-indexer/opensearch-performance-analyzer/opensearch_security.policy ...
Installing new version of config file /etc/wazuh-indexer/opensearch-performance-analyzer/rca.conf ...
Installing new version of config file /etc/wazuh-indexer/opensearch-performance-analyzer/rca_cluster_manager.conf ...
Installing new version of config file /etc/wazuh-indexer/opensearch-performance-analyzer/rca_idle_cluster_manager.conf ...
Installing new version of config file /etc/wazuh-indexer/opensearch-performance-analyzer/supervisord.conf ...
Configuration file '/etc/wazuh-indexer/opensearch-security/internal_users.yml'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** internal_users.yml (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/wazuh-indexer/opensearch-security/internal_users.yml ...
Installing new version of config file /etc/wazuh-indexer/opensearch-security/roles.yml ...
Installing new version of config file /etc/wazuh-indexer/opensearch-security/roles_mapping.yml ...
Running Wazuh Indexer Post-Installation Script
### NOT starting on installation, please execute the following statements to configure wazuh-indexer service to start automatically using systemd
sudo systemctl daemon-reload
sudo systemctl enable wazuh-indexer.service
### You can start wazuh-indexer service by executing
sudo systemctl start wazuh-indexer.service
Processing triggers for systemd (245.4-4ubuntu3.22) ...
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# systemctl daemon-reload
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# systemctl enable wazuh-indexer
Synchronizing state of wazuh-indexer.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable wazuh-indexer
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# systemctl start wazuh-indexer
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# curl -k -u admin:* https://localhost: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 37 83 15 0.49 0.25 0.30 dimr cluster_manager,data,ingest,remote_cluster_client * node-1
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# curl -X PUT "https://localhost:9200/_cluster/settings" -u admin:* -k -H 'Content-Type: application/json' -d'
> {
> "persistent": {
> "cluster.routing.allocation.enable": "all"
> }
> }
> '
{"acknowledged":true,"persistent":{"cluster":{"routing":{"allocation":{"enable":"all"}}}},"transient":{}}root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d#
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# apt-get install wazuh-manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
expect
The following packages will be upgraded:
wazuh-manager
1 upgraded, 0 newly installed, 0 to remove and 127 not upgraded.
Need to get 322 MB of archives.
After this operation, 260 MB of additional disk space will be used.
Get:1 https://packages-dev.wazuh.com/pre-release/apt unstable/main amd64 wazuh-manager amd64 4.9.0-1 [322 MB]
Fetched 322 MB in 16s (20.2 MB/s)
(Reading database ... 162890 files and directories currently installed.)
Preparing to unpack .../wazuh-manager_4.9.0-1_amd64.deb ...
Unpacking wazuh-manager (4.9.0-1) over (4.7.5-1) ...
Setting up wazuh-manager (4.9.0-1) ...
Processing triggers for systemd (245.4-4ubuntu3.22) ...
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# curl -s https://packages.wazuh.com/4.x/filebeat/wazuh-filebeat-0.4.tar.gz | sudo tar -xvz -C /usr/share/filebeat/module
wazuh/
wazuh/_meta/
wazuh/_meta/docs.asciidoc
wazuh/_meta/fields.yml
wazuh/_meta/config.yml
wazuh/alerts/
wazuh/alerts/config/
wazuh/alerts/config/alerts.yml
wazuh/alerts/manifest.yml
wazuh/alerts/ingest/
wazuh/alerts/ingest/pipeline.json
wazuh/module.yml
wazuh/archives/
wazuh/archives/config/
wazuh/archives/config/archives.yml
wazuh/archives/manifest.yml
wazuh/archives/ingest/
wazuh/archives/ingest/pipeline.json
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# curl -so /etc/filebeat/wazuh-template.json https://raw.githubusercontent.com/wazuh/wazuh/v4.9.0/extensions/elasticsearch/7.x/wazuh-template.json
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# chmod go+r /etc/filebeat/wazuh-template.json
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# systemctl daemon-reload
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# systemctl enable filebeat
Synchronizing state of filebeat.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable filebeat
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# systemctl start filebeat
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# filebeat setup --pipelines
Loaded Ingest pipelines
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# filebeat setup --index-management -E output.logstash.enabled=false
ILM policy and write alias loading not enabled.
Index setup finished.
root@opensearch-10-ubuntu-20:/etc/apt/sources.list.d# apt-get install wazuh-dashboard
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
wazuh-dashboard
1 upgraded, 0 newly installed, 0 to remove and 126 not upgraded.
Need to get 166 MB of archives.
After this operation, 41.2 MB disk space will be freed.
Get:1 https://packages-dev.wazuh.com/pre-release/apt unstable/main amd64 wazuh-dashboard amd64 4.9.0-2 [166 MB]
Fetched 166 MB in 9s (18.0 MB/s)
(Reading database ... 165523 files and directories currently installed.)
Preparing to unpack .../wazuh-dashboard_4.9.0-2_amd64.deb ...
Unpacking wazuh-dashboard (4.9.0-2) over (4.7.5-1) ...
Setting up wazuh-dashboard (4.9.0-2) ...
Installing new version of config file /etc/default/wazuh-dashboard ...
Installing new version of config file /etc/systemd/system/wazuh-dashboard ...
Installing new version of config file /etc/systemd/system/wazuh-dashboard.service ...
Installing new version of config file /etc/wazuh-dashboard/node.options ...
Configuration file '/etc/wazuh-dashboard/opensearch_dashboards.yml'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** opensearch_dashboards.yml (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/wazuh-dashboard/opensearch_dashboards.yml ...
Operating system: Ubuntu 22.04 From: Wazuh v4.8.0 To: Wazuh v4.9.0
[root@wazuh-server wazuh-user]# rpm -qa | grep wazuh
wazuh-indexer-4.9.0-1.x86_64
wazuh-manager-4.9.0-1.x86_64
wazuh-dashboard-4.9.0-2.x86_64
[root@wazuh-server wazuh-user]# cat /etc/wazuh-dashboard/opensearch_dashboards.yml
server.host: 0.0.0.0
opensearch.hosts: https://127.0.0.1:9200
server.port: 443
opensearch.ssl.verificationMode: certificate
# opensearch.username: kibanaserver
# opensearch.password: kibanaserver
opensearch.requestHeadersAllowlist: ["securitytenant","Authorization"]
opensearch_security.multitenancy.enabled: false
opensearch_security.readonly_mode.roles: ["kibana_read_only"]
server.ssl.enabled: true
server.ssl.key: "/etc/wazuh-dashboard/certs/wazuh-dashboard-key.pem"
server.ssl.certificate: "/etc/wazuh-dashboard/certs/wazuh-dashboard.pem"
opensearch.ssl.certificateAuthorities: ["/etc/wazuh-dashboard/certs/root-ca.pem"]
uiSettings.overrides.defaultRoute: /app/wz-home
opensearch_security.cookie.secure: true
[root@wazuh-server wazuh-user]# cat /etc/default/wazuh-dashboard
user="wazuh-dashboard"
group="wazuh-dashboard"
chroot="/"
chdir="/"
nice=""
KILL_ON_STOP_TIMEOUT=0
OSD_PATH_CONF="/etc/wazuh-dashboard"
As the package has been widely tested and released, we can conclude the testing
Description
After an issue was found after upgrading environments to 4.9.0, a new 4.9.0-2 package was generated . We need to test all the packages, upgrading from 4.7 and from 4.8 to make sure that there are no errors