CREATE EVENT ROUTING TABLE

statementsupportedAccounts, users, sessions, warehouses

docs.snowflake.com ↗

Object: EVENT ROUTING TABLE

Creates a new event routing table in the current organization and region. The table is used to route events and other telemetry data to a centralized location, where they can be analyzed. After you create an event routing table, you must activate it for the organization using the ALTER ORGANIZATION SET EVENT ROUTING TABLE command. For information about event routing tables, see Configure centralized event sharing for an app.

Syntax

supportedpartialnot supportednot scored

CREATE EVENT ROUTING TABLE <table_name>
  WITH RULES
    {rule name} = (REGION_GROUP={region group}, REGIONS=('{region1}', '{region2}', ...), DESTINATION_ACCOUNT = {organization}.{account_name})
    ...

Parameters

NameRequiredDescription
table_namerequiredSpecifies the identifier (the name) for the event routing table; must be unique for the organization in which the event routing table is created. In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters unless the entire identifier string is enclosed in double quotes (e.g. "My object"). Identifiers enclosed in double quotes are also case-sensitive. For more details, see Identifier requirements.
{rule name}requiredSpecifies the name of the rule to create. The rule name must be unique for the event routing table.
region1, region2, ...requiredSpecifies the regions to route the events to. You can specify individual regions or use ALL to specify all regions. For information about available regions, see Region IDs.
organizationrequiredSpecifies the organization to route the events to.
{region group}optionalSpecifies the region group to route the events to. The only supported value is PUBLIC.

Access control requirements

Role | Notes ORGADMIN | Required to run this command. If the organization account has the GLOBALORGADMIN role enabled, only GLOBALORGADMIN can run this command. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

Referenced by