Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
6ac2538
First draft
nastasha-solomon Jul 22, 2025
b746055
Removed extra spaces
nastasha-solomon Jul 22, 2025
e5b0dbe
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Jul 22, 2025
18342d1
Updates sec and obs docs
nastasha-solomon Jul 22, 2025
f5a6e4c
Applies to tags
nastasha-solomon Jul 22, 2025
1e574b1
Added ref to kibana page
nastasha-solomon Jul 22, 2025
e6f473b
Fix error
nastasha-solomon Jul 22, 2025
b02b1b3
fix for real this time (i hope)
nastasha-solomon Jul 22, 2025
2addac7
minor fixes
nastasha-solomon Jul 22, 2025
c9f5724
the to from
nastasha-solomon Jul 22, 2025
52325f6
Update explore-analyze/alerts-cases/cases/visualize-case-data.md
nastasha-solomon Jul 23, 2025
a881129
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Jul 23, 2025
102669a
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Jul 23, 2025
4355559
Update explore-analyze/alerts-cases/cases/visualize-case-data.md
nastasha-solomon Jul 23, 2025
2533c13
Update explore-analyze/alerts-cases/cases/visualize-case-data.md
nastasha-solomon Jul 23, 2025
c50b531
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Jul 24, 2025
37b8a1b
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Sep 2, 2025
fd9b185
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Sep 2, 2025
5c0496a
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Sep 23, 2025
620724c
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Sep 23, 2025
4e16729
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Sep 24, 2025
5b720d1
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Sep 29, 2025
754575f
Technical input
nastasha-solomon Sep 29, 2025
07777e6
Fix table
nastasha-solomon Sep 29, 2025
0f063b2
removed some duplicate information
nastasha-solomon Sep 29, 2025
7ad4c2b
Reformats table
nastasha-solomon Sep 30, 2025
b6a80a3
Moves more content
nastasha-solomon Sep 30, 2025
dc46973
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Sep 30, 2025
a49dd72
Apply suggestion from @nastasha-solomon
nastasha-solomon Oct 11, 2025
1765614
adds some content from toi
nastasha-solomon Oct 12, 2025
178e51d
fix conflict
nastasha-solomon Oct 12, 2025
53aeeef
bye
nastasha-solomon Oct 12, 2025
43a1eb5
try again
nastasha-solomon Oct 12, 2025
f830cbf
Apply suggestion from @nastasha-solomon
nastasha-solomon Oct 12, 2025
4eb307a
small change
nastasha-solomon Oct 12, 2025
1e5cddb
Merge branch 'case-analytics-indices-9.1-serv' of https://github.com/…
nastasha-solomon Oct 12, 2025
7158d17
removed attribute
nastasha-solomon Oct 12, 2025
75018ff
cleanup
nastasha-solomon Oct 12, 2025
604fd8e
Removed space
nastasha-solomon Oct 12, 2025
92ba0cf
Adding info about dataviews
nastasha-solomon Oct 13, 2025
7bca4b7
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Oct 13, 2025
33ee601
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Oct 13, 2025
86e01b0
Update explore-analyze/alerts-cases/cases.md
nastasha-solomon Oct 13, 2025
99720b9
Update explore-analyze/alerts-cases/cases/cases-as-data.md
nastasha-solomon Oct 13, 2025
2d9fdb3
Update explore-analyze/alerts-cases/cases/cases-as-data.md
nastasha-solomon Oct 14, 2025
80c452b
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Oct 14, 2025
bcf78ea
Updated index names
nastasha-solomon Oct 14, 2025
a8ee408
Merge branch 'case-analytics-indices-9.1-serv' of https://github.com/…
nastasha-solomon Oct 14, 2025
bdd9dd5
Updating applies to
nastasha-solomon Oct 15, 2025
289392b
adding to applies to tags
nastasha-solomon Oct 15, 2025
dbb2de6
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Oct 15, 2025
41484f5
Apply suggestion from @nastasha-solomon
nastasha-solomon Oct 16, 2025
b95b54c
Merge branch 'main' into case-analytics-indices-9.1-serv
nastasha-solomon Oct 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions explore-analyze/alerts-cases/cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ If you create cases in the {{observability}} or {{security-app}}, they are not v
* [Configure access to cases](cases/setup-cases.md)
* [Open and manage cases](cases/manage-cases.md)
* [Configure case settings](cases/manage-cases-settings.md)
* {applies_to}`stack: preview 9.2` {applies_to}`serverless: unavailable`[Use cases as data](cases/cases-as-data.md)

## Limitations [kibana-case-limitations]

* 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}}.
* You cannot attach alerts from {{observability}} or {{elastic-sec}} to cases in {{stack-manage-app}}.
126 changes: 126 additions & 0 deletions explore-analyze/alerts-cases/cases/cases-as-data.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
---
applies_to:
stack: preview 9.2
serverless: unavailable
---

# Use cases as data [use-cases-as-data]

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.

::::{admonition} Requirements
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.
::::

## Turn on cases as data [turn-on-cases-as-data]

To turn on cases as data, add `xpack.cases.incrementalId.enabled: true` to your [`kibana.yml`](/deploy-manage/stack-settings.md) file.

::::{warning}
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.
::::

