Data views in Elastic Securityedit
Data views determine what data displays on Elastic Security pages with event or alert data. Data views are defined by the index patterns they include. Only data from Elasticsearch indices, data streams, or index aliases specified in the active Data view will appear.
Custom indices are not included in the default Data view. Modify it or create a custom Data view to include custom indices.
Switch to another Data viewedit
You can tell which Data view is active by clicking the Data view menu at the upper right of Elastic Security pages that display event or alert data, such as Overview, Alerts, Timelines, or Hosts. To switch to another Data view, click Choose Data view, select one of the options, and click Save.

Create or modify a Data viewedit
You can temporarily modify the active Data view from the Data view menu by clicking Advanced options, then adding or removing index patterns.

This only allows you to add index patterns that match indices that currently contain data (other index patterns are unavailable). Note that any changes made are saved in the current browser window and won’t persist if you open a new tab.
To permanently modify a Data view, delete an existing Data view or create a new one, you need the required permissions. To learn more, refer to Kibana Data views.
The default Data viewedit
The default Data view is defined by the securitySolution:defaultIndex
setting, which you can modify in Kibana’s advanced settings (Stack Management > Advanced Settings > Security Solution). To learn more about this setting, including its default value, refer to Advanced settings.
The first time a user visits Elastic Security within a given Kibana space, the default Data view generates in that space and becomes active.
If you delete the active Data view when there are no other defined Data views, the default Data view will regenerate and become active upon refreshing any Elastic Security page in the space.