Google Cloud Logging
Overview: How do I configure this destination?
In order to configure a Google Cloud Monitoring destination, you will need to create an IAM Service Account with the Logs Writer role. For more information on this process, see IAM Service Account.
Once this is completed, you will need to download the private key json file associated with that service account. The contents of this file should be copied to the Application Credentials field in BindPlane.
Before saving the destination, you will need to perform a test connection, which will verify that the Application Credentials supplied are valid and possess the appropriate monitoring role.
Cloud Resource Manager API
In order to successfully configure log data going to Google Cloud Monitoring, you will need to ensure Cloud Resource Manager API is activated on your GCP Account.
Walkthrough: Creating the Service Account for your GCP Project
GCP IAM Create the Service Account
Use GCP IAM Service Accounts to create a new account.
![Screen Shot 2019-02-01 at 3.05.04 PM.png 594](https://files.readme.io/db858a0-Screen_Shot_2019-02-01_at_3.05.04_PM.png)
Give this Service Account the Logs Writer Role
![Screen Shot 2019-05-02 at 4.37.43 PM.png 807](https://files.readme.io/b4d8e25-Screen_Shot_2019-05-02_at_4.37.43_PM.png)
Generated and Download the JSON key.
Make sure to generate this, as this is an optional step with the user creation and can only be downloaded at this step.
![Screen Shot 2019-02-01 at 3.05.59 PM.png 534](https://files.readme.io/f6df3b4-Screen_Shot_2019-02-01_at_3.05.59_PM.png)
Copy JSON file Contents to BindPlane Google Cloud Monitoring Destination
![Screen Shot 2019-04-05 at 8.16.04 AM.png 524](https://files.readme.io/3cb0fb7-Screen_Shot_2019-04-05_at_8.16.04_AM.png)
How do I find my log data?
To find your log data in Google Cloud Monitoring, please follow the steps below:
- Make sure the correct project is selected
![Screen Shot 2019-10-25 at 4.02.18 PM.png 1190](https://files.readme.io/e306d53-Screen_Shot_2019-10-25_at_4.02.18_PM.png)
- If it is not automatically selected, please click on Logs Viewer
![Screen Shot 2019-10-25 at 4.02.55 PM.png 826](https://files.readme.io/9bf382a-Screen_Shot_2019-10-25_at_4.02.55_PM.png)
- Click on the drop-down menu that is on the filter search bar.
- Convert to advanced filter
![Screen Shot 2019-10-25 at 4.07.46 PM.png 1882](https://files.readme.io/b3da251-Screen_Shot_2019-10-25_at_4.07.46_PM.png)
- Enter the text shown in the image below and click on Submit Filter
![Screen Shot 2019-10-25 at 4.11.19 PM.png 682](https://files.readme.io/a324592-Screen_Shot_2019-10-25_at_4.11.19_PM.png)
- Congratulations, you will now see all logs being streamed by BindPlane to Google Stackdriver Logging.
Updated about 4 years ago