[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[[["\u003cp\u003eDataproc Metastore job logs can be viewed, searched, filtered, and archived in Cloud Logging.\u003c/p\u003e\n"],["\u003cp\u003eLogs can be accessed through the Logging console, the \u003ccode\u003egcloud logging\u003c/code\u003e command, or the Logging API.\u003c/p\u003e\n"],["\u003cp\u003eDataproc Metastore exports both request logs and system logs to Cloud Logging, which you can access using specific \u003ccode\u003elogName\u003c/code\u003e queries.\u003c/p\u003e\n"],["\u003cp\u003eCloud logging provides information on your costs, log retention, disabling all logs or exclude specific logs, and routing logs to Cloud Storage, BigQuery, or Pub/Sub.\u003c/p\u003e\n"],["\u003cp\u003eThe Google cloud console offers a user interface and the gcloud CLI offers command line interface to access the logs.\u003c/p\u003e\n"]]],[],null,["# Cloud Logging\n\nYou can view, search, filter, and archive Dataproc Metastore job logs\nin [Cloud Logging](/logging/docs).\n\n- See [Google Cloud Observability Pricing](/stackdriver/pricing) to understand your costs.\n\n- See [Logs retention periods](/logging/quotas#logs_retention_periods) for\n information on logging retention.\n\n- See [Logs Exclusions](/logging/docs/exclusions) to disable all logs or exclude\n logs from Logging.\n\n- See [Routing and storage overview](/logging/docs/routing/overview) to route\n logs from Logging to Cloud Storage,\n BigQuery, or Pub/Sub.\n\nAccess job logs in Logging\n--------------------------\n\nWhen you run Dataproc Metastore, a Hive metastore process output\nis streamed to the Google Cloud console.\n\nYou can access Logging using the\n[Logging console](https://console.cloud.google.com/logs/query),\nthe [gcloud logging](/sdk/gcloud/reference/logging) command, or\nthe [Logging API](/logging/docs/apis). \n\n### Console\n\n1. In the Google Cloud console, go to the\n **Cloud Logging \\\u003e Logs** (Logs Explorer) page:\n\n [Go to the Logs Explorer page](https://console.cloud.google.com/logs/query)\n2. Select an existing Dataproc Metastore Google Cloud project.\n\n3. Under the **Resources** menu, select `Dataproc Metastore Service`.\n\n4. Under the **All logs** menu, select the log type that you want to\n see.\n\n### gcloud\n\nThe Google Cloud CLI has a group of commands, `gcloud logging`, that provide a\ncommand-line interface to the Cloud Logging API. To read your log entries,\nrun the following command: \n\n```\ngcloud logging read \\\n 'resource.type=\"metastore.googleapis.com/Service\"\n resource.labels.location=LOCATION\n resource.labels.service_id=SERVICE_ID'\n```\n\n### REST\n\nFollow the Logging API instructions to list log entries\n([entries.list](/logging/docs/reference/v2/rest/v2/entries/list)) by using\nthe API Explorer.\n\nDataproc Metastore service logs in Logging\n------------------------------------------\n\nDataproc Metastore exports request and system logs to\nCloud Logging.\n\nWhats next\n----------\n\n- [Cloud Logging documentation](/logging/docs)"]]