-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Release 4.10.0 - Alpha 2 - E2E UX tests - GCP integration #26420
Comments
EnvironmentThe environment has been provided by the devops team, specs of the different OS and Wazuh version running are shown below: GCP Integration Prerequisites 🔴Installation of dependencies on wazuh-agent (Centos 7)🔴Following: these steps
Google Cloud pip dependencies
Following the provided steps, the installation of Installing other pip dependencies
Installation of recommended python versionsI tried installing recommended python versions and pip packages by installing from source but i faced multiple issues ahead, i ended up by deleting those versions and reverting to issues faced with python installed from source[centos@ip-172-31-72-7 ~]$ sudo tail -f /var/ossec/logs/ossec.log | grep -i gcp
2024/10/23 16:54:58 wazuh-modulesd:gcp-pubsub: WARNING: Command returned exit code 1
2024/10/23 16:55:57 wazuh-modulesd:gcp-pubsub: WARNING: Command returned exit code 1
2024/10/23 16:56:57 wazuh-modulesd:gcp-pubsub: WARNING: Command returned exit code 1
2024/10/23 16:57:57 wazuh-modulesd:gcp-pubsub: WARNING: Command returned exit code 1
Launching command: wodles/gcloud/gcloud --integration_type pubsub --project sunlit-utility-439322-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max_messages 100 --num_threads 1 --log_level 2
====
[root@ip-172-31-72-7 gcloud]# ./gcloud --integration_type pubsub --project sunlit-utility-439322-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max
_messages 100 --num_threads 1 --log_level 2
Traceback (most recent call last):
File "./gcloud", line 15, in <module>
from buckets.access_logs import GCSAccessLogs
File "/var/ossec/wodles/gcloud/buckets/access_logs.py", line 15, in <module>
from bucket import WazuhGCloudBucket
File "/var/ossec/wodles/gcloud/buckets/bucket.py", line 10, in <module>
import sqlite3
File "/usr/local/lib/python3.8/sqlite3/__init__.py", line 23, in <module>
from sqlite3.dbapi2 import *
File "/usr/local/lib/python3.8/sqlite3/dbapi2.py", line 27, in <module>
from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'
====
[root@ip-172-31-72-7 gcloud]# ./gcloud --integration_type pubsub --project sunlit-utility-439322-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max
_messages 100 --num_threads 1 --log_level 2
Traceback (most recent call last):
File "/var/ossec/wodles/gcloud/buckets/bucket.py", line 23, in <module>
from google.cloud import storage
File "/usr/local/lib/python3.8/site-packages/google/cloud/storage/__init__.py", line 35, in <module>
from google.cloud.storage.batch import Batch
File "/usr/local/lib/python3.8/site-packages/google/cloud/storage/batch.py", line 26, in <module>
import requests
File "/usr/local/lib/python3.8/site-packages/requests/__init__.py", line 43, in <module>
import urllib3
File "/usr/local/lib/python3.8/site-packages/urllib3/__init__.py", line 42, in <module>
raise ImportError(
ImportError: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips 26 Jan 2017'. See: https://github.com/urllib3/urllib3/issues/2168
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./gcloud", line 15, in <module>
from buckets.access_logs import GCSAccessLogs
File "/var/ossec/wodles/gcloud/buckets/access_logs.py", line 15, in <module>
from bucket import WazuhGCloudBucket
File "/var/ossec/wodles/gcloud/buckets/bucket.py", line 27, in <module>
raise exceptions.WazuhIntegrationException(errcode=1003, package=e.name)
File "/var/ossec/wodles/gcloud/exceptions.py", line 28, in __init__
info = self.__class__.ERRORS[errcode]
AttributeError: type object 'WazuhIntegrationException' has no attribute 'ERRORS'
[root@ip-172-31-72-7 gcloud]# ./gcloud
Traceback (most recent call last):
File "/var/ossec/wodles/gcloud/./gcloud", line 11, in <module>
import tools
File "/var/ossec/wodles/gcloud/tools.py", line 16, in <module>
from pytz import UTC
ModuleNotFoundError: No module named 'pytz'
[root@ip-172-31-72-7 gcloud]# pip3 install google-cloud-core==1.7.1 google-cloud-pubsub==2.7.1 google-cloud-storage==1.39.0 pytz==2020.1 setuptools==68.0.0
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/google-cloud-core/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/google-cloud-core/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/google-cloud-core/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/google-cloud-core/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/google-cloud-core/
Could not fetch URL https://pypi.org/simple/google-cloud-core/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/google-cloud-core/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement google-cloud-core==1.7.1 (from versions: none)
ERROR: No matching distribution found for google-cloud-core==1.7.1 Creating Google Cloud credentials 🟢Following: these steps Creating a credentials file for the service account The json file was later copied to the directory |
On Wazuh Server 🟢Pub/Sub ConfigurationFollowing: These steps Creation of Topic and Subscription Configuring the Wazuh module for Google Cloud Pub/Sub
<ossec_config>
<gcp-pubsub>
<pull_on_start>yes</pull_on_start>
<interval>1m</interval>
<project_id>sunlit-************-a1</project_id>
<subscription_name>wazuh-pubsub-sub</subscription_name>
<credentials_file>/var/ossec/wodles/gcloud/gcp.json</credentials_file>
</gcp-pubsub>
</ossec_config> Export logs via sink Results Cloud Storage buckets ConfigSetting up log delivery Following: these steps
<gcp-bucket>
<run_on_start>yes</run_on_start>
<interval>1m</interval>
<bucket type="access_logs">
<name>wazuh-alpha2-testing</name>
<credentials_file>/var/ossec/wodles/gcloud/gcp.json></credentials_file>
</bucket>
</gcp-bucket>
CSPMNetwork misconfigurationsFollowing: These steps Enabling Compute Engine API Verybad Firewall rule creation Verybad Firewall rule deletion Identity and access management anomalous activityResults on Wazuh Dashboard |
On Wazuh Agent 🔴Pub/Sub ConfigurationFollowing: These steps Configuring the Wazuh module for Google Cloud Pub/Sub
<ossec_config>
<gcp-pubsub>
<pull_on_start>yes</pull_on_start>
<interval>1m</interval>
<project_id>sunlit-************-a1</project_id>
<subscription_name>wazuh-pubsub-sub</subscription_name>
<credentials_file>/var/ossec/wodles/gcloud/gcp.json</credentials_file>
</gcp-pubsub>
</ossec_config>
Results Pub/Sub integration details[root@ip-172-31-72-7 ~]# /var/ossec/wodles/gcloud/gcloud --integration_type pubsub --project sunlit-utility-4*****-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max_messages 100 --num_threads 1 --log_level 2 Cloud Storage buckets ConfigSetting up log delivery Following: these steps
<gcp-bucket>
<run_on_start>yes</run_on_start>
<interval>1m</interval>
<bucket type="access_logs">
<name>wazuh-alpha2-testing</name>
<credentials_file>/var/ossec/wodles/gcloud/gcp.json</credentials_file>
<only_logs_after>2024-OCT-24</only_logs_after>
</bucket>
</gcp-bucket>
Testing manually gcloud integration with buckets worked but no log with testing manually
CSPMNetwork misconfigurationsFollowing: These steps Enabling Compute Engine API Verybad Firewall rule creation Verybad Firewall rule deletion Identity and access management anomalous activityResults on Wazuh Dashboard The intergration with Wazuh Agent on Centos7 is buggy due to unavailability of recommended python version and setuptools pacakge .
ossec.log2024/10/24 03:41:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:381 at wm_gcp_bucket_run(): DEBUG: Create argument list
2024/10/24 03:41:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:424 at wm_gcp_bucket_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type access_logs --bucket_name wazuh-alpha2-testing --credentials_file /var/ossec/wodles/gcloud/gcp.json --only_logs_after 2024-OCT-20 --log_level 2
2024/10/24 03:42:00 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:314 at wm_gcp_pubsub_run(): WARNING: Command returned exit code 1
2024/10/24 03:42:00 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:151 at wm_gcp_pubsub_main(): DEBUG: Fetching logs finished.
2024/10/24 03:42:00 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:143 at wm_gcp_pubsub_main(): DEBUG: Sleeping until: 2024/10/24 03:42:59
2024/10/24 03:42:00 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:437 at wm_gcp_bucket_run(): WARNING: Command returned exit code 1
2024/10/24 03:42:00 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:225 at wm_gcp_bucket_main(): DEBUG: Fetching logs finished.
2024/10/24 03:42:00 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:184 at wm_gcp_bucket_main(): DEBUG: Sleeping until: 2024/10/24 03:42:59
2024/10/24 03:42:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:147 at wm_gcp_pubsub_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:42:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:248 at wm_gcp_pubsub_run(): DEBUG: Create argument list
2024/10/24 03:42:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:301 at wm_gcp_pubsub_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type pubsub --project sunlit-utility-439322-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max_messages 100 --num_threads 1 --log_level 2
2024/10/24 03:42:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:188 at wm_gcp_bucket_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:42:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:220 at wm_gcp_bucket_main(): INFO: Executing Bucket Analysis: (Bucket: wazuh-alpha2-testing, Type: access_logs, Credentials file: /var/ossec/wodles/gcloud/gcp.json)
2024/10/24 03:42:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:381 at wm_gcp_bucket_run(): DEBUG: Create argument list
2024/10/24 03:42:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:424 at wm_gcp_bucket_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type access_logs --bucket_name wazuh-alpha2-testing --credentials_file /var/ossec/wodles/gcloud/gcp.json --only_logs_after 2024-OCT-20 --log_level 2
2024/10/24 03:42:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:314 at wm_gcp_pubsub_run(): WARNING: Command returned exit code 1
2024/10/24 03:42:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:151 at wm_gcp_pubsub_main(): DEBUG: Fetching logs finished.
2024/10/24 03:42:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:143 at wm_gcp_pubsub_main(): DEBUG: Sleeping until: 2024/10/24 03:43:59
2024/10/24 03:42:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:437 at wm_gcp_bucket_run(): WARNING: Command returned exit code 1
2024/10/24 03:42:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:225 at wm_gcp_bucket_main(): DEBUG: Fetching logs finished.
2024/10/24 03:42:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:184 at wm_gcp_bucket_main(): DEBUG: Sleeping until: 2024/10/24 03:43:59
2024/10/24 03:43:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:147 at wm_gcp_pubsub_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:43:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:248 at wm_gcp_pubsub_run(): DEBUG: Create argument list
2024/10/24 03:43:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:301 at wm_gcp_pubsub_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type pubsub --project sunlit-utility-439322-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max_messages 100 --num_threads 1 --log_level 2
2024/10/24 03:43:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:188 at wm_gcp_bucket_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:43:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:220 at wm_gcp_bucket_main(): INFO: Executing Bucket Analysis: (Bucket: wazuh-alpha2-testing, Type: access_logs, Credentials file: /var/ossec/wodles/gcloud/gcp.json)
2024/10/24 03:43:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:381 at wm_gcp_bucket_run(): DEBUG: Create argument list
2024/10/24 03:43:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:424 at wm_gcp_bucket_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type access_logs --bucket_name wazuh-alpha2-testing --credentials_file /var/ossec/wodles/gcloud/gcp.json --only_logs_after 2024-OCT-20 --log_level 2
2024/10/24 03:43:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:314 at wm_gcp_pubsub_run(): WARNING: Command returned exit code 1
2024/10/24 03:43:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:151 at wm_gcp_pubsub_main(): DEBUG: Fetching logs finished.
2024/10/24 03:43:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:143 at wm_gcp_pubsub_main(): DEBUG: Sleeping until: 2024/10/24 03:44:59
2024/10/24 03:43:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:437 at wm_gcp_bucket_run(): WARNING: Command returned exit code 1
2024/10/24 03:43:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:225 at wm_gcp_bucket_main(): DEBUG: Fetching logs finished.
2024/10/24 03:43:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:184 at wm_gcp_bucket_main(): DEBUG: Sleeping until: 2024/10/24 03:44:59
2024/10/24 03:44:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:188 at wm_gcp_bucket_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:44:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:220 at wm_gcp_bucket_main(): INFO: Executing Bucket Analysis: (Bucket: wazuh-alpha2-testing, Type: access_logs, Credentials file: /var/ossec/wodles/gcloud/gcp.json)
2024/10/24 03:44:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:381 at wm_gcp_bucket_run(): DEBUG: Create argument list
2024/10/24 03:44:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:147 at wm_gcp_pubsub_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:44:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:248 at wm_gcp_pubsub_run(): DEBUG: Create argument list
2024/10/24 03:44:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:301 at wm_gcp_pubsub_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type pubsub --project sunlit-utility-439322-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max_messages 100 --num_threads 1 --log_level 2
2024/10/24 03:44:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:424 at wm_gcp_bucket_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type access_logs --bucket_name wazuh-alpha2-testing --credentials_file /var/ossec/wodles/gcloud/gcp.json --only_logs_after 2024-OCT-20 --log_level 2
2024/10/24 03:44:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:314 at wm_gcp_pubsub_run(): WARNING: Command returned exit code 1
2024/10/24 03:44:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:151 at wm_gcp_pubsub_main(): DEBUG: Fetching logs finished.
2024/10/24 03:44:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:143 at wm_gcp_pubsub_main(): DEBUG: Sleeping until: 2024/10/24 03:45:59
2024/10/24 03:44:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:437 at wm_gcp_bucket_run(): WARNING: Command returned exit code 1
2024/10/24 03:44:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:225 at wm_gcp_bucket_main(): DEBUG: Fetching logs finished.
2024/10/24 03:44:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:184 at wm_gcp_bucket_main(): DEBUG: Sleeping until: 2024/10/24 03:45:59
2024/10/24 03:45:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:147 at wm_gcp_pubsub_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:45:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:248 at wm_gcp_pubsub_run(): DEBUG: Create argument list
2024/10/24 03:45:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:301 at wm_gcp_pubsub_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type pubsub --project sunlit-utility-439322-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max_messages 100 --num_threads 1 --log_level 2
2024/10/24 03:45:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:188 at wm_gcp_bucket_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:45:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:220 at wm_gcp_bucket_main(): INFO: Executing Bucket Analysis: (Bucket: wazuh-alpha2-testing, Type: access_logs, Credentials file: /var/ossec/wodles/gcloud/gcp.json)
2024/10/24 03:45:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:381 at wm_gcp_bucket_run(): DEBUG: Create argument list
2024/10/24 03:45:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:424 at wm_gcp_bucket_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type access_logs --bucket_name wazuh-alpha2-testing --credentials_file /var/ossec/wodles/gcloud/gcp.json --only_logs_after 2024-OCT-20 --log_level 2
2024/10/24 03:45:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:437 at wm_gcp_bucket_run(): WARNING: Command returned exit code 1
2024/10/24 03:45:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:225 at wm_gcp_bucket_main(): DEBUG: Fetching logs finished.
2024/10/24 03:45:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:184 at wm_gcp_bucket_main(): DEBUG: Sleeping until: 2024/10/24 03:46:59
2024/10/24 03:45:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:314 at wm_gcp_pubsub_run(): WARNING: Command returned exit code 1
2024/10/24 03:45:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:151 at wm_gcp_pubsub_main(): DEBUG: Fetching logs finished.
2024/10/24 03:45:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:143 at wm_gcp_pubsub_main(): DEBUG: Sleeping until: 2024/10/24 03:46:59
2024/10/24 03:46:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:147 at wm_gcp_pubsub_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:46:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:248 at wm_gcp_pubsub_run(): DEBUG: Create argument list
2024/10/24 03:46:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:301 at wm_gcp_pubsub_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type pubsub --project sunlit-utility-439322-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max_messages 100 --num_threads 1 --log_level 2
2024/10/24 03:46:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:188 at wm_gcp_bucket_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:46:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:220 at wm_gcp_bucket_main(): INFO: Executing Bucket Analysis: (Bucket: wazuh-alpha2-testing, Type: access_logs, Credentials file: /var/ossec/wodles/gcloud/gcp.json)
2024/10/24 03:46:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:381 at wm_gcp_bucket_run(): DEBUG: Create argument list
2024/10/24 03:46:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:424 at wm_gcp_bucket_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type access_logs --bucket_name wazuh-alpha2-testing --credentials_file /var/ossec/wodles/gcloud/gcp.json --only_logs_after 2024-OCT-20 --log_level 2
2024/10/24 03:46:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:437 at wm_gcp_bucket_run(): WARNING: Command returned exit code 1
2024/10/24 03:46:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:225 at wm_gcp_bucket_main(): DEBUG: Fetching logs finished.
2024/10/24 03:46:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:184 at wm_gcp_bucket_main(): DEBUG: Sleeping until: 2024/10/24 03:47:59
2024/10/24 03:46:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:314 at wm_gcp_pubsub_run(): WARNING: Command returned exit code 1
2024/10/24 03:46:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:151 at wm_gcp_pubsub_main(): DEBUG: Fetching logs finished.
2024/10/24 03:46:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:143 at wm_gcp_pubsub_main(): DEBUG: Sleeping until: 2024/10/24 03:47:59
2024/10/24 03:47:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:188 at wm_gcp_bucket_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:47:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:220 at wm_gcp_bucket_main(): INFO: Executing Bucket Analysis: (Bucket: wazuh-alpha2-testing, Type: access_logs, Credentials file: /var/ossec/wodles/gcloud/gcp.json)
2024/10/24 03:47:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:381 at wm_gcp_bucket_run(): DEBUG: Create argument list
2024/10/24 03:47:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:424 at wm_gcp_bucket_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type access_logs --bucket_name wazuh-alpha2-testing --credentials_file /var/ossec/wodles/gcloud/gcp.json --only_logs_after 2024-OCT-20 --log_level 2
2024/10/24 03:47:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:147 at wm_gcp_pubsub_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:47:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:248 at wm_gcp_pubsub_run(): DEBUG: Create argument list
2024/10/24 03:47:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:301 at wm_gcp_pubsub_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type pubsub --project sunlit-utility-439322-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max_messages 100 --num_threads 1 --log_level 2
2024/10/24 03:48:00 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:437 at wm_gcp_bucket_run(): WARNING: Command returned exit code 1
2024/10/24 03:48:00 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:225 at wm_gcp_bucket_main(): DEBUG: Fetching logs finished.
2024/10/24 03:48:00 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:184 at wm_gcp_bucket_main(): DEBUG: Sleeping until: 2024/10/24 03:48:59
2024/10/24 03:48:00 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:314 at wm_gcp_pubsub_run(): WARNING: Command returned exit code 1
2024/10/24 03:48:00 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:151 at wm_gcp_pubsub_main(): DEBUG: Fetching logs finished.
2024/10/24 03:48:00 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:143 at wm_gcp_pubsub_main(): DEBUG: Sleeping until: 2024/10/24 03:48:59
2024/10/24 03:48:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:188 at wm_gcp_bucket_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:48:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:220 at wm_gcp_bucket_main(): INFO: Executing Bucket Analysis: (Bucket: wazuh-alpha2-testing, Type: access_logs, Credentials file: /var/ossec/wodles/gcloud/gcp.json)
2024/10/24 03:48:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:381 at wm_gcp_bucket_run(): DEBUG: Create argument list
2024/10/24 03:48:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:424 at wm_gcp_bucket_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type access_logs --bucket_name wazuh-alpha2-testing --credentials_file /var/ossec/wodles/gcloud/gcp.json --only_logs_after 2024-OCT-20 --log_level 2
2024/10/24 03:48:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:147 at wm_gcp_pubsub_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:48:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:248 at wm_gcp_pubsub_run(): DEBUG: Create argument list
2024/10/24 03:48:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:301 at wm_gcp_pubsub_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type pubsub --project sunlit-utility-439322-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max_messages 100 --num_threads 1 --log_level 2
2024/10/24 03:48:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:437 at wm_gcp_bucket_run(): WARNING: Command returned exit code 1
2024/10/24 03:48:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:225 at wm_gcp_bucket_main(): DEBUG: Fetching logs finished.
2024/10/24 03:48:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:184 at wm_gcp_bucket_main(): DEBUG: Sleeping until: 2024/10/24 03:49:59
2024/10/24 03:48:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:314 at wm_gcp_pubsub_run(): WARNING: Command returned exit code 1
2024/10/24 03:48:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:151 at wm_gcp_pubsub_main(): DEBUG: Fetching logs finished.
2024/10/24 03:48:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:143 at wm_gcp_pubsub_main(): DEBUG: Sleeping until: 2024/10/24 03:49:59
2024/10/24 03:49:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:188 at wm_gcp_bucket_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:49:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:220 at wm_gcp_bucket_main(): INFO: Executing Bucket Analysis: (Bucket: wazuh-alpha2-testing, Type: access_logs, Credentials file: /var/ossec/wodles/gcloud/gcp.json)
2024/10/24 03:49:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:381 at wm_gcp_bucket_run(): DEBUG: Create argument list
2024/10/24 03:49:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:424 at wm_gcp_bucket_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type access_logs --bucket_name wazuh-alpha2-testing --credentials_file /var/ossec/wodles/gcloud/gcp.json --only_logs_after 2024-OCT-20 --log_level 2
2024/10/24 03:49:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:147 at wm_gcp_pubsub_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:49:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:248 at wm_gcp_pubsub_run(): DEBUG: Create argument list
2024/10/24 03:49:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:301 at wm_gcp_pubsub_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type pubsub --project sunlit-utility-439322-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max_messages 100 --num_threads 1 --log_level 2
2024/10/24 03:49:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:437 at wm_gcp_bucket_run(): WARNING: Command returned exit code 1
2024/10/24 03:49:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:225 at wm_gcp_bucket_main(): DEBUG: Fetching logs finished.
2024/10/24 03:49:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:184 at wm_gcp_bucket_main(): DEBUG: Sleeping until: 2024/10/24 03:50:59
2024/10/24 03:49:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:314 at wm_gcp_pubsub_run(): WARNING: Command returned exit code 1
2024/10/24 03:49:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:151 at wm_gcp_pubsub_main(): DEBUG: Fetching logs finished.
2024/10/24 03:49:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:143 at wm_gcp_pubsub_main(): DEBUG: Sleeping until: 2024/10/24 03:50:59
2024/10/24 03:50:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:188 at wm_gcp_bucket_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:50:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:220 at wm_gcp_bucket_main(): INFO: Executing Bucket Analysis: (Bucket: wazuh-alpha2-testing, Type: access_logs, Credentials file: /var/ossec/wodles/gcloud/gcp.json)
2024/10/24 03:50:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:381 at wm_gcp_bucket_run(): DEBUG: Create argument list
2024/10/24 03:50:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:424 at wm_gcp_bucket_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type access_logs --bucket_name wazuh-alpha2-testing --credentials_file /var/ossec/wodles/gcloud/gcp.json --only_logs_after 2024-OCT-20 --log_level 2
2024/10/24 03:50:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:147 at wm_gcp_pubsub_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:50:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:248 at wm_gcp_pubsub_run(): DEBUG: Create argument list
2024/10/24 03:50:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:301 at wm_gcp_pubsub_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type pubsub --project sunlit-utility-439322-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max_messages 100 --num_threads 1 --log_level 2
2024/10/24 03:50:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:437 at wm_gcp_bucket_run(): WARNING: Command returned exit code 1
2024/10/24 03:50:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:225 at wm_gcp_bucket_main(): DEBUG: Fetching logs finished.
2024/10/24 03:50:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:184 at wm_gcp_bucket_main(): DEBUG: Sleeping until: 2024/10/24 03:51:59
2024/10/24 03:50:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:314 at wm_gcp_pubsub_run(): WARNING: Command returned exit code 1
2024/10/24 03:50:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:151 at wm_gcp_pubsub_main(): DEBUG: Fetching logs finished.
2024/10/24 03:50:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:143 at wm_gcp_pubsub_main(): DEBUG: Sleeping until: 2024/10/24 03:51:59
2024/10/24 03:51:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:188 at wm_gcp_bucket_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:51:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:220 at wm_gcp_bucket_main(): INFO: Executing Bucket Analysis: (Bucket: wazuh-alpha2-testing, Type: access_logs, Credentials file: /var/ossec/wodles/gcloud/gcp.json)
2024/10/24 03:51:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:381 at wm_gcp_bucket_run(): DEBUG: Create argument list
2024/10/24 03:51:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:424 at wm_gcp_bucket_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type access_logs --bucket_name wazuh-alpha2-testing --credentials_file /var/ossec/wodles/gcloud/gcp.json --only_logs_after 2024-OCT-20 --log_level 2
2024/10/24 03:51:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:147 at wm_gcp_pubsub_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:51:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:248 at wm_gcp_pubsub_run(): DEBUG: Create argument list
2024/10/24 03:51:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:301 at wm_gcp_pubsub_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type pubsub --project sunlit-utility-439322-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max_messages 100 --num_threads 1 --log_level 2
2024/10/24 03:51:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:437 at wm_gcp_bucket_run(): WARNING: Command returned exit code 1
2024/10/24 03:51:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:225 at wm_gcp_bucket_main(): DEBUG: Fetching logs finished.
2024/10/24 03:51:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:184 at wm_gcp_bucket_main(): DEBUG: Sleeping until: 2024/10/24 03:52:59
2024/10/24 03:51:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:314 at wm_gcp_pubsub_run(): WARNING: Command returned exit code 1
2024/10/24 03:51:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:151 at wm_gcp_pubsub_main(): DEBUG: Fetching logs finished.
2024/10/24 03:51:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:143 at wm_gcp_pubsub_main(): DEBUG: Sleeping until: 2024/10/24 03:52:59
2024/10/24 03:52:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:188 at wm_gcp_bucket_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:52:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:220 at wm_gcp_bucket_main(): INFO: Executing Bucket Analysis: (Bucket: wazuh-alpha2-testing, Type: access_logs, Credentials file: /var/ossec/wodles/gcloud/gcp.json)
2024/10/24 03:52:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:381 at wm_gcp_bucket_run(): DEBUG: Create argument list
2024/10/24 03:52:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:424 at wm_gcp_bucket_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type access_logs --bucket_name wazuh-alpha2-testing --credentials_file /var/ossec/wodles/gcloud/gcp.json --only_logs_after 2024-OCT-20 --log_level 2
2024/10/24 03:52:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:147 at wm_gcp_pubsub_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:52:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:248 at wm_gcp_pubsub_run(): DEBUG: Create argument list
2024/10/24 03:52:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:301 at wm_gcp_pubsub_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type pubsub --project sunlit-utility-439322-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max_messages 100 --num_threads 1 --log_level 2
2024/10/24 03:52:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:437 at wm_gcp_bucket_run(): WARNING: Command returned exit code 1
2024/10/24 03:52:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:225 at wm_gcp_bucket_main(): DEBUG: Fetching logs finished.
2024/10/24 03:52:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:184 at wm_gcp_bucket_main(): DEBUG: Sleeping until: 2024/10/24 03:53:59
2024/10/24 03:52:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:314 at wm_gcp_pubsub_run(): WARNING: Command returned exit code 1
2024/10/24 03:52:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:151 at wm_gcp_pubsub_main(): DEBUG: Fetching logs finished.
2024/10/24 03:52:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:143 at wm_gcp_pubsub_main(): DEBUG: Sleeping until: 2024/10/24 03:53:59
2024/10/24 03:53:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:188 at wm_gcp_bucket_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:53:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:220 at wm_gcp_bucket_main(): INFO: Executing Bucket Analysis: (Bucket: wazuh-alpha2-testing, Type: access_logs, Credentials file: /var/ossec/wodles/gcloud/gcp.json)
2024/10/24 03:53:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:381 at wm_gcp_bucket_run(): DEBUG: Create argument list
2024/10/24 03:53:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:424 at wm_gcp_bucket_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type access_logs --bucket_name wazuh-alpha2-testing --credentials_file /var/ossec/wodles/gcloud/gcp.json --only_logs_after 2024-OCT-20 --log_level 2
2024/10/24 03:53:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:147 at wm_gcp_pubsub_main(): DEBUG: Starting fetching of logs.
2024/10/24 03:53:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:248 at wm_gcp_pubsub_run(): DEBUG: Create argument list
2024/10/24 03:53:59 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:301 at wm_gcp_pubsub_run(): DEBUG: Launching command: wodles/gcloud/gcloud --integration_type pubsub --project sunlit-utility-439322-a1 --subscription_id wazuh-pubsub-sub --credentials_file /var/ossec/wodles/gcloud/gcp.json --max_messages 100 --num_threads 1 --log_level 2
2024/10/24 03:53:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:437 at wm_gcp_bucket_run(): WARNING: Command returned exit code 1
2024/10/24 03:53:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:225 at wm_gcp_bucket_main(): DEBUG: Fetching logs finished.
2024/10/24 03:53:59 wazuh-modulesd:gcp-bucket[19415] wm_gcp.c:184 at wm_gcp_bucket_main(): DEBUG: Sleeping until: 2024/10/24 03:54:59
2024/10/24 03:54:00 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:314 at wm_gcp_pubsub_run(): WARNING: Command returned exit code 1
2024/10/24 03:54:00 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:151 at wm_gcp_pubsub_main(): DEBUG: Fetching logs finished.
2024/10/24 03:54:00 wazuh-modulesd:gcp-pubsub[19415] wm_gcp.c:143 at wm_gcp_pubsub_main(): DEBUG: Sleeping until: 2024/10/24 03:54:59 |
ReviewThe errors shown in the |
On Wazuh Agent 🟢Pub/Sub ConfigurationFollowing: These steps Configuring the Wazuh module for Google Cloud Pub/Sub
<ossec_config>
<gcp-pubsub>
<pull_on_start>yes</pull_on_start>
<interval>1m</interval>
<project_id>sunlit-************-a1</project_id>
<subscription_name>wazuh-pubsub-sub</subscription_name>
<credentials_file>/var/ossec/wodles/gcloud/gcp.json</credentials_file>
</gcp-pubsub>
</ossec_config>
Results Pub/Sub integration details
Cloud Storage buckets ConfigSetting up log delivery Following: these steps
<gcp-bucket>
<run_on_start>yes</run_on_start>
<interval>1m</interval>
<bucket type="access_logs">
<name>wazuh-alpha2-testing</name>
<credentials_file>/var/ossec/wodles/gcloud/gcp.json</credentials_file>
<only_logs_after>2024-OCT-20</only_logs_after>
</bucket>
</gcp-bucket>
Results Bucket logs
CSPMNetwork misconfigurationsFollowing: These steps Enabling Compute Engine API Verybad Firewall rule creation Verybad Firewall rule deletion Identity and access management anomalous activityResults on Wazuh Dashboard |
GCP Integration Prerequisites 🟢Installation of dependencies on wazuh-agent (Centos 7)Install wazuh-agent[root@ip-172-31-72-7 ~]# WAZUH_MANAGER="172.31.71.84" yum install wazuh-agent
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
wazuh | 3.5 kB 00:00:00
wazuh/primary_db | 555 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package wazuh-agent.x86_64 0:4.10.0-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================
Package Arch Version Repository Size
=======================================================================================
Installing:
wazuh-agent x86_64 4.10.0-1 wazuh 8.9 M
Transaction Summary
=======================================================================================
Install 1 Package
Total download size: 8.9 M
Installed size: 26 M
Is this ok [y/d/N]: y
Downloading packages:
wazuh-agent-4.10.0-1.x86_64.rpm | 8.9 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : wazuh-agent-4.10.0-1.x86_64 1/1
Verifying : wazuh-agent-4.10.0-1.x86_64
1/1
Installed:
wazuh-agent.x86_64 0:4.10.0-1
Complete!
[root@ip-172-31-72-7 ~]# hostnamectl set-hostname pokemon
[root@ip-172-31-72-7 ~]# logout
[centos@pokemon ~]$ sudo -i
[root@pokemon ~]#
[root@pokemon ~]# systemctl daemon-reload
[root@pokemon ~]# systemctl enable wazuh-agent
Created symlink from /etc/systemd/system/multi-user.target.wants/wazuh-agent.service to /usr/lib/systemd/system/wazuh-agent.service.
[root@pokemon ~]# systemctl start wazuh-agent Install Python3 from sourceDependencies
curl -O https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tgz
tar -xvf Python-3.9.0.tgz
cd Python-3.9.0
./configure --prefix=/usr/local --enable-loadable-sqlite-extensions
sudo make altinstall
pip3.9 install --update
/usr/local/bin/python3.9 -m pip install google google-cloud-storage google-cloud-pubsub pytz
/usr/local/bin/python3.9 -m pip uninstall urllib3 requests -y
/usr/local/bin/python3.9 -m pip install "urllib3<2" "requests<3"
# Update gcloud shebang to python3.9
sed -i '1s/$/.9/' /var/ossec/wodles/gcloud/gcloud |
ReviewLGTM |
End-to-End (E2E) Testing Guideline
Release testing
objective andUrgent
priority. Communicate these to the team and QA via the c-release Slack channel.For the conclusions and the issue testing and updates, use the following legend:
Status legend
Issue delivery and completion
review_assignee
field in the project. The reviewer must then review the test steps and results. Ensure that all iteration cycles are completed by Oct 23, 2024 date (issue must be inPending final review
status) and notify the QA team via Slack using the c-release channel.Deployment requirements
Test description
Configure the GCP integration in a Wazuh Manager and a Wazuh Agent.
Try both Pub/Sub and Storage integrations.
Follow the use cases from blog post section "Cloud security posture management simulation" and ensure the alerts are correctly displayed on the GCP dashboard. Make sure you follow the infrastructure and configuration details from the documentation below and not the blog one.
Documentation: https://documentation-dev.wazuh.com/v4.10.0-alpha2/cloud-security/gcp/index.html
Known issues
Conclusions
Summarize the errors detected (Known Issues included). Illustrate using the table below. REMOVE CURRENT EXAMPLES:
Feedback
We value your feedback. Please provide insights on your testing experience.
Reviewers validation
The criteria for completing this task is based on the validation of the conclusions and the test results by all reviewers.
All the checkboxes below must be marked in order to close this issue.
The text was updated successfully, but these errors were encountered: