[[["易于理解","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-08-25。"],[],[],null,["# View instance logs for Looker (Google Cloud core)\n\nThis page describes how to find and use Cloud Logging to view and query logs\nfor your Looker (Google Cloud core) instance.\n\nLooker (Google Cloud core) uses Cloud Logging. See the [cloud logging documentation](/logging/docs)\nfor complete information.\n\nRequired roles\n--------------\n\nTo understand the required roles for Cloud Logging, visit the [Access control with IAM](/logging/docs/access-control) page of the Cloud Logging documentation.\n\nView logs\n---------\n\nTo view logs for your Looker (Google Cloud core) instance log entries, select one of the following options: \n\n### console\n\n\n1. In the Google Cloud console, go to **Logging \\\u003e Logs Explorer**\n2. Select an existing Looker (Google Cloud core) project at the top of the page.\n3. In the Query builder, add the following:\n - Resource: Select **Looker instance**. In the dialog, select a Looker (Google Cloud core) instance ID.\n - Log names: Scroll to the Looker section and select appropriate log files for your instance. For example:\n - looker.googleapis.com%2FContentAccess\n - looker.googleapis.com%2FUserLogin\n - Severity: Select a log level.\n - Time range: Select a preset or create a custom range.\n\n\u003cbr /\u003e\n\n### gcloud\n\n\nUse the [`gcloud logging`](/sdk/gcloud/reference/logging/read)\ncommand to view log entries.\n\n\u003cbr /\u003e\n\n```bash\ngcloud logging read \"resource.type=looker.googleapis.com/Instance\" \\\n--project=PROJECT_ID \\\n--limit=10 \\\n--format=json\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of the Google Cloud project in which the Looker (Google Cloud core) instance resides.\n\nYou may also include the following flags:\n\n- The [`limit`](/sdk/gcloud/reference/logging/read#--limit) flag is an optional parameter that indicates the maximum number of entries to return.\n\nTroubleshoot\n------------\n\nWhat's next\n-----------\n\n- [Looker (Google Cloud core) audit logging](/looker/docs/looker-core-audit-logging)"]]