Skip to main content

Supported Data Types

📘 Logs | 📈 Metrics | 🚦 Traces

Snowflake 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:
This script performs the following actions:
  1. Variable Setup: Defines variables for all the configurable values needed in the script.
  2. Role Creation:
    • Switches to the securityadmin role for security-related operations
    • Creates a new role for Sawmills if it doesn’t exist
    • Grants the new role to SYSADMIN for management purposes
  3. 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
  4. Permission Setup:
    • Switches to accountadmin for granting warehouse access
    • Grants warehouse usage permissions to the role
    • Grants necessary database permissions (CREATE SCHEMA, MONITOR, USAGE) to the role
After running this script, your Snowflake environment will be properly be configured for use with Sawmills.

How to get the account ID:

  1. Login to your Snowflake account.
  2. Click on the user menu in the bottom-left corner and select Account.
  3. Hover over the Account you want to use and copy the Account Identifier.
  4. Replace the . with - in the account identifier.