Supported Data Types
📘 Logs | 📈 Metrics | 🚦 TracesSnowflake Destination Configuration
Prerequisites
- A Snowflake account with a database, warehouse, and user.
- A Sawmills Collector instance.
- Network connectivity between the source and destination clusters.
Snowflake Setup Script
The following SQL script creates the necessary user, role, and permissions in Snowflake. Each section performs specific setup tasks:- Variable Setup: Defines variables for all the configurable values needed in the script.
-
Role Creation:
- Switches to the
securityadminrole for security-related operations - Creates a new role for Sawmills if it doesn’t exist
- Grants the new role to
SYSADMINfor management purposes
- Switches to the
-
User Creation:
- Creates a new user account for Sawmills
- Sets the default role and warehouse for the user
- Associates the newly created role with the user
-
Permission Setup:
- Switches to
accountadminfor granting warehouse access - Grants warehouse usage permissions to the role
- Grants necessary database permissions (CREATE SCHEMA, MONITOR, USAGE) to the role
- Switches to
How to get the account ID:
- Login to your Snowflake account.
- Click on the user menu in the bottom-left corner and select Account.
- Hover over the Account you want to use and copy the Account Identifier.
- Replace the
.with-in the account identifier.