Create a federated search connection

Create an Amazon S3 connection in the Data Management app to authenticate federated searches over Amazon S3 datasets from your Splunk platform deployment.

  • A role on your Splunk Cloud Platform deployment with the edit_datasets and edit_federated_providers capabilities. See Define roles on the Splunk platform with capabilities in Securing Splunk Cloud Platform.
  • An AWS account and an AWS IAM role with permissions that let you attach and modify custom trust policies and resource policies for IAM roles. Contact your AWS administrator for assistance with AWS permissions.

You begin the definition of a new Amazon S3 connection by determining its data store, identifying the AWS account that it connects to, and indicating what abilities it supports. Then you copy a Splunk-generated custom trust policy and use that policy to set up IAM role authentication in your AWS account, to enable federated searches of your Amazon S3 data. Finally, you optionally configure Apache Iceberg REST catalog authentication and create your connection.

  1. On your Splunk Cloud Platform deployment, in Splunk Web, open the Data Management app.
  2. Select Connections > Create connection to enter the Create connection workflow.
  3. On Select data store, select Amazon S3. Then select Next.
  4. On General, provide values for the following settings, and then select Next.
    Setting Description
    Connection name Give this connection a name. The connection name can contain only alphanumeric characters, underscores, and hyphens.
    Description (Optional) Provide a description of the connection.
    AWS account ID Enter the 12-digit AWS account ID for the AWS account that contains the datasets you want to search.
    AWS region Select the AWS region for the AWS account.
    Note: In the Federation 2.0 Alpha 1.1 preview, only the US-east-1 AWS region is supported.
  5. On Select abilities, select Run Federated Search.
    You can optionally select Send data from Ingest Processor or Send data from Edge Processor and choose their authentication methods if you want to use this connection to send data from your Splunk Cloud Platform deployment to the same Amazon S3 datasets that you run federated searches over.
  6. Select Next to go to the Storage authentication step.
Set up IAM role authentication in your AWS account
  1. At the Storage authentication step, select Copy for the Custom trust policy to copy the trust policy to your clipboard.
    You can optionally open the custom trust policy window to review the generated trust policy.
  2. In a new browser tab, log in to your AWS account and navigate to the Identity and Access Management (IAM) console.
  3. In the left-hand navigation pane of the IAM console, select Roles and then select Create role.
  4. On the Select trusted entity page, in the Trusted entity type section, select Custom trust policy.
  5. In the custom trust policy editor, replace the example custom trust policy with the custom trust policy you copied from your Splunk deployment. Then, select Next.
  6. On the Add permissions page, do not make any changes. Select Next.
  7. On the Name, review, and create page, do the following things.
    1. Give the role a Name that is unique within your AWS account.
      Role names are not distinguished by case, meaning that you cannot simultaneously have roles named MyRole and myrole.
    2. Review the Trust policy that you added in the previous steps to ensure that it is correct.
    3. In Add tags, add a resource tag with a Key of splunk-assumable-role and a Value of true.
    4. Select Create role.
  8. Find the role you just created and select the role name to open it.
  9. Select the copy icon to copy the role ARN.
  10. Go back to your first browser tab and paste the role ARN value into the IAM role ARN field for the Data Management app.
  11. Select Next to go to the Catalog authentication step.
Authenticate your Apache Iceberg REST catalog
  1. At the Catalog authentication step, indicate whether you use an Apache Iceberg REST catalog to represent your data.
    Note: If you do not use an Apache Iceberg REST catalog, select No for Do you use an Apache Iceberg REST catalog to represent your data? and select Next. Skip to the last step of this procedure.
  2. In Catalog URL, provide the URL of your Apache Iceberg REST catalog account endpoint.
  3. Indicate whether you use Oauth2 to access your Apache Iceberg REST catalog.
  4. If you use Oauth2 authentication, specify the following settings:
    Setting Description
    OAuth2 client ID An OAuth2 public identifier for the service or application that is requesting access to your Catalog URL.
    OAuth2 client secret An OAuth2 private credential that is paired with the OAuth2 client ID.
    OAuth2 token server URL The endpoint where the Iceberg client sends its ID and secret to obtain an access token.
    OAuth2 scope (Optional) The OAuth2 scope for catalog authentication. This string parameter defines the specific permissions or level of access the Iceberg client is requesting.

    An OAuth2 scope can define access to a specific catalog, namespace, or operation. Example values include catalog:my_catalog, PRINCIPAL_ROLE:ALL, or read-write.

  5. Select Next to review the connection you have defined.
  6. If the connection is defined correctly, select Create to create the connection.
After you create a connection, define a dataset for that connection. See Define dataset basics.