hardgcloud

Create a log sink to export matching log entries to Cloud Storage, BigQuery, or Pub/Sub

command

gcloud logging sinks create SINK_NAME DESTINATION --log-filter FILTER

also accepted

gcloud logging sinks create

Command breakdown

Part of the Google Cloud CLI (gcloud) — Operations category.

gcloudloggingsinkscreateSINK_NAMEDESTINATION--log-filterFILTER
FlagPurpose
--log-filterBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →