CertSafari
    Snowflake SnowPro Advanced: Administrator (ADA-C02)· Lessons

    Domain 4 · Lesson 19/24

    Snowflake event tables and telemetry levels

    Enable and manage logging and tracing.

    15 min read
    4% of exam
    4 sources
    Published 20 Oct 2026
    Docs as of 4 Oct 2026

    What you will be able to do

    • Choose between the default event table SNOWFLAKE.TELEMETRY.EVENTS and a custom event table for a given retention or processing need
    • Activate a custom event table for an account or a database and predict which table receives an object's telemetry
    • Give roles access to telemetry through application roles, views and row access policies
    • Set LOG_LEVEL, LOG_EVENT_LEVEL, METRIC_LEVEL and TRACE_LEVEL at the right scope and work out which level is in effect

    Key concept

    Active event table plus telemetry levels — Snowflake stores telemetry only when two things are in place. An event table must be active for the code's scope, and a level parameter must allow that kind of data. If either is missing, nothing is stored.

    1.Where Snowflake telemetry lands

    An event table is where Snowflake stores telemetry: log messages, trace events and metrics from procedures, UDFs and other objects. It is a special kind of table. Its columns are fixed and follow the OpenTelemetry data model. It holds data that Snowflake generates itself as well as data your handler code emits through logging and tracing APIs. You read all of it with ordinary SQL queries.

    Collection depends on two settings working together. One decides where data goes: the active event table. The other decides what gets stored: the telemetry levels. A procedure can call logging.info all day, but if the level threshold is above INFO, or no event table is active for that procedure's scope, those messages are never stored. Collection also costs money, so levels are a cost lever as well as a debugging switch. Spend on telemetry is covered under cost management.

    Every account starts with a working setup. Snowflake ships a default event table, SNOWFLAKE.TELEMETRY.EVENTS, that is already active. If you never set an active event table, Snowflake keeps using the default one. Snowsight shows the collected data under Monitoring » Traces & logs.

    Checkpoint 1 of 8· Check yourself

    A stored procedure calls logging.info on every run. The account still uses the default event table SNOWFLAKE.TELEMETRY.EVENTS, which is active. No INFO messages from the procedure ever show up in the event table. What is the most likely cause?

    Sources1

    2.Default event table or a custom one

    The default event table is fine for getting started, but it accepts fewer operations. It supports only a subset of the DDL that works on event tables you create yourself. For example, you can't drop it, undrop it, or use it with CREATE TABLE. Both kinds support SELECT, TRUNCATE, DELETE and ALTER TABLE, though neither can be renamed.

    Operations on the default event table versus a user-created event table
    OperationDefault event tableUser-created event table
    SHOW EVENT TABLES, DESCRIBE EVENT TABLE, SELECTSupportedSupported
    TRUNCATE TABLE, DELETESupportedSupported
    ALTER TABLESupported, rename not supportedSupported, rename not supported
    DROP TABLE, UNDROP TABLE, CREATE TABLENot supportedSupported

    A custom event table makes sense when the telemetry needs to be treated like a pipeline asset, with its own retention rules, its own location and downstream processing. You create it with CREATE EVENT TABLE and never list columns, because the predefined event table columns come with it. This is also why an ordinary table with copied column names can't stand in for one. Collection writes only to event tables.

    Creating a custom event table; no column list is givensql
    CREATE EVENT TABLE my_database.my_schema.my_events;

    Retention and downstream processing use operations that event tables support. TRUNCATE TABLE empties the table. DELETE removes selected rows, which lets you keep one function's logs longer than another's. For example, a scheduled DELETE of rows older than 14 days gives you a 14-day retention rule. A stream on the event table captures new inserts, which a downstream job can consume. Before you design a disaster-recovery plan around telemetry, note that event tables are not replicated. Any event table in a primary database is skipped during database replication.

    An append-only stream that captures inserts into an event tablesql
    CREATE STREAM append_only_comparison ON EVENT TABLE my_event_table APPEND_ONLY=TRUE;

    Checkpoint 2 of 8· Fill the gap

    Your team wants its own telemetry table with its own retention rules and downstream processing, separate from SNOWFLAKE.TELEMETRY.EVENTS. Which keyword completes the statement so the result is a table that telemetry collection can write to, without listing any columns?

    CREATE  ?  TABLE my_database.my_schema.my_events;

    Sources12

    3.Activating an event table for an account or a database

    Creating an event table does not activate it. Until you associate the new table with an object, telemetry keeps flowing into SNOWFLAKE.TELEMETRY.EVENTS, and the new table stays empty. To associate it, you set the EVENT_TABLE parameter with ALTER <object>. The object you choose becomes the scope whose events land in that table, and the parameter needs the event table's fully qualified name.

    Making a custom event table the active one for the whole accountsql
    ALTER ACCOUNT SET EVENT_TABLE = my_database.my_schema.my_events;

    You can associate an event table at only two levels: the account and the database. There is no session-level EVENT_TABLE and no per-user setting. The privileges belong to whoever runs the ALTER. Granting INSERT to the roles that own procedures makes no difference to where their telemetry goes.

    Scopes for associating an event table
    ScopePrivileges requiredData collected
    Account (ALTER ACCOUNT SET EVENT_TABLE)ACCOUNTADMIN role, OWNERSHIP of the account, OWNERSHIP or INSERT on the event tableProcedures and UDFs in the account; the broadest scope
    Database (ALTER DATABASE ... SET EVENT_TABLE)ACCOUNTADMIN role, OWNERSHIP or INSERT on the event table; Enterprise Edition featureProcedures and UDFs in that database

    If both levels are set, the database wins. Say the account points at one event table and my_database points at another. Objects in my_database write to the database's table, and every other database falls back to the account's table. To remove an association, use ALTER ACCOUNT UNSET EVENT_TABLE or ALTER DATABASE my_database UNSET EVENT_TABLE. To check the current value, run SHOW PARAMETERS LIKE 'event_table' IN ACCOUNT or IN DATABASE my_database.

    Checkpoint 3 of 8· Match them up

    In this account, ALTER ACCOUNT SET EVENT_TABLE points at analytics.ops.acct_events, and ALTER DATABASE sales_db SET EVENT_TABLE points at analytics.ops.sales_events. A third table, analytics.ops.new_events, was created with CREATE EVENT TABLE, but no ALTER was ever run for it. Telemetry levels allow INFO logs everywhere. Match each item to where its telemetry ends up.

    Tap a term, then the definition that fits it.

    Checkpoint 4 of 8· Exam question

    A platform team wants telemetry from all stored procedures kept for only 14 days, with a stream on the telemetry table feeding a downstream task and a clustering key on the timestamp. Which approach MOST appropriately meets these needs?

    Sources1

    4.Controlling who can read telemetry

    Telemetry can include user names, query IDs and anything a developer chose to log, so reading it should be controlled like any other sensitive data. ACCOUNTADMIN can read the default event table. Two predefined application roles let you hand out narrower access:

    • SNOWFLAKE.EVENTS_VIEWER can SELECT from SNOWFLAKE.TELEMETRY.EVENTS_VIEW, a predefined view over the default event table.
    • SNOWFLAKE.EVENTS_ADMIN has SELECT, TRUNCATE and DELETE on the default event table, SELECT on EVENTS_VIEW, and USAGE on the procedures that attach and detach row access policies on that view.
    • SELECT on a custom event table is what a role needs to read telemetry when the account uses a custom table instead of the default.
    Application roles are granted to roles, never directly to userssql
    GRANT APPLICATION ROLE SNOWFLAKE.EVENTS_ADMIN TO ROLE my_admin_role;
    
    GRANT APPLICATION ROLE SNOWFLAKE.EVENTS_VIEWER TO ROLE my_analysis_role;

    To filter rows, attach a row access policy to EVENTS_VIEW. You do this with ADD_ROW_ACCESS_POLICY_ON_EVENTS_VIEW(VARCHAR, ARRAY) and remove it with DROP_ROW_ACCESS_POLICY_ON_EVENTS_VIEW(VARCHAR). Both procedures require EVENTS_ADMIN, and policies on this view are an Enterprise Edition feature. For a custom event table, the equivalent is to create views on the table and grant each view to a different role, so each role sees only its slice. How the policies themselves work is covered under row access policies.

    Checkpoint 5 of 8· Check yourself

    Analysts on the finance team should read telemetry from the default event table, but only rows from the finance database. They must not be able to delete or truncate anything. The account is on Enterprise Edition. Which setup meets this requirement?

    Sources13

    5.The level parameters and where they are set

    Each kind of telemetry has its own level parameter. For logs, the level is a severity threshold: Snowflake keeps messages at that level and anything more severe. Set LOG_LEVEL = WARN and you get WARN, ERROR and FATAL messages, but no INFO or DEBUG.

    Telemetry level parameters
    ParameterWhat it governsValues
    LOG_LEVELLog messages from logging APIs in handler codeThreshold such as DEBUG, INFO, WARN, ERROR, FATAL
    LOG_EVENT_LEVELLog events (record type EVENT) from Snowpipe, tasks, dynamic tables, Iceberg tables, data governance tag activitySeverity threshold
    METRIC_LEVELCPU and memory metrics Snowflake generatesALL or NONE
    TRACE_LEVELScope of trace event data storedFor example ALWAYS or OFF
    SQL_TRACE_QUERY_TEXTWhether SQL text is captured in a traced SQL statementSet on the account

    Levels are set on the code's scope, never on the event table. You can set them on the account, on a database or schema that holds procedures and functions, on an individual stored procedure, UDF or UDTF, on an externally managed Iceberg table with automated refresh, or on a session. Streamlit objects can't take a level directly, so set it on the database or schema that contains them. In Snowsight, Set Event Level on the Traces & Logs page sets levels for the account or a database (optionally a schema). Turning Logs on there means INFO, Traces on means ALWAYS, and Metrics on means ALL.

    Each parameter has its own privilege. To set LOG_LEVEL on the account, a role needs MODIFY LOG LEVEL on the account. To set it on an object, the role also needs MODIFY on that object and USAGE on the database or schema that contains it. To set it for a session, the role needs MODIFY SESSION LOG LEVEL. The other parameters follow the same pattern: MODIFY LOG EVENT LEVEL, MODIFY METRIC LEVEL and MODIFY TRACE LEVEL.

    A database-wide default with a tighter override for one UDFsql
    USE ROLE central_log_admin;
    
    -- Set the log levels on a database and UDF.
    ALTER DATABASE db1 SET LOG_LEVEL = ERROR;
    ALTER FUNCTION f1(int) SET LOG_LEVEL = WARN;

    Checkpoint 6 of 8· Fill the gap

    Handler code in the UDF f1 calls logging APIs. You want that one function to store its WARN, ERROR and FATAL log messages, while the rest of the database keeps a stricter setting. Which parameter completes the statement?

    ALTER FUNCTION f1(int) SET  ?  = WARN;

    Sources4

    6.Working out which level is in effect

    Levels are inherited through two separate hierarchies, and the narrower scope wins inside each one. For object parameters the chain is account, database, schema, object. For session parameters it is account, user, session. If the account says FATAL and a Java UDF says INFO, that UDF logs at INFO.

    An object-level setting overrides the account-level onesql
    ALTER ACCOUNT SET LOG_LEVEL = FATAL;
    
    ALTER FUNCTION MyJavaUDF SET LOG_LEVEL = INFO;
    
    -- The INFO log level is used because the FUNCTION MYJAVAUDF
    -- is lower than the ACCOUNT in the hierarchy.

    The two hierarchies meet at a single rule: when a level is set in both, the more verbose one wins. That rule explains how to debug safely. Suppose the account runs at ERROR to keep volume down, and one production procedure fails intermittently. Set LOG_LEVEL = DEBUG on that procedure only, collect what you need, then remove the override. Raising the account level would flood the event table from every handler. Setting the schema would turn on DEBUG for every object in it. A session-level DEBUG (ALTER SESSION SET LOG_LEVEL = DEBUG, which needs MODIFY SESSION LOG LEVEL) only covers calls made in that session, so it misses failures that happen in scheduled runs.

    Checkpoint 7 of 8· Check yourself

    Production runs with LOG_LEVEL = ERROR on the account to keep telemetry volume down. One stored procedure, which a scheduled task calls every night, fails now and then. You need DEBUG messages from that procedure only, including on its scheduled runs. Which change gives you that?

    Checkpoint 8 of 8· Exam question

    A production procedure sales.etl.load_orders fails intermittently. The account LOG_LEVEL is ERROR to limit event table volume, and engineers need DEBUG messages from only this procedure with minimal side effects. What should the administrator do?

    Sources4

    Sources

    (4)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “After installation, Snowflake includes a default event table called SNOWFLAKE.TELEMETRY.EVENTS. This event table is active and collects data until you deactivate it.”
      ↩︎ Where Snowflake telemetry lands
      “The table’s structure supports the data model for OpenTelemetry, a framework for handling telemetry data.”
      ↩︎ Where Snowflake telemetry lands
      “When you create an event table, you do not specify the columns in the table.”
      ↩︎ Default event table or a custom one
      “Replication of event tables is not currently supported.”
      ↩︎ Default event table or a custom one
      “an event table associated with a database takes precedence over an event table associated with an account.”
      ↩︎ Activating an event table for an account or a database
      “Associating an event table with a database is an Enterprise Edition feature.”
      ↩︎ Activating an event table for an account or a database
      “You must grant these roles to other roles, rather than to a user.”
      ↩︎ Controlling who can read telemetry
      “Using row access policies on the EVENT_VIEW view is an Enterprise Edition feature.”
      ↩︎ Controlling who can read telemetry
      “To collect telemetry data, you must have an active event table and have set telemetry levels to allow data collection.”
      ↩︎ Key concept
      “Associate the event table with an object by executing the ALTER <object> command on the object”
      ↩︎ Exam trap 1
      “The default event table supports only a subset of DDL commands supported for event tables you create or for regular tables.”
      ↩︎ Exam trap 3
      “To collect telemetry data, you must have an active event table and have set telemetry levels to allow data collection.”
      ↩︎ Checkpoint
      “ADD_ROW_ACCESS_POLICY_ON_EVENTS_VIEW(VARCHAR, ARRAY)—Binds a row access policy to the specified columns in the EVENTS_VIEW.”
      ↩︎ Checkpoint
    2. 3.
      “The SELECT privilege on a custom event table, if your account uses a custom event table instead of the default.”
      ↩︎ Controlling who can read telemetry
    3. 4.
      “setting the LOG_LEVEL parameter to WARN means that log messages at the WARN, ERROR, and FATAL levels are captured in the event table.”
      ↩︎ The level parameters and where they are set
      “You can currently have all metrics data captured or none.”
      ↩︎ The level parameters and where they are set
      “For session parameters, the hierarchy is Account » User » Session.”
      ↩︎ Working out which level is in effect
      “For object parameters, the hierarchy is Account » Database » Schema » Object.”
      ↩︎ Working out which level is in effect
      “In cases where the level is set in both the session and object parameter hierarchies, the most verbose level is used.”
      ↩︎ Exam trap 2
      “In cases where the level is set in both the session and object parameter hierarchies, the most verbose level is used.”
      ↩︎ Prediction
      “override the database- or schema-level parameter for specific stored procedures and UDFs in that database or schema.”
      ↩︎ Checkpoint

    Continue to part 2 of 2

    Snowflake telemetry analysis: health, alerts and trace-based root cause

    Spotted a mistake, or was something unclear? Tell us.