Create a Snowflake connection
In the Data Management app, create a Snowflake connection that uses a programmatic access token (PAT) to authenticate federated searches over remote Snowflake tables and views.
Before you can run federated searches of your remote Snowflake tables and views, you must first go to the Data Management app and create a Snowflake connection. The Snowflake connection uses a programmatic access token to authenticate federated searches over Snowflake tables and views that belong to a specific Snowflake warehouse, database, and schema.
You specify the Snowflake warehouse, database, and schema in the definition of the Snowflake connection. You can create multiple Snowflake datasets that use the same Snowflake connection.
-
You must have a Splunk Cloud Platform (SCP) deployment that is hosted on AWS (Amazon Web Services).
-
You must have a role on your SCP deployment that has the
edit_connectionsandedit_datasetscapabilities. See Define roles on the Splunk platform with capabilities in Securing Splunk Cloud Platform. -
You must have a Snowflake account. As a best practice, this account should be in the same AWS cloud region as your Splunk Cloud Platform deployment.
Before you can create a connection that authenticates federated search over a Snowflake dataset, you must first complete the following tasks in the order provided in your Snowflake account. For guidance on how to complete these tasks, use the provided links to Snowflake documentation, or consult Snowflake's Cortex Code AI for instructions.
| Task | Documentation |
|---|---|
Identify or create a Snowflake role that has the following permissions:
|
Creating custom roles |
Set up a network rule with a Type of IPv4 and a Mode of Ingress that allow-lists a set of IP ranges that correspond to the Cloud region of your Splunk Cloud Platform (SCP) deployment.
|
Create a network rule |
| Create a network policy and assign the IP allow list network rule to it. | Create a network policy |
Create a service user.
|
Consult Snowflake's Cortex Code AI for guidance on how to create a service user. To grant the role to the service user, see: Grant the role to users To activate the network policy for the service user, see: Activate network policies for individual users |
| Update the authentication policy for the service user to allow it to generate a programmatic access token (PAT). | PAT prerequisites authentication |
| Generate a programmatic access token for the service user. When you generate the PAT, grant access to the role you identified or created earlier.
Note: When you generate this PAT, copy or download the token so you can use it for Snowflake connection setup. You cannot access it again through the Snowflake UI.
|
Generating a programmatic access token |
Now that you have created a connection to a specific warehouse, database, and schema in your Snowflake account, you can create a dataset definition that lets you run federated searches over a specific Snowflake table or view covered by that connection. See Define a Snowflake dataset.