Create a federated index
After you set up one or more remote Splunk platform deployments as federated providers for your local Splunk platform deployment, you need to define federated indexes for use in federated searches. The Splunk platform creates federated indexes on the federated search head of your local Splunk platform deployment. Each federated index you create maps to one remote dataset on a federated provider. Federated indexes are events indexes.
In this task, you:
- Provide the name of the federated index.
- Select the federated provider which contains the remote dataset to which the federated index is mapped.
- Specify the remote dataset to which the federated index is mapped.
You can map a federated index to only one remote dataset at a time. If a federated provider contains several remote datasets over which you want to run federated searches, define a separate federated index for each dataset.
Specifying remote datasets
When you create a federated index, you map the index to a specific remote dataset on a federated provider. Remote datasets can be events indexes or saved searches.
|Remote dataset type||Definition|
|Events index||Each events index on a federated provider is a searchable dataset.|
|Saved search||The result set produced by a run of a saved search on a federated provider is a searchable dataset.|
Benefits of remote saved search datasets
You can use saved search datasets to get around certain limitations of federated searches. For example, federated searches cannot be the following kinds of searches:
- Searches that use metrics search commands such as
mstatsto search data in metrics indexes.
- Searches that use the
tstatscommand to reference data models.
- Searches that use any generating commands other than
However, you can create federated indexes that map to these kinds of saved searches, as saved search datasets. Then you can write federated searches that reference those federated indexes. See Run federated searches.
Remote dataset restrictions
The following kinds of indexes and saved searches cannot be used as remote datasets for federated searches. Do not map federated indexes to them.
- Metrics indexes
- Federated indexes
- Saved searches that contain references to federated indexes
Review the permission settings on saved searches that you want to use as federated search datasets. Such saved searches must either be shared globally, or they must have the same app context as the federated provider that the federated index is associated with.
For example, if you are creating a federated index for a federated provider that is associated with the Search app, any saved search dataset for that index must be shared with the Search app as well, or shared globally.
- Read About federated search to familiarize yourself with federated search concepts and terminology.
- You must have a role with the admin_all_objects capability.
- If you use Splunk Cloud Platform, the sc_admin role has this capability by default. See Manage Splunk Cloud users and roles in the Splunk Cloud Admin Manual.
- If you use Splunk Enterprise, the admin role has this capability by default. See Define roles on the Splunk platform with capabilities in the Securing the Splunk Platform manual.
- You must define one or more federated providers. See Define a federated provider.
- Know the names of the remote datasets to which you want your federated indexes to map.
- In Splunk Web, go to Settings > Federated Search.
- On the Federated Indexes tab, click Add Federated Index.
- Using the following table, specify the settings for your federated index.
Setting Description Default value Federated Index Name Specify the name of the federated index you're creating. The name must reference the remote dataset it maps to.
Federated index names have the following restrictions:
- They may contain only lowercase letters, numbers, underscores, and hyphens.
- They must begin with a letter or number.
- They cannot be more than 2048 characters in length.
- They cannot contain the string "kvstore".
No default Federated Provider Select the federated provider that contains the dataset to which this federated index will map. No default Dataset Specification Specify the Type of remote dataset that this federated index maps to and provide the Object Name for the dataset.
For Object Name, use the name of a dataset of the selected Type that currently exists on the selected federated provider.
The dataset Type defaults to Index.
Object Name has no default.
- Click Save to save the federated index configuration.
The index is created on the federated search head of your local Splunk platform deployment.
In Splunk Web, you can view the federated indexes that you create for your deployment by selecting Settings > Federated Search > Federated Indexes.
Do not designate federated indexes as default indexes for roles or data inputs.
Currently, federated indexes do not appear on the Indexes listing page at Settings > Indexes.
After you create your federated indexes, you can reference them in federated searches. When you reference a federated index in a search, you are searching over the remote dataset to which the federated index maps. See Run federated searches.
Define a federated provider
Run federated searches
This documentation applies to the following versions of Splunk Cloud™: 8.2.2105, 8.2.2106