AS you can see here :
27/12/2022 10:12:39 INFO: Starting Wazuh installation assistant. Wazuh version: 4.3.10
27/12/2022 10:12:39 INFO: Verbose logging redirected to /var/log/wazuh-install.log
27/12/2022 10:12:46 INFO: Wazuh repository added.
27/12/2022 10:12:46 INFO: --- Wazuh indexer ---
27/12/2022 10:12:46 INFO: Starting Wazuh indexer installation.
27/12/2022 10:13:24 INFO: Wazuh indexer installation finished.
27/12/2022 10:13:24 INFO: Wazuh indexer post-install configuration finished.
27/12/2022 10:13:24 INFO: Starting service wazuh-indexer.
27/12/2022 10:13:40 ERROR: wazuh-indexer could not be started.
27/12/2022 10:13:40 INFO: --- Removing existing Wazuh installation ---
27/12/2022 10:13:40 INFO: Removing Wazuh indexer.
27/12/2022 10:13:44 INFO: Wazuh indexer removed.
27/12/2022 10:13:45 INFO: Installation cleaned. Check the /var/log/wazuh-install.log file to learn more about the issue.
After the error, the script remove wazuh-indexer and i have 0 log for this installation except the file
wazuh-install.log
Here the content of wazuh-install.log:
Dec 27 10:13:26 HOST01 systemd[1]: Starting Wazuh-indexer...
Dec 27 10:13:37 HOST01 systemd-entrypoint[53659]: WARNING: An illegal reflective access operation has occurred
Dec 27 10:13:37 HOST01 systemd-entrypoint[53659]: WARNING: Illegal reflective access by io.protostuff.runtime.PolymorphicThrowableSchema (file:/usr/share/wazuh-indexer/plugins/opensearch-anomaly-detection/protostuff-runtime-1.7.4.jar) to field java.lang.Throwable.cause
Dec 27 10:13:37 HOST01 systemd-entrypoint[53659]: WARNING: Please consider reporting this to the maintainers of io.protostuff.runtime.PolymorphicThrowableSchema
Dec 27 10:13:37 HOST01 systemd-entrypoint[53659]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
Dec 27 10:13:37 HOST01 systemd-entrypoint[53659]: WARNING: All illegal access operations will be denied in a future release
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: ERROR: [1] bootstrap checks failed
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: [1]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: ERROR: OpenSearch did not exit normally - check the logs at /var/log/wazuh-indexer/wazuh-indexer-cluster.log
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: fatal error in thread [Thread-3], exiting
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: at org.opensearch.systemd.Libsystemd.lambda$static$0(Libsystemd.java:47)
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: at java.base/java.security.AccessController.doPrivileged(AccessController.java:312)
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: at org.opensearch.systemd.Libsystemd.<clinit>(Libsystemd.java:46)
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: at org.opensearch.systemd.SystemdPlugin.sd_notify(SystemdPlugin.java:137)
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: at org.opensearch.systemd.SystemdPlugin.close(SystemdPlugin.java:163)
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: at org.opensearch.core.internal.io.IOUtils.close(IOUtils.java:87)
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: at org.opensearch.core.internal.io.IOUtils.close(IOUtils.java:129)
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: at org.opensearch.core.internal.io.IOUtils.close(IOUtils.java:112)
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: at org.opensearch.node.Node.close(Node.java:1277)
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: at org.opensearch.core.internal.io.IOUtils.close(IOUtils.java:87)
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: at org.opensearch.core.internal.io.IOUtils.close(IOUtils.java:129)
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: at org.opensearch.core.internal.io.IOUtils.close(IOUtils.java:79)
Dec 27 10:13:38 HOST01 systemd-entrypoint[53659]: at org.opensearch.bootstrap.Bootstrap$4.run(Bootstrap.java:206)
Dec 27 10:13:40 HOST01 systemd[1]: wazuh-indexer.service: Main process exited, code=exited, status=1/FAILURE
Dec 27 10:13:40 HOST01 systemd[1]: wazuh-indexer.service: Failed with result 'exit-code'.
Dec 27 10:13:40 HOST01 systemd[1]: Failed to start Wazuh-indexer.
Dec 27 10:13:40 HOST01 systemd[1]: wazuh-indexer.service: Consumed 48.950s CPU time.
27/12/2022 10:13:40 INFO: --- Removing existing Wazuh installation ---
27/12/2022 10:13:40 INFO: Removing Wazuh indexer.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
wazuh-indexer*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 639 MB disk space will be freed.
(Reading database ... 85129 files and directories currently installed.)
Removing wazuh-indexer (4.3.10-1) ...
Stopping wazuh-indexer service... OK
(Reading database ... 84197 files and directories currently installed.)
Purging configuration files for wazuh-indexer (4.3.10-1) ...
Deleting configuration directory... OK
dpkg: warning: while removing wazuh-indexer, directory '/usr/lib/systemd/system' not empty so not removed
dpkg: warning: while removing wazuh-indexer, directory '/var/lib/wazuh-indexer' not empty so not removed
dpkg: warning: while removing wazuh-indexer, directory '/var/log/wazuh-indexer' not empty so not removed
27/12/2022 10:13:44 INFO: Wazuh indexer removed.
27/12/2022 10:13:45 INFO: Installation cleaned. Check the /var/log/wazuh-install.log file to learn more about the issue.