Installing dependencies
Note
The GCP module can be configured in both Wazuh manager and agent. The choice merely depends on where do you want to reach the GCP services from.
Warning
The Wazuh manager includes all dependencies installed, the following steps are only necessary when configuring the integration in a Wazuh agent.
Python
The GCP module requires python 3. It is compatible with python versions from 3.6.0 to 3.9.5. Future python releases should maintain compatibility although it cannot be guaranteed.
For CentOS/RHEL/Fedora operating systems:
# yum update && yum install python3
For Debian/Ubuntu operating systems:
# apt-get update && apt-get install python3
Pip
The required modules can be installed with Pip, the Python package manager. Most of UNIX distributions have this tool available in their software repositories:
For CentOS/RHEL/Fedora operating systems:
# yum update && yum install python3-pip
For Debian/Ubuntu operating systems:
# apt-get update && apt-get install python3-pip
Google cloud pip dependencies
google-cloud-pubsub is the official python library supported by Google to manage Google Cloud Pub/Sub resources. It will be used to pull the log messages from the Pub/Sub queue. Depending on the Wazuh version used, it is necessary to install a different google-cloud-pubsub
version.
For Wazuh versions greater or equal to
4.2.2
:
# pip3 install google-cloud-pubsub==2.7.1
For older versions:
# pip3 install google-cloud-pubsub==1.4.3