Skip to content

Commit 2482186

Browse files
authored
DOCS-741 - Rules status article (#5152)
* Rough draft * Fix broken links * Fix broken links * Second draft * Final changes * Tweaks * Fix broken link
1 parent 76779f0 commit 2482186

14 files changed

+135
-10
lines changed

cid-redirects.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,6 +1667,7 @@
16671667
"/cid/10147": "/docs/cse/integrations",
16681668
"/cid/10148": "/docs/cse/rules",
16691669
"/cid/101481": "/docs/cse/rules/about-cse-rules",
1670+
"/cid/101482": "/docs/cse/rules/rules-status",
16701671
"/cid/10149": "/docs/cse/rules/write-match-rule",
16711672
"/cid/1015": "/docs/send-data/reference-information/use-wildcards-paths",
16721673
"/cid/10150": "/docs/cse/rules/write-threshold-rule",

docs/cse/rules/before-writing-custom-rule.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,3 @@ Now we have a query we can use as the rule expression for our rule. Note that
104104
You can use an expression like this example in any rule type. Here is an example Match rule with the expression, shown in the rules editor.
105105

106106
<img src={useBaseUrl('img/cse/example-in-editor.png')} alt="Example in editor" width="700"/>
107-
108-
## Degraded rules
109-
110-
A degraded rule is one that has had a portion of the rule shut off to prevent it from exceeding a processing limit. If you write a custom rule that becomes degraded, you must tune the rule to correct the problem.
111-
112-
For example, rules have a limit on the number of records per second they can evaluate. If there is a value used in the "group by" field that causes the rule to exceed that threshold, the particular value will be ignored, but the rest of the rule is still be used. In this case, Cloud SIEM might display a message like this:
113-
114-
`The aggregation on the group key '[email protected]' has a record volume exceeding the supported limit, and has been disabled. Consider tuning the rule to exclude records producing this group key.`
115-
116-
To resolve a degraded rule issue, create a [rule tuning expression](/docs/cse/rules/rule-tuning-expressions/) to address the portion of the rule causing the rule degradation.

docs/cse/rules/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ In this section, we'll introduce the following concepts:
1717
<p>Learn about Cloud SIEM rules, rules syntax, and how to write rules.</p>
1818
</div>
1919
</div>
20+
<div className="box smallbox card">
21+
<div className="container">
22+
<a href="/docs/cse/rules/rules-status"><img src={useBaseUrl('img/icons/operations/rules.png')} alt="Flow diagram icon" width="40"/><h4>Rules Status</h4></a>
23+
<p>Learn about Cloud SIEM rules statuses and how to address rules in a degraded or failed state.</p>
24+
</div>
25+
</div>
2026
<div className="box smallbox card">
2127
<div className="container">
2228
<a href="/docs/cse/rules/before-writing-custom-rule"><img src={useBaseUrl('img/icons/operations/rules.png')} alt="Flow diagram icon" width="40"/><h4>Before You Write a Custom Rule</h4></a>

docs/cse/rules/rules-status.md

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
---
2+
id: rules-status
3+
title: Rules Status
4+
sidebar_label: Rules Status
5+
description: Learn about Cloud SIEM rules statuses and how to address rules in a degraded or failed state.
6+
keywords:
7+
- cloud siem
8+
- rules
9+
---
10+
11+
import useBaseUrl from '@docusaurus/useBaseUrl';
12+
13+
This article describes the status of Cloud SIEM rules and how to address rules that are in a degraded or failed state.
14+
15+
## View a rule's status
16+
17+
You can see a rule's status while viewing the rule:
18+
* On the rules list page: <br/><img src={useBaseUrl('img/cse/rule-status-on-list-page.png')} alt="Rule status on list page" style={{border: '1px solid gray'}} width="800"/>
19+
* On the rule details page: <br/><img src={useBaseUrl('img/cse/rule-status-on-detail-page.png')} alt="Rule status on details page" style={{border: '1px solid gray'}} width="800"/>
20+
21+
## Search for rules by status
22+
23+
1. [**Classic UI**](/docs/get-started/sumo-logic-ui-classic). In the top menu select **Content > Rules**. <br/>[**New UI**](/docs/get-started/sumo-logic-ui). In the main Sumo Logic menu select **Cloud SIEM > Rules**. You can also click the **Go To...** menu at the top of the screen and select **Rules**.
24+
1. Click **Filters** at the top of the **Rules** screen.
25+
1. Select the **Status** field.<br/><img src={useBaseUrl('img/cse/filter-on-rule-status-1.png')} alt="Filter on rule status" style={{border: '1px solid gray'}} width="300"/>
26+
1. For **Operator** select **is**.
27+
1. Select a status.<br/><img src={useBaseUrl('img/cse/filter-on-rule-status-2.png')} alt="Select status to filter on" style={{border: '1px solid gray'}} width="400"/><br/>
28+
29+
## Kinds of rule status
30+
31+
Following are the different kinds of rule status. A rule's status can change depending on whether it exceeds [rule limits](#rule-limits).
32+
33+
| Status | Description | Action required |
34+
| :-- | :-- | :-- |
35+
| **Active** | The rule is executing normally. | No action required. |
36+
| **Degraded** | The rule is approaching a rule limit and it is removed from execution for one hour to allow processing to catch up. At the end of the hour, the rule is allowed to execute again and its status changes back to Active. | Click the information button <img src={useBaseUrl('img/cse/rule-status-information-button.png')} alt="Rule status information button" width="20"/> on the **Degraded** label for details. Depending on the information provided, you may want to edit the rule to reduce the chance it will become degraded again later. See [Degraded rules](#degraded-rules) below for more information. |
37+
| **Disabled** | The rule was manually disabled using the toggle in the UI, or was disabled with the API. | Enable the rule with the toggle in the UI, or enable the rule with the [API](https://api.sumologic.com/docs/sec/#operation/UpdateRuleEnabled). |
38+
| **Failed** | The rule exceeded a rule limit and was automatically disabled. | Click the information button <img src={useBaseUrl('img/cse/rule-status-information-button.png')} alt="Rule status information button" width="20"/> on the **Failed** label for details about the failure. Depending on the reasons provided in the details, you may need to edit the rule to prevent it from failing again in the future. <br/><br/>After addressing the reasons for the failure, enable the rule with the toggle in the UI, or enable the rule with the [API](https://api.sumologic.com/docs/sec/#operation/UpdateRuleEnabled). |
39+
40+
<!-- For DOCS-72 - Rule limits
41+
| **Warning** | The rule is approaching a rule limit and risks being disabled. | Click the information button <img src={useBaseUrl('img/cse/rule-warning-info-button.png')} alt="Rule warning information button" width="20"/> on the **Warning** label for details about the warning. Depending on the reasons provided in the details, you may need to edit the rule to prevent it from being disabled. |
42+
-->
43+
44+
### Degraded rules
45+
46+
A degraded rule is one that has been temporarily shut off to prevent it from exceeding a processing limit. If you write a [custom rule](/docs/cse/rules/before-writing-custom-rule/) that becomes degraded, you must tune the rule to correct the problem.
47+
48+
For example, rules have a limit on the number of records per second they can evaluate. If there is a value used in the "group by" field that causes the rule to exceed that threshold, Cloud SIEM might display a message like this:
49+
50+
`The aggregation on the group key '[email protected]' has a record volume exceeding the supported limit, and has been disabled. Consider tuning the rule to exclude records producing this group key.`
51+
52+
To resolve a degraded rule issue, create a [rule tuning expression](/docs/cse/rules/rule-tuning-expressions/) to address the portion of the rule causing the rule degradation.
53+
54+
## Rule limits
55+
56+
Limits are set on how often a rule fires so that the system is not overloaded. For example, if a rule fires too many signals in an hour, it can cause performance problems for all rule processes. If a rule exceeds a limit, its rule status changes from Active to Failed and the rule is disabled.
57+
58+
| Type | Limit |
59+
| :-- | :-- |
60+
| Signals per hour | 100K |
61+
| Signals per 24 hours | 1M |
62+
63+
<!-- For DOCS-72 - Rule limits
64+
| Type | Limit |
65+
| :-- | :-- |
66+
| Total allowed custom rules of each [rule type](/docs/cse/rules/about-cse-rules/#rule-types) | 100 - Tier 1 <br/>200 - Tier 2<br/>500 - Tier 3 |
67+
| Signals per hour | 50K- Tier 1<br/>100K - Tier 2<br/>150K - Tier 3 |
68+
| Signals per 24 hours | 1M Tier 1<br/>2M - Tier 2<br/>3M - Tier 3 |
69+
| Matched records per day* | 200K - Tier 1<br/>400K - Tier 2<br/>600K - Tier 3 |
70+
| Rule group cardinality per day** | 100K Tier 1<br/>200K - Tier 2<br/>300K - Tier 3 |
71+
| Matched records per day* | 200K |
72+
| Rule group cardinality per day** | 100K |
73+
74+
*Applies to all [rule types](/docs/cse/rules/about-cse-rules/#rule-types) except match rules.
75+
<br/>**Group cardinality is the number of distinct key values in a grouping function of a complex rule type. For instance, if a rule is grouped by email address, the cardinality would be the total number of distinct email addresses.
76+
77+
:::note
78+
Rule limits can be higher if you are in a higher tenant tier level. If you have questions about what your tenant tier level is, contact your Sumo Logic account representative or [contact Sumo Logic Support](https://support.sumologic.com/support/s/).
79+
:::
80+
81+
-->
82+
83+
## Query for rule status changes
84+
85+
You can query audit logs for rule status changes. For more information about querying audit logs, see [Cloud SIEM Audit Logging](/docs/cse/administration/cse-audit-logging/) and [Cloud SIEM audit log definitions](/docs/manage/security/audit-indexes/documentation-audit-log-definitions/#cloud-siem-audit-log-definitions).
86+
87+
### Query for disabled rules
88+
89+
Use the following query to find rules that are disabled. It finds rules that are manually disabled by users (in `_index=sumologic_audit_events`) or automatically disabled by the system (in `_index=sumologic_system_events`).
90+
91+
```sql
92+
(_index=sumologic_audit_events OR _index=sumologic_system_events) _sourceCategory=cseRule
93+
| where (%"aggregationrule.enabled" = "false"
94+
or %"chainrule.enabled" = "false"
95+
or %"firstseenrule.enabled" = "false"
96+
or %"matchrule.enabled" = "false"
97+
or %"outlierrule.enabled" = "false"
98+
or %"templatedMatchRule.enabled" = "false"
99+
or %"thresholdrule.enabled" = "false")
100+
```
101+
102+
### Query for updated rules
103+
104+
Use the following query to find rules that have been updated. This query finds rules that are updated for any reason. The update may not result in a status change for the rule.
105+
106+
```sql
107+
(_index=sumologic_audit_events OR _index=sumologic_system_events) _sourceCategory=cseRule
108+
| where (eventName = "AggregationRuleUpdated"
109+
or eventName = "ChainRuleUpdated"
110+
or eventName = "FirstSeenRuleUpdated"
111+
or eventName = "MatchRuleUpdated"
112+
or eventName = "OutlierRuleUpdated"
113+
or eventName = "TemplatedMatchRuleUpdated"
114+
or eventName = "ThresholdRuleUpdated" )
115+
| sort by eventName asc
116+
```
117+
118+
## Create a monitor to alert on rule status changes
119+
120+
You can [create a monitor](/docs/alerts/monitors/create-monitor/) to generate alerts when rules statuses change. This will alert you when you need to take action.
121+
122+
For example, you could use the [query for disabled rules](#query-for-disabled-rules) above in your monitor. It will alert when rules are disabled.
123+
124+
<img src={useBaseUrl('img/cse/example-monitor-for-rule-status-change.png')} alt="Example monitor for rule status change" style={{border: '1px solid gray'}} width="700"/>
125+
126+
127+

sidebars.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2855,6 +2855,7 @@ integrations: [
28552855
link: {type: 'doc', id: 'cse/rules/index'},
28562856
items: [
28572857
'cse/rules/about-cse-rules',
2858+
'cse/rules/rules-status',
28582859
'cse/rules/before-writing-custom-rule',
28592860
'cse/rules/cse-rules-syntax',
28602861
'cse/rules/write-match-rule',
293 KB
Loading
38.8 KB
Loading
29.9 KB
Loading
3.94 KB
Loading
3.9 KB
Loading

0 commit comments

Comments
 (0)