Skip to content

[Index Management] Report the index mode Elasticsearch returns for data streams - #290169

Open
kapral18 wants to merge 1 commit into
elastic:mainfrom
kapral18:fix/index-management/data-streams-standard-mode-misreported-283371
Open

[Index Management] Report the index mode Elasticsearch returns for data streams#290169
kapral18 wants to merge 1 commit into
elastic:mainfrom
kapral18:fix/index-management/data-streams-standard-mode-misreported-283371

Conversation

@kapral18

@kapral18 kapral18 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Closes #283371

Summary

  • Data streams whose backing indices use index.mode: time_series (or lookup, vectordb_document) showed Standard in the Data Streams list and in the details flyout, or LogsDB for logs-*-* names on clusters with logsdb enabled. They now show the mode Elasticsearch reports.

Root Cause

Fix

  • Accept any known IndexMode value from the Get Data Streams API. The logs-* → LogsDB inference still applies only when Elasticsearch reports no mode or an unknown one.
  • Unit tests cover the pass-through and the preserved fallbacks.
  • Unskipped the Scout test "allows to downgrade data stream from logsdb to time series index mode".
  • The serverless data streams API test reads the expected index mode from Elasticsearch instead of hardcoding standard: vectordb projects default data streams to vectordb_document, which the API now reports.

Before/After Screenshots

Data Streams list, Index mode column for a time series data stream:

Before:

Data Streams list showing Standard (before)

After:

Data Streams list showing Time series (after)

Data stream details flyout, Index mode:

Before:

Details flyout showing Standard (before)

After:

Details flyout showing Time series (after)

Test Plan

  1. In Dev Tools Console, create a time series template and data stream:
    PUT _index_template/test
    { "index_patterns": ["test-*"], "data_stream": {}, "template": { "settings": { "index.mode": "time_series", "index.routing_path": "host" }, "mappings": { "properties": { "host": { "type": "keyword", "time_series_dimension": true } } } } }
    PUT _data_stream/test-stream
    
  2. Open Stack Management → Index Management → Data Streams.
  3. Expected: the Index mode column for test-stream reads Time series.
  4. Click test-stream.
  5. Expected: the flyout Index mode row reads Time series.

Release Note

Fixes the Index Management data streams list and details flyout reporting "Standard" for time series data streams.

Assisted with Claude Code using Claude Fable 5.1

🤖 Generated with Claude Code

@kapral18 kapral18 added bug Fixes for quality problems that affect the customer experience Feature:Index Management Index and index templates UI Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// release_note:fix backport:version Backport to applied version labels v9.6.0 v9.5.4 labels Sep 9, 2026
@kapral18
kapral18 force-pushed the fix/index-management/data-streams-standard-mode-misreported-283371 branch from d963514 to 7519617 Compare September 10, 2026 00:51
@kapral18
kapral18 marked this pull request as ready for review September 10, 2026 00:51
@kapral18
kapral18 requested a review from a team as a code owner September 10, 2026 00:51
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

Pinging @elastic/kibana-management (Team:Kibana Management)

@kibanamachine kibanamachine added the reviewer:scout Agentic PR Scout test review label Sep 10, 2026
@kapral18
kapral18 force-pushed the fix/index-management/data-streams-standard-mode-misreported-283371 branch from 7519617 to 9523d78 Compare September 10, 2026 15:35
@elastic elastic deleted a comment from kibanamachine Sep 10, 2026
@kapral18
kapral18 requested a review from mattkime September 11, 2026 17:55

@mattkime mattkime left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good and work well!

…ta streams

deserializeDataStream only let logsdb and standard through and sent every other index_mode (time_series, lookup, vectordb_document) through the logs-* inference and otherwise to standard, so the data streams list and details flyout showed Standard for time series data streams. Pass through any known IndexMode value and keep the logs-* inference only for undefined or unknown values. Unskip the Scout downgrade-to-time-series test.

The serverless data streams API test now reads the expected index mode from Elasticsearch, because vectordb projects default data streams to vectordb_document and the API reports it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@kapral18
kapral18 force-pushed the fix/index-management/data-streams-standard-mode-misreported-283371 branch from 4b58cf7 to c1610bc Compare September 14, 2026 01:17
@kibanamachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience Feature:Index Management Index and index templates UI release_note:fix reviewer:scout Agentic PR Scout test review Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v9.5.4 v9.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Index Management] Data streams list and details flyout report "Standard" for time series data streams

3 participants