PROJECT_ID: die ID des Google Cloud Projekts, in dem sich die Looker-Instanz (Google Cloud Core) befindet.
Sie können auch die folgenden Flags verwenden:
Das Flag limit ist ein optionaler Parameter, der die maximale Anzahl von zurückzugebenden Einträgen angibt.
Fehlerbehebung
Problem
Fehlerbehebung
Die Logdateien sind unvollständig.
Prüfen Sie die Wichtigkeitsstufe, mit der die Protokollierung konfiguriert ist. Protokollmeldungen unter der konfigurierten Ebene werden gelöscht.
Vorgangsinformationen wurden nicht in Logs gefunden.
Sie möchten weitere Informationen zu einem Vorgang erhalten.
Beispiel: Ein Nutzer wurde gelöscht, aber Sie können nicht sehen, wer ihn gelöscht hat.
Die Logs zeigen den gestarteten Vorgang an, enthalten jedoch keine weiteren Informationen. Für die Erfassung detaillierter und personenidentifizierbarer Informationen wie diesen müssen Sie Audit-Logging aktivieren.
Logdateien sind schwer zu lesen.
Sie können die Logs alternativ im JSON- oder Textformat aufrufen. Sie können zum Herunterladen der Logs den Befehl gcloud logging read zusammen mit Linux-Nachbearbeitungsbefehlen verwenden.
Verwenden Sie den folgenden Code, um die Protokolle im JSON-Format herunterzuladen:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-25 (UTC)."],[],[],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)"]]