Skip to content

Commit 0bfe25a

Browse files
authored
Moved Copilot edits from #3793 (#4223)
1 parent 0e81ada commit 0bfe25a

File tree

1 file changed

+95
-35
lines changed

1 file changed

+95
-35
lines changed

docs/search/copilot.md

Lines changed: 95 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
id: copilot
33
title: Sumo Logic Copilot - Feature Preview
44
sidebar_label: Copilot 🤖
5+
description: Streamline your log analysis with Sumo Logic Copilot, our AI-based assistant designed to simplify log analysis by allowing you to ask questions in plain English and providing search suggestions without the need to write log queries.
56
keywords:
67
- copilot
78
- artificial intelligence
@@ -17,18 +18,39 @@ keywords:
1718
import Iframe from 'react-iframe';
1819
import useBaseUrl from '@docusaurus/useBaseUrl';
1920

20-
:::info
21+
<p><a href="/docs/beta"><span className="beta">Preview Release</span></a></p>
2122
This is a Preview release. To learn more, contact your Sumo Logic account executive.
22-
:::
2323

24-
Sumo Logic Copilot is an AI-based assistant that streamlines log analysis insights by allowing you to ask questions in plain English and provides search suggestions, all without your having to write a log query.
24+
Sumo Logic Copilot is an AI-based assistant designed to simplify log analysis by allowing you to ask questions in plain English and providing search suggestions without the need to write log queries.
2525

26-
In this document, you'll learn the recommended Copilot workflow as well as best practices.
26+
### Key features
2727

28-
<details>
29-
<summary>Click here to watch a step-by-step video investigation using Copilot.</summary>
28+
* **AI-curated insights**. Get customized insights tailored to your data.
29+
* **Natural language queries**. Ask questions in plain English.
30+
* **Pre-built insights**. Utilize pre-built insights to accelerate your workflow.
31+
* **Root cause analysis**. Quickly identify the root cause of issues with AI assistance.
32+
33+
### Who benefits from Copilot?
34+
35+
Copilot is ideal for:
36+
37+
* **On-call engineers**. Accelerate time to resolution for application insights.
38+
* **Security engineers**. Quickly obtain security insights.
39+
40+
### How Copilot helps
41+
42+
Copilot combines pre-built insights with the ability to ask questions of your logs in natural English, helping you to:
43+
44+
* **Find root causes faster**. Use AI to quickly pinpoint issues.
45+
* **Enhance efficiency**. Streamline the log analysis process.
46+
47+
48+
## Sample Copilot queries
3049

3150
<!-- add micro lesson video when published-->
51+
<!-- replace with https://www.youtube.com/watch?v=QrRvN2Bg4NY ? -->
52+
53+
In the scenario depicted in the video, Copilot is leveraged to investigate a security issue where it appears AWS CloudTrail access keys were leaked outside an organization.
3254

3355
<Iframe url="https://player.vimeo.com/video/939372059?badge=0&amp;autopause=0&amp;player_id=0&amp;app_id=58479"
3456
width="854px"
@@ -42,40 +64,71 @@ In this document, you'll learn the recommended Copilot workflow as well as best
4264
allowfullscreen
4365
/>
4466

67+
To recap the steps taken:
4568

46-
In the scenario depicted in the video, we leverage Copilot to investigate a security issue: AWS CloudTrail access keys being leaked outside an organization. Here's a recap:
47-
48-
1. First, we select the data source for AWS CloudTrail audit logs.
49-
1. Launch our log investigation by clicking the AI-suggested insight `Count logs by eventname`, which translates the insight to a log query and renders results.
50-
1. Refine query by applying the suggestion `Count logs by eventname, access key and sourceIp`.
51-
1. Filter for Create and Authorize events, as attackers often create new resources during a breach. We find an anomaly with `AuthoritySecurityGroupIngress` events.
52-
1. Provide feedback to enhance the AI's accuracy stating that the queries have been accurate so far.
53-
1. Add the security `groupid` to the prompt to tabulate events containing that data.
69+
1. First, the data source is selected for AWS CloudTrail audit logs.
70+
1. Launch the log investigation by clicking the AI-suggested insight `Count logs by eventname`, which translates the insight to a log query and renders results.
71+
1. The query is refined by applying the suggestion `Count logs by eventname, access key and sourceIp`.
72+
1. The filter is applied for Create and Authorize events; attackers often create new resources during a breach. You'll then see an anomaly with `AuthoritySecurityGroupIngress` events.
73+
1. Feedback is provided back to Sumo Logic to enhance the AI's accuracy stating that the queries have been accurate so far.
74+
1. The security `groupid` is added to the prompt to tabulate events containing that data.
5475
1. Focus on a specific access key, `ABCDEFGOYCM3PIKNOVRA`, noting `PutRolePolicy` events indicating permission elevation. Multiple AWS accounts are impacted.
55-
1. We conclude that the access key was used to modify permissions, providing the attacker with a potential network entry point. Remediation would involve disabling the key, blocking the source IP, and further log analysis.
56-
</details>
5776

