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: explore-analyze/alerts-cases/cases/cases-as-data.md
+20-21Lines changed: 20 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,10 @@ applies_to:
9
9
10
10
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.
11
11
12
+
::::{admonition} Requirements
13
+
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.
14
+
::::
15
+
12
16
## Turn on cases as data [turn-on-cases-as-data]
13
17
14
18
To turn on cases as data, add `xpack.cases.incrementalId.enabled: true` to your [`kibana.yml`](/deploy-manage/stack-settings.md) file.
@@ -19,31 +23,26 @@ To turn on cases as data, add `xpack.cases.incrementalId.enabled: true` to your
19
23
20
24
## Create and manage indices for case data [create-manage-case-analytics-indices]
21
25
22
-
After turning on cases as data, you do not need to manually create the analytics indices. {{es}} automatically creates the indices in any space with cases and for each solution ({{stack-manage-app}}, {{observability}}, and Security cases). To form the analytics indices, it indexes general data about cases and data related to case comments, attachments, and activity.
26
+
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.
23
27
24
-
You also do not need to manually manage the analytics indices' index lifecycle management (ILM) policies. The indices are updated by a background task that runs every five minutes and applies a snapshot of the most current cases data. Note that historical case data is not retained; it gets overwritten whenever the indices are refreshed.
28
+
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.
25
29
26
30
::::{note}
27
-
There may be delays in indexing data and creating indices:
28
31
- After making new cases, it may take up to 10 minutes to index the new case data.
29
32
- After making a new space, it can take up to an hour for the case analytics indices for that space to form.
30
33
::::
31
34
32
-
## Explore case data [explore-case-data]
35
+
## Grant access to case analytics indices [case-analytics-indices-privs]
33
36
34
-
::::{admonition} Requirements
35
-
* Your role needs at least `read` and `view_index_metadata` access to the appropriate case analytics indices.
36
-
* 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.
37
-
::::
37
+
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).
38
38
39
-
To explore case data:
39
+
## Explore and visualize case data with Discover [explore-case-data]
40
40
41
-
1. Create a [data view](../../../explore-analyze/find-and-organize/data-views.md) that uses any of the case analytics indices.
42
-
2. Search and filter the case data in [Discover](../../discover.md) or build visualizations for dashboards in [Lens](../../visualize/lens.md).
41
+
By default, {{kib}} requires a [{{data-source}}](../../find-and-organize/data-views.md) to access your Elasticsearch data. When creating a {{data-source}} for case data, point to one or more [case analytics indices or their aliases](../../../explore-analyze/alerts-cases/cases/cases-as-data.md#case-analytics-indices-names).
43
42
44
-
To help you start visualizing your case data, here are some sample {{esql}} queries that you can run from the [{{esql}} editor](../../../explore-analyze/query-filter/languages/esql-kibana.md#esql-kibana-get-started)in Discover.
43
+
You can also [try {{esql}}](../../../explore-analyze/discover/try-esql.md), that lets you query any data you have in {{es}} without specifying a {{data-source}} first. Here are some sample queries to get you started:
45
44
46
-
* Find the total number of open cases in the default space:
45
+
* Find the total number of open {{observability}} cases in the default space:
47
46
48
47
```console
49
48
FROM .internal.cases.default-observability | STATS count = COUNT(*) BY status | WHERE status == "open"
@@ -75,14 +74,14 @@ To help you start visualizing your case data, here are some sample {{esql}} quer
75
74
76
75
## Case analytics indices names and aliases [case-analytics-indices-names]
77
76
78
-
This section provides the names and aliases of the case analytics indices that {{es}} creates per space and solution. Note that `<space-name>` is a placeholder for the name of a space.
77
+
{{es}} automatically creates the following case analytics indices and their aliases in spaces with case data.
79
78
80
79
::::{note}
81
80
Go to
82
81
% [Case analytics indices schema](kibana://reference/case-analytics-indices-schema.md) for schema details.
83
82
::::
84
83
85
-
### Indices for general case data
84
+
### General case data
86
85
87
86
These indices store general data about cases.
88
87
@@ -92,29 +91,29 @@ These indices store general data about cases.
0 commit comments