## Create and manage indices for case data [create-manage-case-analytics-indices]

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.

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.

::::{note}
- After making new cases, it may take up to 10 minutes to index the new case data.
- After making a new space, it can take up to an hour for the case analytics indices for that space to form.
::::

## Grant access to case analytics indices [case-analytics-indices-privs]

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).

## Explore case data with Discover and Lens [explore-case-data]

Use [Discover](../../discover.md) and [Lens](../../visualize/lens.md) to search and filter your case data and display your findings in visualizations.

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.

::::{note}
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**.
::::

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:

* Find the total number of open {{observability}} cases in the default space:

```console
FROM .internal.cases.observability-default | STATS count = COUNT(*) BY status | WHERE status == "open"
```

* Find the total number of in progress Stack Management cases in the default space:

```console
FROM .internal.cases.cases-default | STATS count = COUNT(*) BY status | WHERE status == "in-progress"
```

* Find the total number of closed {{observability}} cases in the default space:

```console
FROM .internal.cases.observability-default | STATS count = COUNT(*) BY status | WHERE status == "closed"
```

* Find Security cases that are open in the default space, and sort them by time, with the most recent at the top:

```console
FROM .internal.cases.securitysolution-default | WHERE status == "open" | SORT created_at DESC
```

* Find the average time that it takes to close Security cases in the default space:

```console
FROM .internal.cases.securitysolution-default | STATS average_time_to_close = AVG(time_to_resolve)
```

## Case analytics indices names and aliases [case-analytics-indices-names]

{{es}} automatically creates the following case analytics indices and their aliases in spaces with case data.

% ::::{note}
% Go to [Case analytics indices schema](kibana://reference/case-analytics-indices-schema.md) for schema details.
% ::::

### General case data

These indices store general data about cases.

| Index | Alias | Created for |
| ---------------------------- | ---------------------- |----------------------------------------- |
| `.internal.cases.cases-<space-name>` | `.cases.cases-<space-name>` | Stack Management cases |
| `.internal.cases.observability-<space-name>` | `.cases.observability-<space-name>` | {{observability}} cases |
| `.internal.cases.securitysolution-<space-name>` | `.cases.securitysolution-<space-name>` | Security cases |

### Case comments

These indices store data related to comments.

| Index | Alias | Created for |
| ---------------------------- | ---------------------- |----------------------------------------- |
| `.internal.cases-comments.cases-<space-name>` | `.cases-comments.cases-<space-name>` | Stack Management cases |
| `.internal.cases-comments.observability-<space-name>` | `.cases-comments.observability-<space-name>` | {{observability}} cases |
| `.internal.cases-comments.securitysolution-<space-name>` | `.cases-comments.securitysolution-<space-name>` | Security cases |

### Case attachments

These indices store data related to attachments.

| Index | Alias | Created for |
| ---------------------------- | ---------------------- |----------------------------------------- |
| `.internal.cases-attachments.cases-<space-name>` | `.cases-attachments.cases-<space-name>` | Stack Management cases |
| `.internal.cases-attachments.observability-<space-name>` | `.cases-attachments.observability-<space-name>` | {{observability}} cases |
| `.internal.cases-attachments.securitysolution-<space-name>` | `.cases-attachments.securitysolution-<space-name>` | Security cases |

### Case activity

These indices store data related to activity.

| Index | Alias | Created for |
| ---------------------------- | ---------------------- |----------------------------------------- |
| `.internal.cases-activity.cases-<space-name>` | `.cases-activity.cases-<space-name>` | Stack Management cases |
| `.internal.cases-activity.observability-<space-name>` | `.cases-activity.observability-<space-name>` | {{observability}} cases |
| `.internal.cases-activity.securitysolution-<space-name>` | `.cases-activity.securitysolution-<space-name>` | Security cases |
1 change: 1 addition & 0 deletions explore-analyze/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,4 +328,5 @@ toc:
- file: alerts-cases/cases/setup-cases.md
- file: alerts-cases/cases/manage-cases.md
- file: alerts-cases/cases/manage-cases-settings.md
- file: alerts-cases/cases/cases-as-data.md
- file: numeral-formatting.md
12 changes: 11 additions & 1 deletion solutions/observability/incident-management/cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,14 @@ Collect and share information about observability issues by creating a case. Cas
:::{image} /solutions/images/observability-cases.png
:alt: Cases page
:screenshot:
:::
:::

::::{tip}
:applies_to: {stack: preview 9.2, serverless: unavailable}
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.
::::

## Limitations [observability-case-limitations]

* 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}}.
* You cannot attach alerts from {{elastic-sec}} or {{stack-manage-app}} to cases in {{observability}}.
12 changes: 10 additions & 2 deletions solutions/security/investigate/cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,19 @@ You can also send cases to these external systems by [configuring external conne
:screenshot:
:::

::::{note}
From {{elastic-sec}} in the {{stack}}, you cannot access cases created in {{observability}} or Stack Management.
::::{tip}
:applies_to: {stack: preview 9.2, serverless: unavailable}
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.
::::


## Limitations [security-case-limitations]

* 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}}.
* You cannot attach alerts from the {{observability}} or {{stack-manage-app}} to cases in {{elastic-sec}}.