58-
## Step 1: Open Copilot
77+
You can conclude that the access key was used to modify permissions, providing the attacker with a potential network entry point. Remediation would involve disabling the key, blocking the source IP, and further log analysis.
78+
79+
<!--
80+
### Security example
81+
82+
This video demonstrates how to use Copilot to analyze AWS CloudTrail data by reviewing AI-curated suggestions, refining searches with natural language prompts, and launching an AI-generated dashboard for root cause analysis and sharing.
83+
84+
<Iframe url="https://www.youtube.com/embed/QrRvN2Bg4NY?si=Bsc2mRbqMPq8bsqg"
85+
width="854px"
86+
height="480px"
87+
title="Copilot Demo"
88+
id="myId"
89+
className="video-container"
90+
display="initial"
91+
position="relative"
92+
allow="accelerometer; autoplay=1; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
93+
allowfullscreen
94+
/>
95+
96+
Here's a recap:
97+
98+
1. **Select AWS CloudTrail**. Start by selecting AWS CloudTrail as the data source.
99+
1. **Review Suggestions**. Look at the **Suggestions** section where AI-curated natural language insights are provided, customized for the specific AWS CloudTrail data.
100+
1. **Select a Suggestion**. Choose the suggestion `Count logs by eventname`.
101+
1. **Refine Search**. Enhance your search for log anomalies by adding `access key and sourceIp` to the prompt. No need to edit the query code.
102+
1. **Filter Results**. Narrow down the results by adding `eventname contains Create` to the prompt.
103+
1. **Review Recommendations**. Quickly review AI-driven recommendations to identify attacker TTPs (Tactics, Techniques, and Procedures).
104+
1. **Launch Dashboard**. Launch an AI-generated dashboard directly from the UI for root cause analysis.
105+
-->
106+
107+
## How to use Copilot
108+
109+
In this section, you'll learn the recommended workflow for using Copilot effectively, along with best practices to maximize its benefits.
110+
111+
### Step 1: Open Copilot
59112

60113
To start using Copilot, navigate to the **Copilot** tab on the Sumo Logic home page.
61114

62115
<img src={useBaseUrl('img/search/copilot/copilot-tab.png')} alt="Copilot tab" style={{border: '1px solid gray'}} width="250" />
63116

64-
## Step 2: Select a source category
117+
### Step 2: Select a source category
65118

66119
Click **Select Source Category** - the source expression box - and type/select the data source of the log messages you want to investigate.
67120

68121
<img src={useBaseUrl('img/search/copilot/source-category.png')} alt="Copilot source category" style={{border: '1px solid gray'}} width="600" />
69122

70-
## Step 3: Execute a prompt
123+
### Step 3: Execute a prompt
71124

72-
### Suggestions (recommended)
125+
#### Suggestions (recommended)
73126

74127
Under **Suggestions** > **Explore**, click on any of the prebuilt suggested prompts to start your investigation. For example:
75128

76129
<img src={useBaseUrl('img/search/copilot/explore.png')} alt="Copilot time period" style={{border: '1px solid gray'}} width="600" />
77130

78-
### Manual entry
131+
#### Manual entry
79132

