Skip to content

Commit

Permalink
Merge pull request #6509 from wazuh/feature/6482-errors-gcp-configura…
Browse files Browse the repository at this point in the history
…tion-examples

Fix in GCP configuration examples
  • Loading branch information
javimed authored Sep 15, 2023
2 parents 91d3b53 + 888f5e1 commit f0913fe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
15 changes: 8 additions & 7 deletions source/cloud-security/gcp/prerequisites/credentials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,26 +63,27 @@ As explained before, the GCP integration requires a credentials file in JSON for
Regardless of the service, the authentication file is always specified in the ``ossec.conf`` configuration file using the ``<credentials_file>`` tag. Take a look at the following example:

.. code-block:: xml
:emphasize-lines: 7, 16
:emphasize-lines: 6, 14
<gcp-pubsub>
<pull_on_start>yes</pull_on_start>
<interval>1m</interval>
<project_id>wazuh-dev-123456</project_id>
<subscription_name>wazuh-subscription</subscription_name>
<credentials_file>/var/ossec/wodles/gcloud/credentials.json</credentials_file>
</gcp-pubsub>
<gcp-bucket>
<run_on_start>yes</run_on_start>
<interval>1m</interval>
<project_id>wazuh-dev-123456</project_id>
<subscription_name>wazuh-subscription</subscription_name>
<credentials_file>/var/ossec/wodles/gcloud/credentials.json</credentials_file>
<bucket type="access_logs">
<name>wazuh-test-bucket</name>
<credentials_file>/var/ossec/wodles/gcloud/credentials.json</credentials_file>
<only_logs_after>2021-JUN-01</only_logs_after>
<path>access_logs/</path>
<remove_from_bucket>no</remove_from_bucket>
</bucket>
</gcp-bucket>
Check the :doc:`gcp-pubsub </user-manual/reference/ossec-conf/gcp-pubsub>` and :doc:`gcp-bucket </user-manual/reference/ossec-conf/gcp-bucket>` sections from the ossec.conf reference page for more information about the ``<credentials_file>`` and other available parameters.
10 changes: 7 additions & 3 deletions source/user-manual/reference/ossec-conf/gcp-bucket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ Linux configuration:
<gcp-bucket>
<run_on_start>yes</run_on_start>
<interval>1m</interval>
<project_id>wazuh-dev</project_id>
<subscription_name>wazuhdns</subscription_name>
<credentials_file>wodles/gcp-bucket/credentials.json</credentials_file>
<bucket type="access_logs">
<name>wazuh-test-bucket</name>
<credentials_file>/var/ossec/wodles/gcloud/credentials.json</credentials_file>
<only_logs_after>2021-JUN-01</only_logs_after>
<path>access_logs/</path>
<remove_from_bucket>no</remove_from_bucket>
</bucket>
</gcp-bucket>

0 comments on commit f0913fe

Please sign in to comment.