hardgcloud

Create a log-based metric to count or extract values from matching log entries

command

gcloud logging metrics create METRIC_NAME --description DESC --log-filter FILTER

also accepted

gcloud logging metrics create

Command breakdown

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

gcloudloggingmetricscreateMETRIC_NAME--descriptionDESC--log-filterFILTER
FlagPurpose
--descriptionBoolean flag
--log-filterBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →