[[["わかりやすい","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-09-04 UTC。"],[],[],null,["# Reviewing logs with the Cloud Logging Logs Explorer\n\n| **Beta**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThis document provides information on how to use the Cloud Logging Logs\nViewer to review logs.\n\nBefore you begin\n----------------\n\n- Configure your application to\n [use the Cloud Logging API](/logging/docs/integrate/dotnet).\n\n- Sign in your account to access Google Cloud resources.\n\n - Select **Tools** -\\\u003e **Google Cloud Tools** -\\\u003e **Manage Accounts...** to select your account.\n\nAccessing Logs Explorer\n-----------------------\n\nTo access Cloud Logging Logs Explorer, select **Tools** -\\\u003e\n**Google Cloud Tools** -\\\u003e **Show Stackdriver Logs Explorer**.\n\nThe **Google Stackdriver Logging** tab opens.\n\nOr, you can open the Logs Explorer for a specific project from **Google Cloud\nExplorer** by selecting **Tools** -\\\u003e **Google Cloud Tools** -\\\u003e **Google Cloud\nExplorer** . Right click the project and select **Browse Stackdriver Logs**.\n\n### Getting around the interface\n\nThe **Logs Explorer** interface has the following major components:\n\n- A search bar to filter log entries by label or text search.\n\n- Drop down menus to filter the list by resources, logs, and severity levels.\n\n- **Jump to time** drop down menu to view a specific date and time in the logs.\n\n- A **Refresh** button to retrieve the latest logs in descending order.\n\n- **Auto load log stream** controls whether or not to display new log entries as\n they arrive.\n\n - Clicking **Play** starts the stream of the latest logs. The stream will\n stop if you scroll the logs display.\n\n - Clicking **Pause** stops the logs stream.\n\n- The table of log summaries that you can click to view the full details for\n individual log entries.\n\n- An **Expand all** down arrow at the top right corner of the log entries panel\n to show the details of all log entries. This action may take some time if\n the panel has a lot of log entries.\n\n- If available, a source link to locate the source code that generates the log\n entry.\n\nNavigating to source code\n-------------------------\n\n**Logs Explorer** allows you to navigate to the source code that generates a log\nentry. To enable this feature, you should build your project from a local git\nrepository, and you must add source location information to log entries.\n\n### Adding source location to your log\n\nConfigure your application to provide source code location information in the\nlogs:\n\n1. Write location information for the log entries using the\n [following sample from GitHub](https://github.com/GoogleCloudPlatform/dotnet-docs-samples/tree/master/logging/api/WithGitId).\n\n2. Deploy a `source_context.json` file at the root of the application.\n\n If you publish the solution via Cloud Tools for Visual Studio, the extension\n automatically generates and deploys the file.\n\nAfter you complete these steps, the log entries contain a **sourceLocation**\nfield with **File** and **Line** information. The optional **Function** line\ncan contain the assembly name, version, or function name.\n\nClicking the source link navigates to the source code if the source file is\naccessible.\n\nViewing the logs\n----------------\n\nIn the **Logs Explorer** interface, you can filter the log entries or search for\nspecific logs to display.\n\n### Filtering the logs\n\nYou can filter the log entries to see only those logs you are interested in.\n\n- In the resource type and instance drop-down menu, you can select all instances\n of a particular resource type you wish to see, or view a specific instance.\n For a list of resource types, see the\n [Monitored Resources and Services](/logging/docs/api/v2/resource-list).\n\n- In the log type drop-down menu, select the named logs you want to view or\n select **All logs**. The menu only shows the logs that the selected resource\n generates.\n\n- In the log severity drop-down menu, select the severity level you want to\n view. Selecting **All log levels** includes log entries that do not have a\n severity level.\n\n- In the **Jump to time** drop-down menu, select a date and time. Choose if you\n want to see logs **before** or **after** the selected timestamp.\n\nYou can also click **To Advanced Filter** to access the advanced filter bar\nwhere you can filter the log entries through queries. Click the\n[Advanced filter help](/logging/docs/view/advanced_filters) link for more\ninformation.\n\n### Searching the logs\n\nIn the search bar, search for keywords that appear in the log entries.\n\n### Showing similar logs\n\nYou can click the value of an individual field in the expanded log entry view\nand then either show or hide all log entries with the same value.\n\nWhen you show similar log entries, the advanced filter bar displays, where you\ncan edit the filter and click **Submit Filters** . Click the\n[Advanced filter help](/logging/docs/view/advanced_filters) link for more\ninformation."]]