> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/g/google-security-operations-siem-rest.md).

# Google Security Operations SIEM REST

Google Security Operations SIEM (Chronicle) collects security telemetry. This adapter uses the Chronicle API and runs a UDM search statistics query that returns one row per host seen as an event principal, with its IP and MAC addresses, platform and last seen time.

## Use cases

* Add every host that appears as an event principal in your SIEM to the inventory.
* Compare SIEM-visible hosts with other adapters to find unmanaged hosts.
* Check what one connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                                                                    | Port         | Protocol          |
| ------------------- | ------------------------------------------------------------------------------ | ------------ | ----------------- |
| OctoXLabs connector | Chronicle API endpoint of your region, for example us-chronicle.googleapis.com | Not verified | HTTPS (Is Secure) |

See [Chronicle API service endpoints](https://docs.cloud.google.com/chronicle/docs/reference/rest) for every region.

### Required permissions

| Scope or role                                                                        | Permission | Needed for |
| ------------------------------------------------------------------------------------ | ---------- | ---------- |
| Chronicle API Viewer (`roles/chronicle.viewer`) on the project bound to the instance | Read       | UDM search |

## Create credentials in Google Security Operations

{% stepper %}
{% step %}

### Create a service account

In the Google Cloud project bound to your Google SecOps instance, open the [Service accounts page](https://console.cloud.google.com/iam-admin/serviceaccounts) and create a service account.
{% endstep %}

{% step %}

### Grant the role

Grant the **Chronicle API Viewer** (`roles/chronicle.viewer`) role on the project.
{% endstep %}

{% step %}

### Create a JSON key

Open the service account, go to the **Keys** tab, select **Add key** > **Create new key**, choose **JSON** and upload the downloaded file in OctoXLabs.
{% endstep %}

{% step %}

### Find the instance ID

The customer ID of the instance is under **SIEM Settings** > **Profile** > **Organization details**.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
The key file is the only copy of the private key. Store it securely and create a new key if it is lost.
{% endhint %}

## Connection parameters

| Parameter                | Required | Type    | Default                     | Description                                                                                                  |
| ------------------------ | -------- | ------- | --------------------------- | ------------------------------------------------------------------------------------------------------------ |
| Domain                   | Yes      | String  | us-chronicle.googleapis.com | Chronicle API endpoint of your region, for example `eu-chronicle.googleapis.com`.                            |
| Service Account Email    | Yes      | String  | None                        | Email of the service account. It must match the `client_email` of the key file.                              |
| Service Account Key File | Yes      | File    | None                        | JSON key file of the service account.                                                                        |
| Project ID               | Yes      | String  | None                        | ID of the Google Cloud project bound to the instance.                                                        |
| Location                 | Yes      | String  | us                          | Location of the instance, matching the domain, for example `us`, `eu` or `europe-west2`.                     |
| Instance ID              | Yes      | String  | None                        | Customer ID of the Google SecOps instance.                                                                   |
| Days To Fetch            | No       | Integer | 1                           | Days back to search, from 1 to 90. The time range is split in halves when the search returns too many hosts. |
| Is Secure                | No       | Boolean | True                        | Use HTTPS.                                                                                                   |
| Https Proxy              | No       | String  | None                        | Proxy URL.                                                                                                   |
| Timeout                  | No       | Integer | 600                         | Time in seconds to wait for API responses. A UDM search can run up to 10 minutes.                            |

Required flags and types come from the frontend instructions and were not checked against connector code.

## Troubleshooting

| Error message | Cause                                               | Fix                                                     |
| ------------- | --------------------------------------------------- | ------------------------------------------------------- |
| Not verified  | Error texts could not be taken from connector code. | Run the connection test and check the parameters above. |

## Change history
