Query and view log entries

This document describes how you query, view, and analyze log entries by using the Logs Explorer page of the Trusted Cloud console. You can query your log data and save your queries by issuing Logging API commands. You can also query your logs by using Google Cloud CLI.

The Logs Explorer page is designed to help you troubleshoot and analyze the performance of your services and applications. For example, a histogram displays the rate of errors. If you see a spike in errors or something that is interesting, you can locate and view the corresponding log entries.

The same query language is supported by the Cloud Logging API, the Google Cloud CLI, and the Logs Explorer. To simplify query construction, you can build queries by using menus, by entering text, and, in some cases, by using options included with the display of an individual log entry.

The Logs Explorer page doesn't support aggregate operations, like counting the number of log entries that contain a specific pattern.

What's next