PROJECT_ID: o ID do projeto Google Cloud em que a instância do Looker (núcleo do Google Cloud) está armazenada.
Também é possível incluir as seguintes flags:
A flag limit
é um parâmetro opcional que indica o número máximo de entradas a serem
retornadas.
Resolver problemas
Problema
Solução de problemas
Os arquivos de registro estão incompletos.
Verifique o nível de gravidade em que a geração de registros está configurada. As mensagens de registro abaixo do nível configurado serão descartadas.
Informações de operações não encontradas nos registros.
Você quer encontrar mais informações sobre uma operação.
Por exemplo, um usuário foi excluído, mas não é possível descobrir quem fez isso.
Os registros mostram que a
operação foi iniciada, mas não fornecem mais informações. Você precisa
ativar
o registro de auditoria para que informações de identificação detalhadas e pessoais
(PII, na sigla em inglês) sejam registradas.
Os arquivos de registros são difíceis de ler.
É melhor ver os registros como JSON ou texto. Use o comando
gcloud logging read
junto com os comandos de pós-processamento do Linux para fazer o download dos registros.
Para fazer o download dos registros como JSON, use o seguinte código:
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 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)"]]