Skip to content

Commit eaa3c5d

Browse files
[Cases][9.2] Cases as data feature docs (elastic#2220)
Contributes to elastic#1716 by documenting how to visualize case data using the new case analytics indices. Preview: - [Cases as data](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/2220/explore-analyze/alerts-cases/cases/cases-as-data): New page for the cases as data feature. - [Stack cases](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/2220/explore-analyze/alerts-cases/cases): Added link to docs for the cases as data feature. Also added a limitations section to better highlight feature limits that users need to be aware of. - [Observability cases](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/2220/solutions/observability/incident-management/cases) : Added note letting users know about the cases as data feature. Also added a limitations section to better highlight feature limits that users need to be aware of. - [Security cases](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/2220/solutions/security/investigate/cases): Same changes as above. **Related PR:** elastic/kibana#229036 --------- Co-authored-by: Mike Birnstiehl <[email protected]>
1 parent d3f7e57 commit eaa3c5d

File tree

5 files changed

+154
-3
lines changed

5 files changed

+154
-3
lines changed

explore-analyze/alerts-cases/cases.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@ If you create cases in the {{observability}} or {{security-app}}, they are not v
2727
* [Configure access to cases](cases/setup-cases.md)
2828
* [Open and manage cases](cases/manage-cases.md)
2929
* [Configure case settings](cases/manage-cases-settings.md)
30+
* {applies_to}`stack: preview 9.2` {applies_to}`serverless: unavailable`[Use cases as data](cases/cases-as-data.md)
31+
32+
## Limitations [kibana-case-limitations]
33+
34+
* If you create cases in {{stack-manage-app}}, they are not visible from {{observability}} or the {{security-app}}. Likewise, the cases you create in {{observability}} are not visible in {{stack-manage-app}} or {{elastic-sec}}.
35+
* You cannot attach alerts from {{observability}} or {{elastic-sec}} to cases in {{stack-manage-app}}.
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
---
2+
applies_to:
3+
stack: preview 9.2
4+
serverless: unavailable
5+
---
6+
7+
# Use cases as data [use-cases-as-data]
8+
9+
The cases as data feature lets you visualize data about cases in your [space](/deploy-manage/manage-spaces.md). After turning it on, you can query case data from dedicated case analytics indices and build dashboards and visualizations to track case trends and operational metrics. This information is particularly useful when reporting on key performance indicators (KPIs) such as Mean Time To Respond (MTTR), case severity trends, and analyst workload.
10+
11+
::::{admonition} Requirements
12+
To use cases as data, you must have the appropriate subscription. Refer to the subscription page for [Elastic Cloud](https://www.elastic.co/subscriptions/cloud) and [Elastic Stack/self-managed](https://www.elastic.co/subscriptions) for the breakdown of available features and their associated subscription tiers.
13+
::::
14+
15+
## Turn on cases as data [turn-on-cases-as-data]
16+
17+
To turn on cases as data, add `xpack.cases.analytics.index.enabled: true` to your [`kibana.yml`](/deploy-manage/stack-settings.md) file.
18+
19+
::::{warning}
20+
We only recommend turning this feature on if your deployment has 10 or fewer spaces with cases. The background tasks that refresh the case analytics indices in each space are run every five minutes and may overload Task Manager.
21+
::::
22+
23+
## Create and manage indices for case data [create-manage-case-analytics-indices]
24+
25+
After turning on cases as data, you do not need to manually create the analytics indices. {{es}} will automatically create them for you in any space with cases and for each solution ({{stack-manage-app}}, {{observability}}, and Security). The indices are populated with general case data as well as data related to case comments, attachments, and activity.
26+
27+
You also do not need to manually manage the lifecycle policies of the analytics indices. Every five minutes, a background task runs to refresh the indices with a snapshot of the most current cases data. During the refresh, historical case data is overwritten.
28+
29+
::::{note}
30+
- After making new cases, it may take up to 10 minutes to index the new case data.
31+
- After making a new space, it can take up to an hour for the case analytics indices for that space to form.
32+
::::
33+
34+
## Grant access to case analytics indices [case-analytics-indices-privs]
35+
36+
Ensure your role has at least `read` and `view_index_metadata` access to the appropriate [case analytics indices](../../../explore-analyze/alerts-cases/cases/cases-as-data.md#case-analytics-indices-names).
37+
38+
## Explore case data with Discover and Lens [explore-case-data]
39+
40+
Use [Discover](../../discover.md) and [Lens](../../visualize/lens.md) to search and filter your case data and display your findings in visualizations.
41+
42+
To get started, create a [{{data-source}}](../../find-and-organize/data-views.md) that points to one or more [case analytics indices or their aliases](../../../explore-analyze/alerts-cases/cases/cases-as-data.md#case-analytics-indices-names). To point to all case analytics indices in your space, use the `.internal.cases*` index pattern.
43+
44+
::::{note}
45+
Case data is stored in hidden indices. You can display hidden indices by selecting **Show advanced settings**, then turning on **Allow hidden and system indices**.
46+
::::
47+
48+
You can also interact with your case data using [{{esql}} in Discover](../../../explore-analyze/discover/try-esql.md). Here are some sample queries to get you started:
49+
50+
* Find the total number of open {{observability}} cases in the default space:
51+
52+
```console
53+
FROM .internal.cases.observability-default | STATS count = COUNT(*) BY status | WHERE status == "open"
54+
```
55+
56+
* Find the total number of in progress Stack Management cases in the default space:
57+
58+
```console
59+
FROM .internal.cases.cases-default | STATS count = COUNT(*) BY status | WHERE status == "in-progress"
60+
```
61+
62+
* Find the total number of closed {{observability}} cases in the default space:
63+
64+
```console
65+
FROM .internal.cases.observability-default | STATS count = COUNT(*) BY status | WHERE status == "closed"
66+
```
67+
68+
* Find Security cases that are open in the default space, and sort them by time, with the most recent at the top:
69+
70+
```console
71+
FROM .internal.cases.securitysolution-default | WHERE status == "open" | SORT created_at DESC
72+
```
73+
74+
* Find the average time that it takes to close Security cases in the default space:
75+
76+
```console
77+
FROM .internal.cases.securitysolution-default | STATS average_time_to_close = AVG(time_to_resolve)
78+
```
79+
80+
## Case analytics indices names and aliases [case-analytics-indices-names]
81+
82+
{{es}} automatically creates the following case analytics indices and their aliases in spaces with case data.
83+
84+
% ::::{note}
85+
% Go to [Case analytics indices schema](kibana://reference/case-analytics-indices-schema.md) for schema details.
86+
% ::::
87+
88+
### General case data
89+
90+
These indices store general data about cases.
91+
92+
| Index | Alias | Created for |
93+
| ---------------------------- | ---------------------- |----------------------------------------- |
94+
| `.internal.cases.cases-<space-name>` | `.cases.cases-<space-name>` | Stack Management cases |
95+
| `.internal.cases.observability-<space-name>` | `.cases.observability-<space-name>` | {{observability}} cases |
96+
| `.internal.cases.securitysolution-<space-name>` | `.cases.securitysolution-<space-name>` | Security cases |
97+
98+
### Case comments
99+
100+
These indices store data related to comments.
101+
102+
| Index | Alias | Created for |
103+
| ---------------------------- | ---------------------- |----------------------------------------- |
104+
| `.internal.cases-comments.cases-<space-name>` | `.cases-comments.cases-<space-name>` | Stack Management cases |
105+
| `.internal.cases-comments.observability-<space-name>` | `.cases-comments.observability-<space-name>` | {{observability}} cases |
106+
| `.internal.cases-comments.securitysolution-<space-name>` | `.cases-comments.securitysolution-<space-name>` | Security cases |
107+
108+
### Case attachments
109+
110+
These indices store data related to attachments.
111+
112+
| Index | Alias | Created for |
113+
| ---------------------------- | ---------------------- |----------------------------------------- |
114+
| `.internal.cases-attachments.cases-<space-name>` | `.cases-attachments.cases-<space-name>` | Stack Management cases |
115+
| `.internal.cases-attachments.observability-<space-name>` | `.cases-attachments.observability-<space-name>` | {{observability}} cases |
116+
| `.internal.cases-attachments.securitysolution-<space-name>` | `.cases-attachments.securitysolution-<space-name>` | Security cases |
117+
118+
### Case activity
119+
120+
These indices store data related to activity.
121+
122+
| Index | Alias | Created for |
123+
| ---------------------------- | ---------------------- |----------------------------------------- |
124+
| `.internal.cases-activity.cases-<space-name>` | `.cases-activity.cases-<space-name>` | Stack Management cases |
125+
| `.internal.cases-activity.observability-<space-name>` | `.cases-activity.observability-<space-name>` | {{observability}} cases |
126+
| `.internal.cases-activity.securitysolution-<space-name>` | `.cases-activity.securitysolution-<space-name>` | Security cases |

explore-analyze/toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,4 +329,5 @@ toc:
329329
- file: alerts-cases/cases/setup-cases.md
330330
- file: alerts-cases/cases/manage-cases.md
331331
- file: alerts-cases/cases/manage-cases-settings.md
332+
- file: alerts-cases/cases/cases-as-data.md
332333
- file: numeral-formatting.md

solutions/observability/incident-management/cases.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,14 @@ Collect and share information about observability issues by creating a case. Cas
1515
:::{image} /solutions/images/observability-cases.png
1616
:alt: Cases page
1717
:screenshot:
18-
:::
18+
:::
19+
20+
::::{tip}
21+
:applies_to: {stack: preview 9.2, serverless: unavailable}
22+
After creating cases, use case data to build dashboards and visualizations that provide insights into case trends and operational metrics. Refer to [Use cases as data](/explore-analyze/alerts-cases/cases/cases-as-data.md) to learn more.
23+
::::
24+
25+
## Limitations [observability-case-limitations]
26+
27+
* If you create cases in {{observability}}, they are not visible from the {{security-app}} or {{stack-manage-app}}. Likewise, the cases you create in {{stack-manage-app}} are not visible in the {{observability}} or {{elastic-sec}}.
28+
* You cannot attach alerts from {{elastic-sec}} or {{stack-manage-app}} to cases in {{observability}}.

solutions/security/investigate/cases.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,19 @@ You can also send cases to these external systems by [configuring external conne
3030
:screenshot:
3131
:::
3232

33-
::::{note}
34-
From {{elastic-sec}} in the {{stack}}, you cannot access cases created in {{observability}} or Stack Management.
33+
::::{tip}
34+
:applies_to: {stack: preview 9.2, serverless: unavailable}
35+
After creating cases, use case data to build dashboards and visualizations that provide insights into case trends and operational metrics. Refer to [Cases as data](/explore-analyze/alerts-cases/cases/cases-as-data.md) to learn more.
3536
::::
3637

3738

39+
## Limitations [security-case-limitations]
40+
41+
* If you create cases in the {{security-app}}, they are not visible from {{observability}} or {{stack-manage-app}}. Likewise, the cases you create in {{stack-manage-app}} are not visible in {{elastic-sec}} or {{observability}}.
42+
* You cannot attach alerts from the {{observability}} or {{stack-manage-app}} to cases in {{elastic-sec}}.
43+
44+
45+
3846

3947

4048

0 commit comments

Comments
 (0)