80133
:::tip
81134
Because manually typing an AI prompt requires careful precision for optimal performance, we recommend clicking the prebuilt [Suggestions](#suggestions-recommended) prompts, which have been proven effective through extensive testing.
@@ -89,19 +142,19 @@ You'll need to be very specific. Broad questions do not return good results. Whe
89142
If the statement in the **Ask Something...** field can't be translated into a query, this field will say "Failed translation".
90143
:::
91144

92-
## Step 4: Refine your investigation
145+
### Step 4: Refine your investigation
93146

94147
After executing a prompt, you'll see your current investigation summarized in plain text in the **Ask Something...** field. You can use these natural language query prompt ideas to launch and/or refine investigations.
95148

96149
Optionally, follow any of the below steps to refine your search.
97150

98-
### Refine
151+
#### Refine
99152

100153
Click any of the **Suggestions** > **Refine** prompts to apply suggested refinements to your existing investigation.
101154

102155
<img src={useBaseUrl('img/search/copilot/refine.png')} alt="Copilot time period" style={{border: '1px solid gray'}} width="600" />
103156

104-
#### Progressive refinement
157+
##### Progressive refinement
105158

106159
As a best practice, start with a simple prompt, verify the query translation, and refine it gradually. For example:
107160

@@ -111,10 +164,17 @@ As a best practice, start with a simple prompt, verify the query translation, an
111164
1. Further refinement. `Count of logs grouped by type, reason, kind, name. Filter logs where reason is FailedScheduling. Filter logs that contain redis-cluster in name. Sort the results by count`.
112165

113166
:::tip
114-
Express your chain of thought to the AI by breaking up the prompt into smaller problems that the AI can answer more accurately.
167+
168+
<details>
169+
<summary>Express your chain of thought to the AI by breaking up your prompt into smaller problems that the AI can answer more accurately. Click here to see an example.</summary>
170+
171+
<img src={useBaseUrl('img/search/copilot/copilot-periods.gif')} alt="Copilot time period" style={{border: '1px solid gray'}} width="700" />
172+
173+
</details>
174+
115175
:::
116176

117-
### Edit query code
177+
#### Edit query code
118178

119179
If needed, you can edit your log search query code.
120180

@@ -136,28 +196,28 @@ If needed, you can edit your log search query code.
136196
```
137197
:::
138198

139-
### Chart type
199+
#### Chart type
140200

141201
Select your preferred chart type, such as **Table**, **Bar**, **Column**, or **Line** view, to visualize your results.
142202

143203
<img src={useBaseUrl('img/search/copilot/chart-types.png')} alt="Copilot chart types" style={{border: '1px solid gray'}} width="300" />
144204

145-
### Time range
205+
#### Time range
146206

147207
1. Click the clock icon and select your desired time range from the dropdown.<br/><img src={useBaseUrl('img/search/copilot/time-period.png')} alt="Copilot time period" style={{border: '1px solid gray'}} width="400" />
148208
1. Click the search button.<br/><img src={useBaseUrl('img/search/copilot/search-button.png')} alt="Copilot search button" style={{border: '1px solid gray'}} width="250" />
149209

150-
### Feedback
151-
152-
We want your feedback! Let us know what you think by clicking the thumbs up or thumbs down icon. Optionally, you can also enter more context and information.
153-
154-
<img src={useBaseUrl('img/search/copilot/feedback-thumbs.png')} alt="Copilot feedback icons" style={{border: '1px solid gray'}} width="200" />
155-
156210

157-
## Step 5: Open in Log Search
211+
### Step 5: Open in Log Search
158212

159213
Click the **Open in Log Search** icon (insert pic), which will copy your query from Copilot over to a new Log Search, allowing you to utilize all of Sumo's search functionality. You can continue investigating, save the search, and remediate.
160214

161215
<img src={useBaseUrl('img/search/copilot/open-in-log-search.png')} alt="Copilot open in log search" style={{border: '1px solid gray'}} width="400" />
162216

163217
If you'd like to start over and begin a new investigation, click the **New Conversation** icon.<br/><img src={useBaseUrl('img/search/copilot/new-conversation.png')} alt="Copilot new conversation" style={{border: '1px solid gray'}} width="275" />
218+
219+
## Feedback
220+
221+
We want your feedback! Let us know what you think by clicking the thumbs up or thumbs down icon. Optionally, you can also enter more context and information.
222+
223+
<img src={useBaseUrl('img/search/copilot/feedback-thumbs.png')} alt="Copilot feedback icons" style={{border: '1px solid gray'}} width="200" />

0 commit comments

Comments
 (0)