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

Improving step-by-step guide for vulnerability detector #7149

Merged
merged 6 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
.. Copyright (C) 2015, Wazuh, Inc.

By default, the host is set to localhost: ``<host>https://0.0.0.0:9200/</host>``. Replace ``0.0.0.0`` with your Wazuh indexer node IP address or hostname.
sebasfalcone marked this conversation as resolved.
Show resolved Hide resolved

.. code-block:: xml
javimed marked this conversation as resolved.
Show resolved Hide resolved
:emphasize-lines: 4

<indexer>
<enabled>yes</enabled>
<hosts>
<host>https://0.0.0.0:9200</host> <!-- Replace with your indexer URL -->
<host>https://0.0.0.0:9200</host>
</hosts>
<ssl>
<certificate_authorities>
Expand All @@ -17,5 +19,13 @@
</ssl>
</indexer>

.. End of include file
If you have more than one Wazuh indexer node, add all the required ``<host>`` entries. The vulnerability detector module will report to the first available node found and will switch to the next one in case of error.
sebasfalcone marked this conversation as resolved.
Show resolved Hide resolved

.. code-block:: xml
javimed marked this conversation as resolved.
Show resolved Hide resolved

<hosts>
<host>https://10.0.0.1:9200</host>
<host>https://10.0.0.2:9200</host>
</hosts>

javimed marked this conversation as resolved.
Show resolved Hide resolved
.. End of include file
29 changes: 17 additions & 12 deletions source/installation-guide/wazuh-server/step-by-step.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,29 +68,24 @@ Installing the Wazuh manager

# apt-get -y install wazuh-manager|WAZUH_MANAGER_DEB_PKG_INSTALL|

#. Save the Wazuh indexer username and password into the Wazuh manager keystore using the wazuh-keystore tool:
Configuring the Wazuh manager
sebasfalcone marked this conversation as resolved.
Show resolved Hide resolved
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sebasfalcone marked this conversation as resolved.
Show resolved Hide resolved

#. Save the Wazuh indexer username and password into the Wazuh manager keystore using the wazuh-keystore tool:
javimed marked this conversation as resolved.
Show resolved Hide resolved

.. code-block:: console

# /var/ossec/bin/wazuh-keystore -f indexer -k username -v <INDEXER_USERNAME>
# /var/ossec/bin/wazuh-keystore -f indexer -k password -v <INDEXER_PASSWORD>
# /var/ossec/bin/wazuh-keystore -f indexer -k password -v <INDEXER_PASSWORD>

.. note::

The default step-by-step installation credentials are ``admin``:``admin``

#. Edit ``/var/ossec/etc/ossec.conf`` to configure the indexer connection. Set your host indexer URL. You can skip this step if you are not going to use the vulnerability detection capability.
#. Edit ``/var/ossec/etc/ossec.conf`` to configure the indexer connection. You can skip this step if you are not going to use the vulnerability detection capability.

.. include:: /_templates/installations/manager/configure_indexer_connection.rst

#. Enable and start the Wazuh manager service.

.. include:: /_templates/installations/wazuh/common/enable_wazuh_manager_service.rst

#. Run the following command to verify the Wazuh manager status.

.. include:: /_templates/installations/wazuh/common/check_wazuh_manager.rst

.. _wazuh_server_multi_node_filebeat:

Installing Filebeat
Expand Down Expand Up @@ -165,6 +160,16 @@ Deploying certificates

.. include:: /_templates/installations/filebeat/opensearch/copy_certificates_filebeat_wazuh_cluster.rst

Starting the Wazuh manager
^^^^^^^^^^^^^^^^^^^^^^^^^^

#. Enable and start the Wazuh manager service.

.. include:: /_templates/installations/wazuh/common/enable_wazuh_manager_service.rst

#. Run the following command to verify the Wazuh manager status.

.. include:: /_templates/installations/wazuh/common/check_wazuh_manager.rst

Starting the Filebeat service
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
Loading