Registry / gcp / google-cloud-bigquery-logging

google-cloud-bigquery-logging

JSON →
library1.9.0pypypi✓ verified 83d ago

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.

pip install google-cloud-bigquery-logging
INSTALL
IMPORT
SIG · GOOGLE-CLOUD-BIGQU
G
google-cloud-bigquery-logging
gcppythonv1.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BigQueryLoggingServiceClient
from google.cloud import bigquery_logging_v1
from google.cloud.bigquery_logging import BigQueryLoggingServiceClient
The client lives under the google.cloud.bigquery_logging_v1 namespace, not a flat import.

Instantiates the client and lists logs. Replace 'your-project' with a valid GCP project ID.

from google.cloud import bigquery_logging_v1 client = bigquery_logging_v1.BigQueryLoggingServiceClient() # Below is a sample request (empty is valid but will fail auth without credentials) from google.cloud.bigquery_logging_v1 import AuditData request = bigquery_logging_v1.ListLogsRequest(parent="projects/your-project") response = client.list_logs(request=request) print(response)
Debug
Known issues
gotchaThe bigquery_logging_v1 client only supports the gRPC transport; the older grpc-experimental fallback is removed.
fix
Install grpcio and ensure your environment provides gRPC support.
affects: >=1.0.0
gotchaThe library does not expose a high-level client; it only provides low-level RPC stubs for protobuf services.
fix
Use google-cloud-logging or bigquery audit log sinks for typical logging use cases.
affects: all
breakingThe package name changed to google-cloud-bigquery-logging (hyphen) in 2020. The old google-cloud-bigquery-logging (with dot) is deprecated.
fix
Use pip install google-cloud-bigquery-logging (hyphen).
affects: <1.0.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'google.cloud.bigquery_logging'
Importing without the '_v1' version suffix.
fix
Use 'from google.cloud import bigquery_logging_v1' or 'from google.cloud.bigquery_logging_v1 import BigQueryLoggingServiceClient'.
AttributeError: module 'google.cloud.bigquery_logging_v1' has no attribute 'BigQueryLoggingServiceClient'
Trying to access the client class via a wrong submodule path.
fix
The correct import is 'from google.cloud import bigquery_logging_v1' then use bigquery_logging_v1.BigQueryLoggingServiceClient.
Upgrade
Version history
1.9.0latest on PyPI · released Mar 30, 2026
Audit
Dependencies
google-api-corerequiredCore transport / request logic
proto-plusrequiredProtobuf message handling
google-cloud-corerequiredAuthentication, client helpers
Agent activity
26 hits · last 30 days
node
20
OpenAI (training)
4
Resources