Splunk Cloud Platform

Search Manual

Acrobat logo Download manual as PDF


Acrobat logo Download topic as PDF

About federated search

You can run federated searches to search datasets outside of your local Splunk deployment. From your local search head, federated search gives you a holistic view of datasets across multiple Splunk platform deployments.

Federated search is topology-agnostic, so it works despite the complexity of the Splunk platform deployments involved. You can run a federated search across any remote Splunk Cloud Platform or Splunk Enterprise deployment.

Federated search is currently unavailable for regulated (FedRAMP, PCI, and HIPAA) Splunk Cloud Platform environments. Federated search is also unavailable for Splunk Cloud Platform environments in Google Cloud regions.

Do you use hybrid search? See Migrate from hybrid search to federated search.

Components of a typical federated search setup

Federated search introduces a set of terms. Familiarize yourself with them before you attempt to dig into setting up and running federated searches.

Federated search

A search of one or more remote datasets on one or more federated providers.

Local deployment

The Splunk platform deployment from which you perform federated searches. The federated search head for your federated search resides on your local deployment.

In this context, "local" does not refer to your physical location. If you are in London and are logging into a Splunk platform deployment located in New York City when you run a federated search, that New York City deployment is the local deployment for your federated search.

Federated search head

A search head residing on your local deployment that initiates federated searches.

Federated provider

A remote Splunk platform deployment. Contains the data that you search with your federated searches.

Before you can run federated searches, you must create federated provider definitions on the local Splunk platform deployment. A federated provider definition serves several purposes:

  • It enables the federated search head to make network connections to the federated provider and run searches on a remote search head on that provider through a service account.
  • It determines whether the federated provider runs in standard or transparent mode.
  • It determines which set of knowledge objects the federated provider applies to federated searches.

See Define a federated provider.

Remote search head

A search head on a federated provider.

Federated index

An index you create on your federated search head to run federated searches over standard mode federated providers. Each federated index maps to a specific remote dataset on a standard mode federated provider. Federated indexes can't be set up to ingest data or events. They provide a logical mapping to remote datasets. See Create a federated index.

Remote dataset

A dataset on a standard mode federated provider. Currently, only events indexes and saved searches qualify as remote datasets.

How federated search works

The federated search process works similarly to distributed search. On a distributed search, the initial processing of a search is handled by the indexers of a Splunk platform deployment, and then the results are aggregated on the search head for that deployment to produce a final result set.

Federated searches, however, are broken up into parts that are processed locally and parts that are processed remotely. The remote processing takes place on one or more federated providers.

For example, say you have a simple federated search that involves only one federated provider. In this case, the federated search process sends the remote portion of the search to the federated provider. On the federated provider, the search is processed independently by the remote search head and its indexers. The remote search head then sends the results back to the federated search head on the local Splunk platform deployment, where the local search head aggregates the remote results into the final result set for the complete federated search.

The following diagram illustrates a federated search over a remote Splunk platform deployment. The remote deployment is set up as a standard mode federated provider. The federated provider has an events index dataset that is available for federated searches. On the local Splunk platform deployment, a federated index on the federated search head is mapped to the remote datasets.

If the federated provider in this example were a transparent mode federated provider, it would not be associated with a federated index.

This diagram illustrates a federated search over a remote Splunk platform deployment. The remote deployment is set up as a standard mode federated provider. The federated provider has an events index dataset that is available for federated searches. On the local Splunk platform deployment, a federated index on the federated search head is mapped to the remote datasets.

A simple federated search for this setup might look like this:

index=federated:provider1_fedindex1 | stats count

This search references a federated index named provider1_fedindex1. The provider1_fedindex1 federated index is mapped to the remote dataset stored on Federated Provider 1. The remote search head uses this mapping to send back events from its remote index dataset to the federated search head on your local deployment. The federated search head runs the stats count operation on those events. When this stats count aggregation is complete, the federated search head presents the results without additional processing, as there are no additional datasets involved in the search.

See Run federated searches to learn how to write federated searches.

Kinds of federated searches you can set up

This table lists the three kinds of federated searches that you can set up, and the Splunk Enterprise or Splunk Cloud Platform versions that are required.

Kind of federated search Local Splunk platform deployment Remote Splunk platform deployment
Splunk Enterprise to Splunk Enterprise Splunk Enterprise (version 8.2.0 or higher) Splunk Enterprise (version 8.2.0 or higher)
Splunk Cloud Platform to Splunk Cloud Platform Splunk Cloud Platform (version 8.1.2103 or higher) Splunk Cloud Platform (version 8.2.2104 or higher)
Splunk Enterprise to Splunk Cloud Platform Splunk Enterprise (version 8.2.0 or higher) Splunk Cloud Platform (version 8.2.2104 or higher)

