|
| 1 | +--- |
| 2 | +id: simplified-query-writing |
| 3 | +title: Simplified Query Writing Enhancements (Beta) |
| 4 | +description: Our new simplified query writing enhancements focus on delivering a frictionless query experience with real-time syntax suggestions, schema suggestions, and partial/full query predictions. |
| 5 | +--- |
| 6 | + |
| 7 | +<head> |
| 8 | + <meta name="robots" content="noindex" /> |
| 9 | +</head> |
| 10 | + |
| 11 | +import useBaseUrl from '@docusaurus/useBaseUrl'; |
| 12 | + |
| 13 | +<p> <a href="/docs/beta"><span className="beta">Beta</span></a> </p> |
| 14 | + |
| 15 | +This feature is in Beta. To participate, contact your Sumo Logic account executive. |
| 16 | + |
| 17 | +Our new **Simplified Query Writing** enhancements focus on delivering a frictionless query experience with real-time syntax suggestions, schema suggestions, and partial/full query predictions. These features make it easier for both novice and advanced users to build accurate and efficient queries. |
| 18 | + |
| 19 | +## Key features |
| 20 | + |
| 21 | +* **Syntax suggestions**. Get real-time syntax suggestions as you type, reducing errors and speeding up query creation. |
| 22 | +* **Schema suggestions**. Automatically receive schema-related suggestions, helping you navigate complex data structures like JSON logs with ease. |
| 23 | +* **Partial/Full query suggestions**. Based on your input, the system predicts and suggests the next operator or even a full query, streamlining the process. |
| 24 | +* **Frictionless query experience**. An intuitive interface highlights errors and provides immediate fixes, allowing for smooth and seamless query building. |
| 25 | +* **Key-Value pair support**. Offers enhanced suggestions for structured logs like JSON, recognizing keys and values for more precise filtering. |
| 26 | +* **Facet identification for JSON Logs**. Identifies key facets (e.g., timestamp, status) to help refine your queries. |
| 27 | + |
| 28 | +## How to use |
| 29 | + |
| 30 | +### 1. Start a Log Search |
| 31 | + |
| 32 | +From the [**Classic UI**](/docs/get-started/sumo-logic-ui-classic) or the [**New UI**](/docs/get-started/sumo-logic-ui), go to **Log Search** to start crafting your query. |
| 33 | + |
| 34 | +### 2. Syntax suggestions |
| 35 | + |
| 36 | +1. Begin typing in the query field to see syntax and operator suggestions. |
| 37 | +2. Use arrow keys or your mouse to navigate and select the desired option. |
| 38 | + |
| 39 | +### 3. Schema suggestions |
| 40 | + |
| 41 | +1. For structured logs (like JSON), Intellisense will offer schema-based suggestions, helping you choose relevant keys (e.g., `status`, `timestamp`) for more accurate queries. |
| 42 | + |
| 43 | +### 4. Partial/Full query predictions |
| 44 | + |
| 45 | +1. After entering a filtering condition (e.g., `where status="error"`), the system will predict and suggest the next logical operator or a complete query, saving you time. |
| 46 | + |
| 47 | +### 5. UI enhancements |
| 48 | + |
| 49 | +1. As you write, syntax issues are automatically highlighted, with real-time suggestions for corrections. |
| 50 | + |
| 51 | +### 6. JSON facet identification |
| 52 | + |
| 53 | +1. When working with JSON logs, relevant facets like `status` and `timestamp` will be suggested to refine your query further. |
| 54 | + |
| 55 | +These enhancements ensure a smoother, more efficient query-building experience, making it easier to analyze your data. |
| 56 | + |
| 57 | +<!-- |
| 58 | +## Example |
| 59 | +Use meeting query |
| 60 | +--> |
| 61 | + |
| 62 | +## Need more help? |
| 63 | + |
| 64 | +Try [Sumo Logic Copilot](/docs/search/copilot), our AI-powered assistant that helps you write queries in plain English and auto-generates them for you. |
0 commit comments