Logs Query Assist - Preview
This is a Preview release. Register here. To learn more, contact your Sumo Logic account executive.
Query Assist enhances the query-building experience in Sumo Logic by providing real-time syntax suggestions, schema prompts, and partial query predictions. These enhancements simplify the process for users at all skill levels, making it easier to write accurate and efficient queries, enabling easier discovery of relevant fields, minimizing errors, and providing intelligent assistance for query creation.
Key enhancements
- Simplified learning curve. Receive syntax suggestions and schema prompts to write queries without extensive knowledge of query syntax.
- Enhanced autocomplete. Benefit from context-aware suggestions improve accuracy and efficiency, adapting to your queries and organizational patterns.
- Streamlined field discovery. Automatically receive suggestions for relevant fields, especially in structured data like JSON, reducing the need for manual searches.
How to get started
- Start a log search. From the Classic UI or the New UI, go to Log Search and begin typing your query.
- Leverage syntax and schema suggestions. As you type, watch for real-time suggestions for fields and operators. Use the arrow keys to navigate suggestions and press
Tab
to autocomplete. - Take advantage of predictions. Use partial query predictions to build queries faster and more accurately.
- Review and correct errors. Address flagged errors before running your query to ensure it executes as intended.
- Edit queries with the Copilot. If you’re using Copilot, modify your query directly in the code editor field and utilize autocomplete suggestions for further refinement.
Features
Token-by-token prediction and autocomplete
Get real-time suggestions for query completion as you type, with token-by-token predictions that help you quickly finish your queries.
- Operator suggestions. When typing the first letters of an operator, the system displays all matching operators related to those letters, helping you quickly find and select the appropriate one. For example, typing
co
might suggestcount
,count_distinct
,count_frequent
,compare
,compose
, or other related operators. - Value suggestions. When you start typing a source expression (e.g.
_sourceCategory=
), you will be provided with relevant built-in metadata field options to help autocomplete your query.
For example, as you start typing, the system provides relevant metadata options and autocompletes your query. Simply press the Tab
key to accept a suggestion.
Schema discovery and field suggestions
Automatically receive suggestions for relevant fields in structured data like JSON logs, making field discovery much easier.
- Field suggestions. For structured logs, the system automatically suggests relevant fields such as
userID
,eventType
, ortimestamp
as you type. This eliminates the need for manual inspection of logs, making it easier to filter and aggregate data.
Next operator prediction
The system intelligently predicts the next search operator or offers partial query suggestions based on your input, reducing manual effort.
- Operator predictions. When you type a query such as
source=logs | where status="error"
, the system predicts the next operator and offers suggestions likecount by employeeID
or other common fields, aligning your queries with standard patterns.
Contextual autocomplete and field discovery
Suggestions are ranked based on your organization’s common queries, making query completion smarter and more relevant.
- Contextual suggestions. The system ranks suggestions based on common queries from your organization or your own previous queries. This ensures that your autocomplete options are not only relevant but also contextually accurate, speeding up the query-writing process.
Feedback
We value your input on Query Assist! Share your thoughts on its usability, relevance, accuracy, user experience, and the ranking of suggestions (syntax, schema, single phrase).
Query Assist is a working name. Final naming and branding may change before release. All feature updates and release dates are subject to change.