If your local deployment is on Splunk Cloud Platform, you can run federated searches over other Splunk Cloud Platform deployments. If your local deployment is on Splunk Enterprise, you can run federated searches over remote Splunk Cloud Platform deployments and remote Splunk Enterprise deployments.

If you have a Splunk Enterprise deployment that is lower than 8.2 and want to run federated searches without upgrading the entire deployment, you can upgrade a single search head in that deployment to 8.2 and run federated searches from that search head.

About standard and transparent mode

When you define a federated provider, you must decide what mode you want that provider to use. Federated provider modes offer different federated search experiences, and you must choose the mode that best fits your needs.

You have two federated provider mode options: standard and transparent.

  • Choose standard mode if you want to restrict access to remote indexes and remote dataset types that can be invoked by the from command, such as saved search datasets. Standard mode is the best fit for federated search users who are not migrating from a hybrid search setup.
  • Choose transparent mode if you use hybrid search and want to migrate to federated search. Transparent mode enables you to run your hybrid mode searches without syntax changes.

Transparent mode is available in Splunk Cloud Platform 8.2.2107. Federated searches over Splunk Cloud Platform deployments of lower versions should use standard federated provider mode. The following table describes the differences between the two modes.

Category Standard mode federated search Transparent mode federated search
Kinds of federated search Applies to the following kinds of federated search:
  • Splunk Cloud Platform to Splunk Cloud Platform
  • Splunk Enterprise to Splunk Enterprise
  • Splunk Enterprise to Splunk Cloud Platform, if you are not migrating to federated search from a hybrid search setup.
Applies specifically to Splunk Enterprise to Splunk Cloud Platform federated search, if you are migrating from a hybrid search setup.
Provider setup Requires:
  • A federated provider definition.
  • A separate federated index definition for each dataset on the federated provider that you want to search. You can specify events indexes and saved searches as searchable datasets.

You can associate a single remote deployment with multiple standard mode federated provider definitions. For example, for one remote deployment you might set up different standard mode federated provider definitions for different application contexts.

Requires federated provider definition only.

You can associate a single remote deployment with only one transparent mode federated provider definition.
Knowledge objects applied to searches Can use either of these options:
  • Remote knowledge objects from the federated provider. This is the best practice for standard mode federated providers.
  • Local knowledge objects from the federated search head.
Must use local knowledge objects from the federated search head.
Security When Local Knowledge Objects is enabled, access to data on the remote federated provider is determined by role-based security settings for the user running the federated search from the local federated search head. The service account you define on the remote search head must have a role with the fsh_manage capability.

When Local Knowledge Objects is disabled, access to data on the federated provider is determined by role-based settings on the federated provider service account.

You can additionally give your users selective role-based access to federated indexes, which restricts the datasets they can search on the federated provider.
Access to data on the remote federated provider is determined by role-based security settings for the user running the federated search from the local federated search head.

The service account you define on the remote search head must have a role with the fsh_manage capability.
Which searches run as federated searches on the federated provider Only those searches that invoke federated indexes run over remote datasets on federated providers. Searches that do not invoke federated indexes run only on your local Splunk platform deployment. When your local instance is connected to a transparent mode federated provider, all of your searches run over that federated provider as federated searches, whether or not you intend for them to search remote datasets on that provider. This might reduce the performance of some of your searches.
Special search processing language (SPL) syntax required? Yes No
SPL limitations Standard mode federated search cannot run searches that include:
  • Generating commands other than search and from.
  • Metrics commands such as mpreview or mstats.
  • The tstats or datamodel commands.

When running federated searches over standard mode federated providers, you cannot use wildcards to reference multiple federated indexes.

Dataset availability You can search events index and saved search datasets on a federated provider. You can search events and metrics indexes on a federated provider.


Service accounts and federated search security

As you prepare to run federated searches, consider the security of the data on the remote Splunk platform deployments that you are setting up as federated providers. Your users' access to that remote data depends on how you will set up those provider definitions. It also depends on how you define the service accounts for each of those federated providers.

You must set up a service account for your federated provider before you define the federated provider. A service account is a special user account that you define on a remote Splunk platform deployment before you create its federated provider definition. The service account facilitates secure communication between the federated provider and your local Splunk platform deployment.

See Service accounts and federated search security.

Defining federated providers

To run a federated search you must create federated provider definitions for the remote Splunk platform deployments that you intend to search. When you define a federated provider you determine whether it will run in standard or transparent mode. See Define a federated provider.

Creating federated indexes

If the federated provider you define uses standard mode, you must create federated indexes for that provider. Each federated index you create is mapped to a specific dataset that you plan to search with federated searches. See Create a federated index.

Running federated searches

For information about constructing and running federated searches, see Run federated searches.

Last modified on 01 December, 2021
PREVIOUS
Scheduling searches
  NEXT
Migrate from hybrid search to federated search

This documentation applies to the following versions of Splunk Cloud Platform: 8.2.2109, 8.2.2111


Was this documentation topic helpful?

You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters