Kibana requires a Data view to access the Elasticsearch data that you want to explore. A Data view can point to one or more indices, data streams, or index aliases. For example, a Data view can point to your log data from yesterday, or all indices that contain your data.
Access to Data Views requires the Kibana privilege
Data View Management.
To create a Data view, you must have the Elasticsearch privilege
- If a read-only indicator appears in Kibana, you have insufficient privileges to create or save Data views. In addition, the buttons to create Data views or save existing Data views are not visible. For more information, refer to Granting access to Kibana.
Create a data viewedit
If you collected data using one of the Kibana ingest options, uploaded a file, or added sample data, you get a Data view for free, and can start exploring your data. If you loaded your own data, follow these steps to create a Data view.
Open Lens or Discover, and then open the data view menu.
- Click Create a Data view.
- Give your Data view a name.
Start typing in the Index pattern field, and Kibana looks for the names of indices, data streams, and aliases that match your input. You can view all available sources or only the sources that the data view targets.
To match multiple sources, use a wildcard (*).
filebeat-apache-b, and so on.
To match multiple single sources, enter their names,
separated by a comma. Do not include a space after the comma.
filebeat-a,filebeat-bmatches two indices.
To exclude a source, use a minus sign (-), for example,
- To match multiple sources, use a wildcard (*).
Open the Timestamp field dropdown, and then select the default field for filtering your data by time.
- If you don’t set a default time field, you can’t use global time filters on your dashboards. This is useful if you have multiple time fields and want to create dashboards that combine visualizations based on different timestamps.
- If your index doesn’t have time-based data, choose I don’t want to use the time filter.
Click Show advanced settings to:
- Display hidden and system indices.
- Specify your own Data view name. For example, enter your Elasticsearch index alias name.
You can manage your data view from Stack Management.
Create a temporary Data viewedit
Want to explore your data or create a visualization without saving it as a data view? Select Use without saving in the Create Data view form in Discover or Lens. With a temporary Data view, you can add fields and create an Elasticsearch query alert, just like you would a regular Data view. Your work won’t be visible to others in your space.
A temporary Data view remains in your space until you change apps, or until you save it.
Temporary Data views are not available in Stack Management.
Use Data views with rolled up dataedit
Deprecated in 8.11.0.
Rollups are deprecated and will be removed in a future version. Use downsampling instead.
A Data view can match one rollup index. For a combination rollup Data view with both raw and rolled up data, use the standard notation:
For an example, refer to Create and visualize rolled up data.
Use Data views with cross-cluster searchedit
If your Elasticsearch clusters are configured for cross-cluster search, you can create a Data view to search across the clusters of your choosing. Specify data streams, indices, and aliases in a remote cluster using the following syntax:
To query Logstash indices across two Elasticsearch clusters
that you set up for cross-cluster search, named
Use wildcards in your cluster names
to match any number of clusters. To search Logstash indices across
cluster_bar, and so on:
To query across all Elasticsearch clusters that have been configured for cross-cluster search, use a standalone wildcard for your cluster name:
To match indices starting with
logstash-, but exclude those starting with
all clusters having a name starting with
Excluding a cluster avoids sending any network calls to that cluster.
To exclude a cluster with the name
Once you configure a Data view to use the cross-cluster search syntax, all searches and aggregations using that Data view in Kibana take advantage of cross-cluster search.
For more information, refer to Excluding clusters or indicies from cross-cluster search.
Delete a Data viewedit
When you delete a Data view, you cannot recover the associated field formatters, runtime fields, source filters, and field popularity data. Deleting a Data view does not remove any indices or data documents from Elasticsearch.
Deleting a Data view breaks all visualizations, saved searches, and other saved objects that reference the data view.
- Open the main menu, and then click Stack Management > Data Views.
- Find the Data view that you want to delete, and then click in the Actions column.