> ## Documentation Index
> Fetch the complete documentation index at: https://docs.insecureweb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Integration guide for Google Cloud Platform

> Google Cloud Platform is a suite of public cloud computing services offered by Google. The platform includes a range of hosted services for compute, storage and application development that run on Google hardware

#### 1. Google Pub/Sub

> Go to the [Pub/Sub](https://console.cloud.google.com/projectselector2/cloudpubsub/topic/list?_ga=2.26902461.1097687309.1633079255-1671403559.1629178517\&supportedpurview=project) topics page in the Cloud Console

#### 2. Click on "Create a topic" button.

#### 3. In the Topic ID field, provide a unique topic name and save.

#### 4. Display the menu for the topic you just created, and click on "Create subscription".

<img height="200" className="block rounded-xl" src="https://mintcdn.com/insecurewebllc/QbitNOzp3ljcQlGB/images/integrations/googlecloud/quickstart-console-newsub.png?fit=max&auto=format&n=QbitNOzp3ljcQlGB&q=85&s=5dc12d2887d4f585343b6b9db3921650" alt="Google Cloud" data-path="images/integrations/googlecloud/quickstart-console-newsub.png" />

#### 5. Type a name for the subscription.

> Leave the Delivery type as Pull, leave the Expiry period as Never expire and click create button

<img height="200" className="block rounded-xl" src="https://mintcdn.com/insecurewebllc/QbitNOzp3ljcQlGB/images/integrations/googlecloud/quickstart-console-editsub.png?fit=max&auto=format&n=QbitNOzp3ljcQlGB&q=85&s=895f07c8cf4bbf2449bf47c5af454cf9" alt="Google Cloud" data-path="images/integrations/googlecloud/quickstart-console-editsub.png" />

#### 6. Go to the Logs router section; you can access this section quickly using the search box

<img height="200" className="block rounded-xl" src="https://mintcdn.com/insecurewebllc/QbitNOzp3ljcQlGB/images/integrations/googlecloud/logRouter.png?fit=max&auto=format&n=QbitNOzp3ljcQlGB&q=85&s=70fe844d283a834bbb4f1b125b3817e1" alt="Google Cloud" data-path="images/integrations/googlecloud/logRouter.png" />

#### 7. Click on the "Create SINK" button

<img height="200" className="block rounded-xl" src="https://mintcdn.com/insecurewebllc/QbitNOzp3ljcQlGB/images/integrations/googlecloud/create_shirnk.png?fit=max&auto=format&n=QbitNOzp3ljcQlGB&q=85&s=8375a00f1bc47c693f2b3e1c86d62d13" alt="Google Cloud" data-path="images/integrations/googlecloud/create_shirnk.png" />

#### 8. After providing a name and description for logs routing sink, in the Sink destination step, select the Cloud Pub/Sub topic service and then choose the topic that you created in step 3. Then click on Next

<img height="200" className="block rounded-xl" src="https://mintcdn.com/insecurewebllc/QbitNOzp3ljcQlGB/images/integrations/googlecloud/sink_destination.png?fit=max&auto=format&n=QbitNOzp3ljcQlGB&q=85&s=00012dd32fd6df57615735f6d1b13e33" alt="Google Cloud" data-path="images/integrations/googlecloud/sink_destination.png" />

#### 9. Build inclusion and exclusion filter expression that matches the log entries you want to include or exclude in steps 3 and 4 of creating sink wizard

> If you don't set a filter, all logs from your Cloud project are routed to the destination. Click Next, and Create sink

#### 10. Go to service accounts page,select the project where you create topics and sink in the previous steps, and click CREATE SERVICE ACCOUNT

> UTMStack will be using this service account to retrieve logs from the Google PubSub

<img height="200" className="block rounded-xl" src="https://mintcdn.com/insecurewebllc/QbitNOzp3ljcQlGB/images/integrations/googlecloud/create_service_account.png?fit=max&auto=format&n=QbitNOzp3ljcQlGB&q=85&s=d0f37715bbb93e74f8e78047fe141359" alt="Google Cloud" data-path="images/integrations/googlecloud/create_service_account.png" />

#### 11. Fill in the data asked in the form and give your service account Pub/Sub Editor permissions for the service account.

#### 12. Select the created service account then go to the Keys tab and create new key.

<img height="200" className="block rounded-xl" src="https://mintcdn.com/insecurewebllc/QbitNOzp3ljcQlGB/images/integrations/googlecloud/newkey.png?fit=max&auto=format&n=QbitNOzp3ljcQlGB&q=85&s=22ad6b4661bfe37cef48cd4d7012c91d" alt="Google Cloud" data-path="images/integrations/googlecloud/newkey.png" />

#### 13. Download key in JSON format

<img height="200" className="block rounded-xl" src="https://mintcdn.com/insecurewebllc/QbitNOzp3ljcQlGB/images/integrations/googlecloud/downloadkey.png?fit=max&auto=format&n=QbitNOzp3ljcQlGB&q=85&s=43cbcb3b53bfde65613811a4b419e1e7" alt="Google Cloud" data-path="images/integrations/googlecloud/downloadkey.png" />

#### 14. Enter Google Pub/Sub info

<img height="200" className="block rounded-xl" src="https://mintcdn.com/insecurewebllc/lfYYvC-pPoHEyH8F/images/integrations/googlecloud/step14.png?fit=max&auto=format&n=lfYYvC-pPoHEyH8F&q=85&s=a65d1cd0a4d1e5d04fc500a0b271d49c" alt="Google Cloud" data-path="images/integrations/googlecloud/step14.png" />

#### 15. Click on the button shown below, to activate the UTMStack features related to this integration
