Google Cloud 콘솔의 모든 위치에서 Google Cloud 프로젝트 또는 조직 ID를 가져오려면 Google Cloud 프로젝트 및 조직 선택기에서 Google Cloud 프로젝트 목록을 펼치고 ID 열에서 Google Cloud 프로젝트 ID를 찾습니다.
로그 항목을 볼 수 없음
로그 항목이 표시되지 않으면 다음을 확인합니다.
올바른 Google Cloud 프로젝트가 선택되어 있는지 확인합니다.
Google Cloud 프로젝트가 로그를 생성하는 리소스를 사용하고 있는지, 해당 리소스에서 활동이 있는지 확인합니다. 새 Google Cloud 프로젝트인 경우에도 프로젝트가 생성되었다는 사실을 기록한 감사 로그가 있어야 합니다.
로그를 생성하는 리소스를 사용하고 있는지 확인하는 방법에 관한 자세한 내용은 리소스 유형에 서비스 매핑을 참고하세요.
범위 미세 조정 메뉴 설정에서 참조된 프로젝트 및 로그 보기의 로그 항목을 볼 권한이 있는지 확인합니다.
검색 범위를 조정하는 방법에 대한 자세한 내용은 범위 미세 조정을 참고하세요.
쿼리가 올바르지만 여전히 로그 항목이 표시되지 않음
Logging 보관 기간보다 오래된 로그 항목은 볼 수 없습니다. 적용되는 로그 보관 기간은 로그 보관 기간을 참조하세요.
부하량이 높은 기간에는 로그를 Logging으로 전송하거나 로그를 수신하고 표시하는 데 지연이 발생할 수 있습니다.
타임스탬프가 미래로 지정된 로그 항목의 경우 현재 시간이 해당 타임스탬프에 '도달할 때'까지 로그 탐색기에 로그 항목이 표시되지 않습니다. 이는 일반적인 경우는 아니며 로그를 전송하는 애플리케이션의 시간차로 인해 발생할 수 있습니다.
쿼리 범위가 너무 커서 합리적인 시간 내에 완료할 수 없습니다. '작업을 완료하기 전에 기한이 지남'으로 표시될 수 있습니다. 쿼리를 더 구체적으로 만들거나 기간을 줄여보세요.
쿼리에서 오류를 반환함
버킷을 지정하지 않고 리소스에서 쿼리를 실행하면 Cloud Logging에서 Google Cloud 프로젝트의 싱크 기록을 사용하여 리소스에 대한 항목이 작성되었을 수 있는 위치를 확인합니다. Cloud Logging에서 항목이 작성되었을 수 있는 버킷을 200개 넘게 식별하면 쿼리가 Error: Invalid query 메시지와 함께 실패합니다.
이 문제를 해결하려면 쿼리 범위를 스토리지의 하위 집합으로 미세 조정합니다. 자세한 내용은 범위 미세 조정을 참조하세요.
쿼리 결과 기간이 쿼리와 일치하지 않음
쿼리 결과 및 로그 필드 창에 표시되는 로그 데이터는 히스토그램 타임라인에서 캡처한 시간 범위에 따라 조정됩니다. 히스토그램의 시간 제어나 시간 범위 선택기를 사용하여 히스토그램 타임라인을 조정합니다.
이러한 시간 제어를 조정해도 쿼리 창의 쿼리 표현식은 변경되지 않습니다.
타임스탬프가 있는 쿼리의 경우 시간 범위 선택기가 사용 중지됩니다.
쿼리는 타임스탬프 표현식을 시간 범위 제한으로 사용합니다.
쿼리가 타임스탬프 표현식을 사용하지 않는 경우 쿼리는 시간 범위 선택기를 시간 범위 제한으로 사용합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-04-21(UTC)"],[],[],null,["# Troubleshoot Logs Explorer\n\nThis document explains common log viewing issues, and describes how to use the\nGoogle Cloud console to view and troubleshoot configuration mistakes or\nunexpected results.\n\n### Download of logs fails\n\nYou are using the Logs Explorer and click\n*download* **Download**.\nThe command starts but then fails to complete or reports an error.\n\nTo resolve this issue, reduce the time it takes for the command to execute\nby trying the following:\n\n- In the **Download logs** dialog, reduce the value of **Maximum log entries**.\n- Reduce the time period over which logs are queried.\n- In the query results toolbar, click **Hide similar entries** before you begin the download.\n\n\u003c!-- --\u003e\n\n- Modify your query to use [indexed fields](/logging/docs/analyze/custom-index).\n\n| **Note:** The download feature isn't intended for the bulk download of logs. You can [copy logs](/logging/docs/routing/copy-logs) to a Cloud Storage bucket.\n\n### Can't find console logs for a VM instance\n\nLogs written to the console of a Compute Engine instance might not be available in the Logs Explorer.\nTo view these logs, do the following:\n\n1. In the Google Cloud console, go to the **VM instances** page:\n\n [Go to **VM instances**](https://console.cloud.google.com/compute/instances)\n\n \u003cbr /\u003e\n\n If you use the search bar to find this page, then select the result whose subheading is\n **Compute Engine**.\n2. Select the instance, and then select **Serial port 1 (console)** in the\n **Logs** section of the page.\n\nYou can configure your instances such that their serial port output is\nsent to Cloud Logging. For more information, see\n[Enabling and disabling serial port output logging](/compute/docs/troubleshooting/viewing-serial-port-output#enable-stackdriver).\n\n### Get Google Cloud project or organization ID\n\nTo get a Google Cloud project or organization ID from anywhere in the\nGoogle Cloud console, expand the list of Google Cloud projects from the\nGoogle Cloud project and organization selector and find the\nGoogle Cloud project ID in the **ID** column.\n\n### Can't see log entries\n\nIf you don't see any log entries, check the following:\n\n- Verify that the correct Google Cloud project is selected.\n\n- Verify that your Google Cloud project is using resources that generate\n logs and that there\n is activity on those resources. Even if the Google Cloud project is\n new, it should have audit logs recording the fact that it was created.\n For information about how to verify that\n you're using a resource that generates logs, see\n [Mapping services to resource types](/logging/docs/api/v2/resource-list#resource-mappings).\n\n- Ensure that the time range isn't too narrow.\n\n- View your\n [current exclusion queries](/logging/docs/exclusions#viewing-exclusion-filters)\n to ensure that the logs you're looking for aren't accidentally excluded.\n\n- Ensure that you have permission to view the log entries in the projects and\n log views referenced by setting of the **Refine scope** menu.\n For information about how to adjust the scope of your search, see\n [Refine scope](/logging/docs/view/logs-explorer-interface#refine_scope).\n\n### My query is correct but I still don't see log entries\n\n- You can't see log entries that are older than the Logging\n retention period. See\n [Log retention periods](/logging/quotas#logs_retention_periods) for the\n logs retention period in effect.\n\n- During periods of heavy load, there could be delays in sending logs to\n Logging or in receiving and displaying the logs.\n\n- The Logs Explorer doesn't show log entries that have timestamps in the\n future until the current time has \"caught up\" with them. This is an unusual\n situation, probably caused by a time skew in the application sending the\n logs.\n\n- The query scope was set too large and couldn't complete within a reasonable\n amount of time. You might see this as \"deadline expired before\n operation could complete\". Try making your query more specific or reducing\n the time range.\n\n### Query returns an error\n\nIf you issue a query over a resource without specifying a bucket, then\nCloud Logging uses the history of the sinks in the Google Cloud project to\ndetermine where entries might have been written for that resource. If\nCloud Logging identifies more than 200 buckets where entries\nmight have been written, then the query fails with the message\n`Error: Invalid query`.\n\nTo resolve this issue, refine the scope of your query to a subset of the\nstorage. For more information, see\n[Refine scope](/logging/docs/view/logs-explorer-interface#refine_scope).\n\n### Query results time range doesn't match query\n\nThe logs data you see in the **Query results** and **Fields** pane adjusts\naccording to the time range captured by the histogram timeline. You adjust the\nhistogram timeline using the histogram's time controls or the\n[time-range selector](/logging/docs/view/building-queries#time-range).\nAdjusting these time controls doesn't alter\nthe query expression in the **Query** pane.\n\nWhen you have a query with a timestamp, the time-range selector is disabled.\nThe query uses the timestamp expression as its time-range restriction.\nIf a query doesn't use a timestamp expression, then the query uses the\ntime-range selector as its time-range restriction."]]