tree: 8f523e8604549a132e6d7daa129185efb08587f0 [path history] [tgz]
  1. tables/
  2. .gitignore
  3. bq_util.py
  4. bq_util_test.py
  5. README.md
tokenserver/bq/README.md

BigQuery

Token Server uses BigQuery for storing structured logs that contain details of all generated tokens, for debugging and audit purposes.

This directory contains definitions of BigQuery tables, and a small tool that knows how to transform these definitions into real BigQuery tables.

Prerequisites for using the tool:

  • ‘bq’ is in PATH. It's part of Google Cloud SDK.
  • gcloud application default credentials are configured.

To update BigQuery tables used by Token Server (‘tokens’ dataset):

./bq_util.py -p <app_id> -d tokens update-tables ./tables/*.schema