Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions docs/logging-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,13 @@ Export log entries using sinks
Sinks allow exporting entries which match a given filter to Cloud Storage
buckets, BigQuery datasets, or Cloud Pub/Sub topics.

Export to Cloud storage
Export to Cloud Storage
~~~~~~~~~~~~~~~~~~~~~~~

Make sure that the storage bucket you want to export logs too has
`[email protected]` as the owner. See `Set permission for writing exported logs`_.
``[email protected]`` as the owner. See `Set permission for writing exported logs`_.

Add `[email protected]` as the owner of `my-bucket-name`:
Add ``[email protected]`` as the owner of ``my-bucket-name``:

.. doctest::

Expand All @@ -236,11 +236,12 @@ Export to BigQuery
~~~~~~~~~~~~~~~~~~

To export logs to BigQuery you must log into the Cloud Platform Console
and add `[email protected]` to a dataset.
and add ``[email protected]`` to a dataset.

See: `Setting permissions for BigQuery`_

.. doctest::

>>> from gcloud import bigquery
>>> from gcloud.bigquery.dataset import AccessGrant
>>> bigquery_client = bigquery.Client()
Expand All @@ -259,11 +260,12 @@ Export to Pub/Sub
~~~~~~~~~~~~~~~~~

To export logs to BigQuery you must log into the Cloud Platform Console
and add `[email protected]` to a topic.
and add ``[email protected]`` to a topic.

See: `Setting permissions for Pub/Sub`_

.. doctest::

>>> from gcloud import pubsub
>>> client = pubsub.Client()
>>> topic = client.topic('your-topic-name')
Expand Down