[Security][Cases][9.5 & Serverless] Documents case analytics for 9.5 and Serverless - #7557
[Security][Cases][9.5 & Serverless] Documents case analytics for 9.5 and Serverless#7557nastasha-solomon wants to merge 12 commits into
Conversation
Elastic Docs AI PR menuCheck the box to run an AI review for this pull request.
Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team. |
Elastic Docs Style Checker (Vale)Summary: 1 warning found
|
| File | Line | Rule | Message |
|---|---|---|---|
| explore-analyze/cases/case-analytics-indices.md | 65 | Elastic.Spelling | 'unprefixed' is a possible misspelling. |
The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.
melissaburpo
left a comment
There was a problem hiding this comment.
This looks great @nastasha-solomon!
Co-authored-by: Cursor <cursoragent@cursor.com> # Conflicts: # explore-analyze/cases/cases-as-data.md # explore-analyze/toc.yml
| | `POST /internal/cases/_analyticsV2/reset` | Requires `enableAdminRoutes: true` | Rebuilds all three indices and their data sources from your current cases | | ||
|
|
||
| ::::{warning} | ||
| One set of case analytics indices serves the entire deployment across all spaces. These operations affect **all spaces**, not only the space you run them from. For example, running `reset` from any space rebuilds the analytics data and the **Case Analytics** {{data-source}} for every space. Plan a reset as a deployment-wide operation. |
There was a problem hiding this comment.
I'm not sure if it's really important to note, but this task will run batched in the background and will not disrupt any of the active case activity going on. Apart from maybe adding that, this looks great!
|
|
||
| ## Use typed fields in Discover and Lens [analyze-case-fields-typed] | ||
|
|
||
| A typed field is a version of a case field that the managed Case Analytics {{data-source}} publishes with a specific data type, named `case.<name>_as_<type>` (for example, `case.effort_as_integer`). The {{data-source}} publishes one for each templated or global field. Because a typed field has a real type, you get numeric, date, and boolean operators in Discover and Lens instead of text matching on the raw value stored in `case.extended_fields`. |
There was a problem hiding this comment.
It may be helpful to note here. The underlying .cases analytic index has these fields actually mapped at case.extended_fields.<name>_as_<type>. On the concrete index extended_fields is mapped as a flattened field type, so every field nested in there... all of the <name>_as_<type> fields are technically keyword. As part of the Cases Analytics dataview, we do two things:
-
We create a runtime field on the
Cases Analyticsdataview where we map the field to it's typed version based on the_as_<type>. Thattypeis sourced from the type defined for the field in the new cases templates system. -
Also only in the
Cases Analyticsdataview, for ease of access, we lift the fields up a level fromcase.extended_fields.<name>_as_<type>=>case.<name>_as_<type>. This is purely for convenience specifically in the data view
Summary
Fixes https://github.com/elastic/docs-content-internal/issues/1444.
Documents the case analytics experience for 9.5 and Serverless. Replaces the single "Cases as data" page with a short overview plus focused child pages for the indices, exploring and visualizing, querying with ES|QL, analyzing fields, a field reference, and administration. Read access to the analytics indices is now documented in the existing Control access to cases page instead of a standalone page.
Each shared page uses version tabs to cover both the 9.5/Serverless GA feature and the 9.2–9.4 technical preview. Because the two versions use different schemas (GA uses the
.cases*indices withcase.*-prefixed fields; preview uses per-space.internal.cases.*indices with unprefixed fields), every version tab states its index and field conventions inline so the distinction is clear even out of context. Redirects preserve the old links.Previews
Overview
Explore and query case data
Reference and administration
.cases*indices and preview.internal.*indices.owner,case.id, assignee, and custom field entries. GA/Serverless only.Access, navigation, and redirects
readandview_index_metadataprivileges, with an example role and version tabs for 9.5/Serverless GA and the 9.2–9.4 preview, plus a matching row in the privileges quick reference.Generative AI disclosure