Skip to content

Commit 927370d

Browse files
kimsaucejpipkin1
andauthored
Create New Monitor cleanup (#4593)
* Create New Monitor cleanup * anchor fixes * Update docs/alerts/monitors/create-monitor.md Co-authored-by: John Pipkin (Sumo Logic) <[email protected]> * Update docs/alerts/monitors/create-monitor.md Co-authored-by: John Pipkin (Sumo Logic) <[email protected]> * Update docs/alerts/monitors/create-monitor.md Co-authored-by: John Pipkin (Sumo Logic) <[email protected]> * Update docs/alerts/monitors/create-monitor.md Co-authored-by: John Pipkin (Sumo Logic) <[email protected]> * Update docs/alerts/monitors/create-monitor.md Co-authored-by: John Pipkin (Sumo Logic) <[email protected]> * image fixes --------- Co-authored-by: John Pipkin (Sumo Logic) <[email protected]>
1 parent 9c3c3c6 commit 927370d

33 files changed

+209
-193
lines changed

blog-service/2022/12-31.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ Update - GitHub Advanced Security dashboards are now available for the Sumo Logi
204204

205205
New - We’re happy to announce the release of Alert Grouping, which allows you to generate more than one alert from a given monitor by specifying a group condition on one or more fields. For example, rather than creating multiple monitors for each `service`, you could create one single monitor that notifies you when some metric (i.e., CPU utilization, error count) goes above the threshold for a given `service`. [Learn more](/docs/alerts/monitors/alert-grouping).
206206

207-
New - Configurable Resolution Window for Logs allows more quickly resolve alerts when the underlying issues are fixed. You can configure how long a monitor will wait, before resolving the alert, when the underlying issues was corrected (earlier the monitor waited one complete window before resolving). [Learn more](/docs/alerts/monitors/create-monitor/#trigger-type).
207+
New - Configurable Resolution Window for Logs allows more quickly resolve alerts when the underlying issues are fixed. You can configure how long a monitor will wait, before resolving the alert, when the underlying issues was corrected (earlier the monitor waited one complete window before resolving). See [Logs trigger types](/docs/alerts/monitors/create-monitor/#trigger-type-logs) and [Metrics trigger types](/docs/alerts/monitors/create-monitor/#trigger-type-metrics).
208208

209209
New - You can now access your monitor playbook as a template variable, `{{playbook}}`. You can reference this template variable to customize your notification payloads similar to any other template variable. [Learn more](/docs/alerts/monitors/alert-variables).
210210

docs/alerts/monitors/alert-response.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,25 @@ The following is an example Slack payload with the variable:
6363

6464
## Alerts list
6565

66-
The Alerts list shows all of your Alerts from monitors triggered within the past seven days. By default, the list is sorted by status (showing **Active** on top, followed by **Resolved**), and then chronologically by creation time.
66+
The Alerts list shows all of your Alerts from monitors triggered within the past 7 days. By default, the list is sorted by status (showing **Active** on top, followed by **Resolved**), and then chronologically by creation time.
6767

6868
[**Classic UI**](/docs/get-started/sumo-logic-ui-classic). To access the Alerts list, click the bell icon in the top menu. <br/> <img src={useBaseUrl('img/alerts/alert-list-page-bell-border.png')} alt="alert-list-page-bell-border" width="300"/>
6969

7070
[**New UI**](/docs/get-started/sumo-logic-ui/). To access the Alerts list, in the main Sumo Logic menu select **Alerts > Alert List**. You can also click the **Go To...** menu at the top of the screen and select **Alert List**.
71-
7271

7372
To filter or sort by category (e.g., **Name**, **Severity**, **Status**), you can use the search bar or click on a column header.<br/>![search alert list.png](/img/monitors/search-alert-list.png)
7473

7574
:::info Limitations
7675
The Alerts list displays up to 1,000 alerts.
7776
:::
7877

79-
### Resolve alerts
78+
### Resolving alerts
8079

8180
To resolve an alert, click a row to select it, then click **Resolve**.
8281

8382
### Translating thresholds
8483

85-
Threshold translating allows you to open the Alert Response Page in the **Metrics Explorer** that helps you to easily view the threshold associated with an alert. This also helps you to understand how your monitor's thresholds are translating into metrics and compare the threshold values set in a monitor with the data displayed in the Metrics Explorer chart.
84+
Threshold translating allows you to open the Alert Response page in the **Metrics Explorer** that helps you to easily view the threshold associated with an alert. This also helps you to understand how your monitor's thresholds are translating into metrics and compare the threshold values set in a monitor with the data displayed in the Metrics Explorer chart.
8685

8786
For example, when you open an alert response page in Metrics Explorer, you can see critical thresholds defined with some number. You can then see that this threshold is also applied and enabled in the Metrics Explorer view, with exactly the same number defined.<br/> <img src={useBaseUrl('img/alerts/arp-metrics-explorer.png')} alt="arp-metrics-explorer" width="800"/>
8887

@@ -99,7 +98,7 @@ To view the Alert Response chart in Metrics Explorer, follow the steps below:
9998
1. Use this feature to compare the threshold values set in a monitor with the data displayed in the Metrics Explorer graph and gain a better understanding of how your monitors are translating into metrics.
10099

101100
:::note
102-
Note that the same threshold translating functionality supports to [Create Monitors from the Metrics Explorer](/docs/alerts/monitors/create-monitor/#from-your-metrics-explorer) and [Opening Monitor in the Metrics Explorer](/docs/alerts/monitors/settings/#view-in-metrics-explorer).
101+
Note that the same threshold translating functionality supports to [Create Monitors from the Metrics Explorer](/docs/alerts/monitors/create-monitor/#from-metrics-explorer) and [Opening Monitor in the Metrics Explorer](/docs/alerts/monitors/settings/#view-in-metrics-explorer).
103102
:::
104103

105104

@@ -111,7 +110,7 @@ An Alert provides curated information to on-calls in order for them to troublesh
111110
* **Alert Details**. Overview of the alert that was triggered to help you understand the issue and its potential impact. 
112111
* **Alert Context**. System curated context helps you understand potential underlying symptoms within the system that might be causing the issue.
113112

114-
### Alert Details
113+
### Alert details
115114

116115
The details section provides:
117116
* a chart to visualize the alerting KPI before and during the alert.
@@ -154,13 +153,13 @@ Below this, as you scroll down on the page, you'll see context cards covered in
154153
* Related Alerts and Monitor History show the top 250 alerts.
155154
:::
156155

157-
### Context Cards
156+
### Alert context cards
158157

159158
**Alert Context** provides additional insights that the system has discovered automatically by analyzing your data. The system uses artificial intelligence and machine learning to track your logs and metrics data and find interesting patterns in the data that might help explain the underlying issue and surfaces them in the form of context cards.
160159

161160
Depending on the type of data an alert is based on (metrics or logs) and the detection method (static or outlier), you'll see different context cards. You will see a progress spinner labeled **Analyzing alert content** at the bottom of the window when cards are still being loaded. It may take a minute for some cards to load.<br/> ![analyzing alert content.png](/img/monitors/analyzing-alert-content.png)
162161

163-
### Log Fluctuations
162+
### Log fluctuations
164163

165164
This card detects different signatures in your log messages using [LogReduce](/docs/search/logreduce) such as errors, exceptions, timeouts, and successes. It compares log signatures trends with a normal baseline period and surfaces noteworthy changes in signatures.
166165

@@ -315,7 +314,7 @@ To cancel an inherited subscription, you'll need to remove the subscription from
315314
316315
Alert notification preferences give you granular control over specific monitor activity you want to follow.<br/><img src={useBaseUrl('img/alerts/alert-preferences.png')} alt="alert-list-page-bell-border" width="400"/>
317316
318-
1. [**Classic UI**](/docs/get-started/sumo-logic-ui-classic). In the main Sumo Logic menu, select your username and then **Preferences**. <br/>[**New UI**](/docs/get-started/sumo-logic-ui). In the top menu, select your username and then **Preferences**.
317+
1. [**Classic UI**](/docs/get-started/sumo-logic-ui-classic). In the main Sumo Logic menu, select your username and then **Preferences**. <br/>[**New UI**](/docs/get-started/sumo-logic-ui). In the top menu, select your username and then **Preferences**.
319318
2. Click on any of the following checkboxes to enable your desired preferences:
320319
* **Display alert badge when my subscribed monitors are triggered**. the bell icon is displayed in the top nav
321320
* **Notify about only subscribed monitors**. the bell icon will only push notifications for monitors you're subscribed to

docs/alerts/monitors/alert-variables.md

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Variables must be enclosed by double curly brackets (`{{ }}`). Unresolved variab
2323
| `{{Query}}` | The query used to run the alert. | &#9989;| &#9989;|
2424
| `{{QueryURL}}` | The URL to the logs or metrics query within Sumo Logic. | &#9989;| &#9989;|
2525
| `{{ResultsJson}}` | JSON object containing the query results that triggered the alert. A maximum of 200 aggregate results or 10 raw messages for this field can be sent via webhook. | &#9989;| &#9989;<br/>Not available with Email notifications |
26-
| `{{ResultsJson.fieldName}}` | The value of the specified field name. For example, the payload specification `{{ResultsJson.client_ip}} had {{ResultsJson.errors}} errors` would result in a subject line like this: `70.69.152.165 had 391 errors`.<br/><br/>A maximum of 200 aggregate results or 10 raw messages for this field can be sent via webhook.<br/><br/>A field name must match (case-insensitive) the field from your search and must be alphanumeric characters, underscores, and spaces. If you have a field name that has an unsupported character, use the [`as`](../../search/search-query-language/search-operators/as.md) operator to rename it.<br/><br/>You can return a specific result by providing an array index value in bracket notation such as `{{ResultsJson.fieldName}}[0]` to return the first result.<br/><br/>**Reserved Fields**<br/>The following are reserved field names. They are generated by Sumo Logic during collection or search operations.<ul><li>_raw - Message</li><li>_messagetime - Time</li><li>_sourceHost - Host</li><li>_sourceCategory - Category</li><li>_sourceName - Name</li><li>_collector - Collector</li><li>_timeslice</li><li>_signature</li></ul> | &#9989;| &#9989;<br/>Email notifications only return the first result. |
26+
| `{{ResultsJson.fieldName}}` | The value of the specified field name. For example, the payload specification `{{ResultsJson.client_ip}} had {{ResultsJson.errors}} errors` would result in a subject line like this: `70.69.152.165 had 391 errors`.<br/><br/>A maximum of 200 aggregate results or 10 raw messages for this field can be sent via webhook.<br/><br/>A field name must match (case-insensitive) the field from your search and must be alphanumeric characters, underscores, and spaces. If you have a field name that has an unsupported character, use the [`as`](../../search/search-query-language/search-operators/as.md) operator to rename it.<br/><br/>You can return a specific result by providing an array index value in bracket notation such as `{{ResultsJson.fieldName}}[0]` to return the first result.<br/><br/>**Reserved Fields**<br/>The following are reserved field names. They are generated by Sumo Logic during collection or search operations.<ul><li>`_raw` - Message</li><li>_messagetime - Time</li><li>`_sourceHost` - Host</li><li>`_sourceCategory` - Category</li><li>`_sourceName` - Name</li><li>`_collector` - Collector</li><li>`_timeslice`</li><li>`_signature`</li></ul> | &#9989;| &#9989;<br/>Email notifications only return the first result. |
2727
| `{{NumQueryResults}}` | The number of results the query returned. Results can be raw messages, time-series, or aggregates.<br/>An aggregate query returns the number of aggregate results; displayed in the **Aggregates** tab of the [Search page](/docs/search).<br/>A non-aggregate query returns the number of raw results; displayed in the **Messages** tab of the [Log Search](/docs/search) page. | &#9989;| &#9989;|
2828
| `{{Id}}` | The unique identifier of the monitor or search that triggered the alert. For example, `00000000000468D5`. | &#9989;| &#9989;|
2929
| `{{DetectionMethod}}` | This is the type of Detection Method used to detect alerts. Values are based on static or outlier triggers and data type, either logs or metrics. The value will be either `LogsStaticCondition`, `MetricsStaticCondition`, `LogsOutlierCondition`, `MetricsOutlierCondition`, `LogsMissingDataCondition`, `MetricsMissingDataCondition`, or `StaticCondition` (deprecated). | &#9989;| &#9989;|
@@ -37,7 +37,37 @@ Variables must be enclosed by double curly brackets (`{{ }}`). Unresolved variab
3737
| `{{SourceURL}}` | The URL to the configuration or status page of the monitor in Sumo Logic. | &#9989;| &#10060; |
3838
| `{{AlertResponseUrl}}` | When your monitor is triggered, it will generate a URL and provide it as the value of this variable where you can use it to open alert response. | &#9989;| &#10060; |
3939
| `{{AlertName}}` | Name of the alert that will be displayed on the alert page. | &#9989;| &#9989;|
40-
| `{{Playbook}}` | Allows you to access the [playbook content](/docs/alerts/monitors/create-monitor#trigger-type) that was configured as part of the initial monitor setup. | &#9989;| &#9989;|
40+
| `{{Playbook}}` | Allows you to access the [playbook content](/docs/alerts/monitors/create-monitor/#step-4-playbook-optional) configured as part of your initial monitor setup. | &#9989;| &#9989;|
41+
42+
:::info Legacy variables
43+
44+
Here are legacy variables available for alert notifications from metrics monitors and Scheduled Searches.
45+
46+
<details>
47+
<summary>Click to view</summary>
48+
49+
| Variables | Description | Metrics Monitors | Scheduled Searches |
50+
| :-- | :-- | :-- | :-- |
51+
| `{{SearchName}}` | Description of the saved search or monitor. In the delivered payload, this variable is replaced with the Name you assigned to the search or monitor when you created it. | &#9989;| &#9989;|
52+
| `{{SearchDescription}}` | Description of the saved search or monitor. In the delivered payload, this variable is replaced by the Description you assigned to the search or monitor when you created it. | &#9989;| &#9989;|
53+
| `{{SearchQuery}}` | The query used to run the saved search. In the delivered payload, this variable is replaced by your saved search query or metric query. | &#9989;| &#9989;|
54+
| `{{SearchQueryUrl}}` | The URL to the search or metrics query. In the delivered payload, this is a URL that you can click to run the saved logs or metric query. | &#9989;| &#9989;|
55+
| `{{TimeRange}}` | The time range that triggered the alert. | &#9989;| &#9989;|
56+
| `{{FireTime}}` | The start time of the log search or metric query that triggered the notification. | &#9989;| &#9989;|
57+
| ` {{AggregateResultsJson}}` | JSON object containing search aggregation results. A maximum of 200 aggregate results can be sent via webhook. | &#10060; | &#9989; <br/>Not available with Email notifications |
58+
| `{{RawResultsJson}}` | JSON object containing raw messages. A maximum of 10 raw messages can be sent via webhook. | &#10060; | &#9989;<br/>Not available with Email notifications |
59+
| `{{NumRawResults}}` | Number of results returned by the search. | &#10060; | &#9989;|
60+
| `{{Results.fieldname}}` | The value returned from the search result for the specified field. For example, this payload specification:<br/>`{{Results.client_ip}} had {{Results.errors}} errors`<br/>Results in a subject line like this:<br/>`70.69.152.165 had 391 errors`<br/>A maximum of 200 aggregate results or 10 raw messages for this field can be sent via webhook.<br/>A field name must match (case-insensitive) the field from your search and must be **alphanumeric characters**, **underscores**, and b. If you have a field name that has an unsupported character use the [as](../../search/search-query-language/search-operators/as.md) operator to rename it. | &#9989;| &#9989;|
61+
| `{{AlertThreshold}}` | The condition that triggered the alert (for example, above 90 at least once in the last 5 minutes) | &#9989;| &#10060; |
62+
| `{{AlertSource}}` | The metric and sourceHost that triggered the alert, including associated tags for that metric. | &#9989;| &#10060; |
63+
| `{{AlertGroup}}` | The alert grouping that triggered the alert, including associated values for that metric. | &#9989;| &#10060; |
64+
| `{{AlertSource.fieldname}}` | The value returned from the AlertSource object for the specified field name. | &#9989;| &#10060; |
65+
| `{{AlertID}}` | The ID of the triggered alert. | &#9989;| &#10060; |
66+
| `{{AlertStatus}}` | Current status of the time series that triggered (for example, Critical or Warning). | &#9989;| &#10060; |
67+
| `{{AlertCondition}}` | The condition that triggered the alert. | &#10060; | &#9989; |
68+
69+
</details>
70+
:::
4171

4272
## Examples
4373

@@ -90,31 +120,3 @@ Variables must be enclosed by double curly brackets (`{{ }}`). Unresolved variab
90120
```sql
91121
Monitor Alert: {{TriggerTimeRange}} on {{Name}}
92122
```
93-
94-
## Legacy variables
95-
96-
This section provides the old variables available for alert notifications from metrics monitors and Scheduled Searches. The following table shows where the old variables are supported.
97-
98-
:::tip
99-
We recommend instead using the new variables listed above. In the future, legacy variables will be deprecated.
100-
:::
101-
102-
| Variables | Description | Metrics Monitors | Scheduled Searches |
103-
| :-- | :-- | :-- | :-- |
104-
| `{{SearchName}}` | Description of the saved search or monitor. In the delivered payload, this variable is replaced with the Name you assigned to the search or monitor when you created it. | &#9989;| &#9989;|
105-
| `{{SearchDescription}}` | Description of the saved search or monitor. In the delivered payload, this variable is replaced by the Description you assigned to the search or monitor when you created it. | &#9989;| &#9989;|
106-
| `{{SearchQuery}}` | The query used to run the saved search. In the delivered payload, this variable is replaced by your saved search query or metric query. | &#9989;| &#9989;|
107-
| `{{SearchQueryUrl}}` | The URL to the search or metrics query. In the delivered payload, this is a URL that you can click to run the saved logs or metric query. | &#9989;| &#9989;|
108-
| `{{TimeRange}}` | The time range that triggered the alert. | &#9989;| &#9989;|
109-
| `{{FireTime}}` | The start time of the log search or metric query that triggered the notification. | &#9989;| &#9989;|
110-
| ` {{AggregateResultsJson}}` | JSON object containing search aggregation results. A maximum of 200 aggregate results can be sent via webhook. | &#10060; | &#9989; <br/>Not available with Email notifications |
111-
| `{{RawResultsJson}}` | JSON object containing raw messages. A maximum of 10 raw messages can be sent via webhook. | &#10060; | &#9989;<br/>Not available with Email notifications |
112-
| `{{NumRawResults}}` | Number of results returned by the search. | &#10060; | &#9989;|
113-
| `{{Results.fieldname}}` | The value returned from the search result for the specified field. For example, this payload specification:<br/>`{{Results.client_ip}} had {{Results.errors}} errors`<br/>Results in a subject line like this:<br/>`70.69.152.165 had 391 errors`<br/>A maximum of 200 aggregate results or 10 raw messages for this field can be sent via webhook.<br/>A field name must match (case-insensitive) the field from your search and must be **alphanumeric characters**, **underscores**, and b. If you have a field name that has an unsupported character use the [as](../../search/search-query-language/search-operators/as.md) operator to rename it. | &#9989;| &#9989;|
114-
| `{{AlertThreshold}}` | The condition that triggered the alert (for example, above 90 at least once in the last 5 minutes) | &#9989;| &#10060; |
115-
| `{{AlertSource}}` | The metric and sourceHost that triggered the alert, including associated tags for that metric. | &#9989;| &#10060; |
116-
| `{{AlertGroup}}` | The alert grouping that triggered the alert, including associated values for that metric. | &#9989;| &#10060; |
117-
| `{{AlertSource.fieldname}}` | The value returned from the AlertSource object for the specified field name. | &#9989;| &#10060; |
118-
| `{{AlertID}}` | The ID of the triggered alert. | &#9989;| &#10060; |
119-
| `{{AlertStatus}}` | Current status of the time series that triggered (for example, Critical or Warning). | &#9989;| &#10060; |
120-
| `{{AlertCondition}}` | The condition that triggered the alert. | &#10060; | &#9989; |

0 commit comments

Comments
 (0)