You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blog-service/2024-11-28-search.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ We’re excited to announce the preview release of **Query Assist**, designed to
22
22
23
23
***Real-time syntax suggestions**. Get instant recommendations for syntax and operators to accelerate query creation and reduce errors.
24
24
***Schema-based field suggestions**. Automatically discover relevant keys and fields for structured data like JSON logs.
25
-
***Partial and full query predictions**. Anticipate the next operator or receive complete query suggestions based on your input.
25
+
***Partial query prediction**. Anticipate the next operator or receive partial query suggestions based on your input.
26
26
***Enhanced user experience**. Real-time error highlighting and intelligent suggestions provide a smooth and seamless query-building process.
27
27
28
28
These updates make it easier for both beginners and advanced users to craft accurate queries and analyze data efficiently. [Learn more](/docs/search/query-assist).
Copy file name to clipboardExpand all lines: docs/search/query-assist.md
+21-18Lines changed: 21 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,10 @@ description: Logs Query Assist improvements reduce the complexity of Sumo Logic
11
11
import useBaseUrl from '@docusaurus/useBaseUrl';
12
12
13
13
:::sumo Preview release
14
-
This is a Preview release. To learn more, contact your Sumo Logic account executive. [Register here](https://docs.google.com/forms/d/e/1FAIpQLSdtmzRn1NyAdk1rXGZrJrpQQwR2i9FKOYd3uKLwEzrkZGVrwQ/viewform).
14
+
This is a Preview release. [Register here](https://docs.google.com/forms/d/e/1FAIpQLSdtmzRn1NyAdk1rXGZrJrpQQwR2i9FKOYd3uKLwEzrkZGVrwQ/viewform). To learn more, contact your Sumo Logic account executive.
15
15
:::
16
16
17
-
Query Assist simplifies query-building in Sumo Logic by offering real-time syntax suggestions, schema prompts, and partial/full query predictions. These enhancements streamline the process for users at all skill levels, making it easier to write accurate and efficient queries.
17
+
Query Assist simplifies query-building in Sumo Logic by offering real-time syntax suggestions, schema prompts, and partial query prediction. These enhancements streamline the process for users at all skill levels, making it easier to write accurate and efficient queries.
18
18
19
19
This feature reduces the complexity of query building, enabling easier discovery of relevant fields, minimizing errors, and providing intelligent assistance for query creation.
20
20
@@ -28,49 +28,52 @@ This feature reduces the complexity of query building, enabling easier discovery
28
28
29
29
## How to get started
30
30
31
-
1.**Start a log search**. 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 typing your query.
32
-
2.**Leverage syntax and schema suggestions**. As you type, watch for real-time suggestions for fields and operators. Select options using your arrow keys and press `Tab` to auto-complete.
33
-
3.**Take advantage of predictions**. Use partial and full query predictions to build queries faster and more accurately.
34
-
4.**Review and correct errors**. Correct flagged errors before running your query.
31
+
1.**Start a log search**. 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** and begin typing your query.
32
+
2.**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 auto-complete.
33
+
3.**Take advantage of predictions**. Use partial query predictions to build queries faster and more accurately.
34
+
4.**Review and correct errors**. Address flagged errors before running your query to ensure it executes as intended.
35
+
5.**Use the Copilot code editor field**. If you’re using Copilot, edit or update your query directly in the [code editor field](/docs/search/copilot/#edit-query-code) and take advantage of autocomplete suggestions for further refinement.
35
36
36
37
## Features
37
38
38
-
## Token-by-token prediction and auto-complete
39
+
###Token-by-token prediction and auto-complete
39
40
40
41
Get real-time suggestions for query completion as you type, with token-by-token predictions helping to quickly finish your queries.
41
42
42
-
As you start typing a query, such as `_sourceCategory=`, the system provides **token-by-token predictions** and auto-completes your query with relevant metadata options. Simply use the `Tab` key to accept the suggestion. For example, after typing `status=`, you will be prompted with likely values such as `success`, `error`, or other status codes based on your previous queries or log data.
43
+
As you start typing a query, such as `_sourceCategory=`, the system provides token-by-token predictions and auto-completes your query with relevant metadata options. Simply use the `Tab` key to accept the suggestion.
43
44
44
-
## Schema discovery and field suggestions
45
+
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 `st` might suggest `status`, `startsWith`, or other related operators.
46
+
47
+
For example, after typing `status=`, you will be prompted with likely values such as `success`, `error`, or other status codes based on your previous queries or log data.
48
+
49
+
### Schema discovery and field suggestions
45
50
46
51
Automatically receive suggestions for relevant fields in structured data like JSON logs, making field discovery much easier.
47
52
48
53
For structured logs like JSON, the system automatically suggests relevant fields such as `userID`, `eventType`, or `timestamp` as you type. This eliminates the need for manual inspection of logs, making it easier to filter and aggregate data.
49
54
50
-
## Next operator prediction
55
+
###Next operator prediction
51
56
52
-
The system intelligently predicts the next operator or offers full query suggestions based on your input, reducing manual effort.
57
+
The system intelligently predicts the next search operator or offers partial query suggestions based on your input, reducing manual effort.
53
58
54
-
When you type a query such as `source=logs | where status="error"`, the system predicts the **next operator** and offers suggestions like `count by employeeID` or other common fields. This minimizes manual input and ensures your queries are accurate and aligned with standard query patterns.
59
+
When you type a query such as `source=logs | where status="error"`, the system predicts the next operator and offers suggestions like `count by employeeID` or other common fields. This minimizes manual input and ensures your queries are accurate and aligned with standard query patterns.
55
60
56
-
## Real-time error highlighting and feedback
61
+
###Real-time error highlighting and feedback
57
62
58
63
Errors are flagged as you type, with immediate suggestions for corrections, ensuring a seamless query-writing experience.
59
64
60
65
As you write queries, the system highlights any syntax errors in real-time. For example, if you forget to close parentheses or misspell an operator, the system will flag it and provide suggestions to fix the issue immediately, preventing unnecessary troubleshooting.
61
66
62
-
## Contextual auto-complete and field discovery
67
+
###Contextual auto-complete and field discovery
63
68
64
69
Suggestions are ranked based on your organization’s common queries, making query completion smarter and more relevant.
65
70
66
71
The system ranks suggestions based on common queries from your organization or your own previous queries. This ensures that your auto-complete options are not only relevant but also contextually accurate, speeding up the query-writing process.
67
72
68
-
73
+
<!-- hold off
69
74
### Need more help?
70
-
71
75
Try [Sumo Logic Copilot](/docs/search/copilot), our AI-powered assistant that helps you write and execute natural language log search queries.
72
-
73
-
<!-- Copilot with Query Assist video: https://docs.google.com/presentation/d/1HCaXROM6zrnapLaLo3gDm-S1uQPGAS0p9AquuLwiFXA/edit#slide=id.g3145b7936cd_0_8 -->
76
+
Copilot with Query Assist video: https://docs.google.com/presentation/d/1HCaXROM6zrnapLaLo3gDm-S1uQPGAS0p9AquuLwiFXA/edit#slide=id.g3145b7936cd_0_8 -->
0 commit comments