DevOps & SRE

Accelerate your developer productivity with Query Library

Our goal in Cloud Logging is to help increase developer productivity by streamlining the troubleshooting process. The time spent on writing and executing a query, and then analyzing the errors can impact developer productivity. Whether you’re troubleshooting an issue or analyzing your logs, finding the right logs quickly, is critical. 

That’s why we recently launched a Query Library and other new features to make querying your logs even easier. The Query Library in Cloud Logging makes it easier to find logs faster by using common queries.

Build queries faster with our templates

The new text search and drop-down features are designed to make querying something that you can achieve with a few mouse clicks. These features automatically generate the Logging query language necessary for you. The Query Library extends this simplicity with templates for common GCP queries.

1 Query Library.jpg

The Query Library is located in the query builder bar next to the Suggested queries. To help find the most relevant queries you’ll notice the following details:

  • Query categories – Each query is broken down into categories that can be used to easily narrow down to relevant queries. 

  • Query occurrences – To help you pick queries that have the most useful results, sparklines are displayed for queries that have logs in your project. 

  • Query details – Each query has a description along with the Logging query 

  • Run/Stream – Run the query or start streaming logs right from the library

  • Save – Save the query in your list of saved queries

2 Query Library.jpg

The road ahead

We’re committed to making Logs Explorer the best place to troubleshoot your applications running on Google Cloud. Over the coming months, we have many more changes planned to make Logs Explorer both easier and more powerful for all users. If you haven’t already, get started with the Logs Explorer and join the discussion in our Cloud Operations page on the Google Cloud Community site.