Jump to Content
DevOps & SRE

Accelerate your developer productivity with Query Library

August 11, 2022
Afrina M

Product Manager, Google Cloud

Charles Baer

Product Manager, Google Cloud

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.

https://storage.googleapis.com/gweb-cloudblog-publish/images/1_Query_Library.max-2000x2000.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

https://storage.googleapis.com/gweb-cloudblog-publish/images/2_Query_Library.max-1700x1700.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.

Posted in