0
votes

I am aware of using google-cloud-python library to export Stackdriver logging entries to BigQuery by doing the following steps:

1) Grant WRITER access to [email protected] for BigQuery target dataset; 2) Create a sink for BigQuery

So my question is that Are there any other ways to let Stackdriver logging having write access to BigQuery to make a sink?

Reference: https://googleapis.github.io/google-cloud-python/latest/logging/usage.html#export-to-bigquery

2

2 Answers

0
votes

I am wondering if I have to use [email protected] for setting up the access?

I believe you don't have to, based on the documentation what you need is to setup the authentication is either gcloud auth application-default login or using a service account json key file. You just need to add the [email protected] as writer to the BQ dataset.

0
votes

I understand you are looking for different alternatives (using google-cloud-python library does work) to export stackdriver logs to BigQuery.

In Stackdriver Logging API documentation you can find a guide on how to implement this with example codes in C# , GO, JAVA, NODE.JS , PHP , PYTHON and RUBY