SaaS Manual Resource Creation (Google Cloud + BigQuery)
Last updated
Last updated
To enable Masthead Solution in your BigQuery data warehouse, it is required to create the next resources in your Google Cloud.
Under this selected project, navigate to Pub/Sub.
Click Create Topic. Set topic id masthead-topic
. (unmark checkbox Add a default subscription)
Navigate into the newly created. Click Create Subscription
Set subscription id: masthead-agent-subscription
Set Cloud Pub/Sub topic ID: masthead-topic
, then scroll down a little ...
Set Acknowledgement deadline: 60 seconds
Click Create and we are all done with Pub/Sub topic and Subscription.
Navigate to Logs Router from the Logging menu. Click Create Sink button in the upper right corner and fill in the required fields:
Name: masthead-agent-sink
Set Sink Destination: Cloud Pub/Sub topic -> choose from the dropdown newly created Pub/Sub topic masthead-topic
Choose logs to include in the sink. Copy the text below and paste it into the filter.
Hit Create Sink to complete creation
The Masthead platform can gain insights in a few hours by parsing retrospective logs and creating a data model around them. To do so, please grant Service Account retro-data@masthead-prod.iam.gserviceaccount.com
a Private Logs Viewer
role.
Navigate to IAM & Admin -> IAM
Click on GRANT ACCESS button on the top left of the screen
Specify retro-data@masthead-prod.iam.gserviceaccount.com
in the New principals field
Click on Select a role and type Private Logs Viewer
. Select found Private Logs Viewer
role.
Click SAVE
This will enable Masthead Agent to look up only recently produced events in the Google Cloud that corresponds to the filter defined in the Cloud Logs Sink.