{"id":27842,"library":"google-cloud-bigquery-logging","title":"Google Cloud BigQuery Logging API Client Library for Python","description":"This library implements the google.cloud.bigquery_logging_v1 protobuf definitions, providing RPC bindings for the BigQuery Logging API. It is used to programmatically manage logging data for BigQuery audit logs. The current stable version is 1.9.0, and releases follow the googleapis-yoshi release cadence. Minimum Python version required is 3.9.","status":"active","version":"1.9.0","language":"python","source_language":"en","source_url":"https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-bigquery-logging","tags":["google-cloud","bigquery","logging","protobuf"],"install":[{"cmd":"pip install google-cloud-bigquery-logging","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Core transport / request logic","package":"google-api-core","optional":false},{"reason":"Protobuf message handling","package":"proto-plus","optional":false},{"reason":"Authentication, client helpers","package":"google-cloud-core","optional":false}],"imports":[{"note":"The client lives under the google.cloud.bigquery_logging_v1 namespace, not a flat import.","wrong":"from google.cloud.bigquery_logging import BigQueryLoggingServiceClient","symbol":"BigQueryLoggingServiceClient","correct":"from google.cloud import bigquery_logging_v1"}],"quickstart":{"code":"from google.cloud import bigquery_logging_v1\n\nclient = bigquery_logging_v1.BigQueryLoggingServiceClient()\n\n# Below is a sample request (empty is valid but will fail auth without credentials)\nfrom google.cloud.bigquery_logging_v1 import AuditData\nrequest = bigquery_logging_v1.ListLogsRequest(parent=\"projects/your-project\")\nresponse = client.list_logs(request=request)\nprint(response)","lang":"python","description":"Instantiates the client and lists logs. Replace 'your-project' with a valid GCP project ID."},"warnings":[{"fix":"Install grpcio and ensure your environment provides gRPC support.","message":"The bigquery_logging_v1 client only supports the gRPC transport; the older grpc-experimental fallback is removed.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use google-cloud-logging or bigquery audit log sinks for typical logging use cases.","message":"The library does not expose a high-level client; it only provides low-level RPC stubs for protobuf services.","severity":"gotcha","affected_versions":"all"},{"fix":"Use pip install google-cloud-bigquery-logging (hyphen).","message":"The package name changed to google-cloud-bigquery-logging (hyphen) in 2020. The old google-cloud-bigquery-logging (with dot) is deprecated.","severity":"breaking","affected_versions":"<1.0.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use 'from google.cloud import bigquery_logging_v1' or 'from google.cloud.bigquery_logging_v1 import BigQueryLoggingServiceClient'.","cause":"Importing without the '_v1' version suffix.","error":"ModuleNotFoundError: No module named 'google.cloud.bigquery_logging'"},{"fix":"The correct import is 'from google.cloud import bigquery_logging_v1' then use bigquery_logging_v1.BigQueryLoggingServiceClient.","cause":"Trying to access the client class via a wrong submodule path.","error":"AttributeError: module 'google.cloud.bigquery_logging_v1' has no attribute 'BigQueryLoggingServiceClient'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}