Data views in Elastic Security
Use data views to control what data displays on Elastic Security pages with event or alert data.
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.
Important
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 view
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 view
To learn how to modify the default Security Default Data View, refer to Advanced settings.
To learn how to modify, create, or delete another data view refer to Data views.
You can also 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.
Note
You cannot update the data view for the Alerts page. This includes referencing a cross-cluster search (CCS) data view or any other data view. The Alerts page always shows data from .alerts-security.alerts-default
.
The default data view
The default data view is defined by the securitySolution:defaultIndex
setting, which you can modify in your project's advanced settings. To learn more about this setting, including its default value, refer to Advanced settings).
The first time a user visits Elastic Security, the default data view generates and becomes active.
Note
Your space must have Data View Management feature visibility setting enabled for the default data view to generate and become active in your space.
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.