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?
Two things must both be in place before telemetry is stored: an active event table (the default one counts) and a telemetry level that allows that kind of data. Here the event table is active, so a level threshold above INFO is what blocks the messages.
“To collect telemetry data, you must have an active event table and have set telemetry levels to allow data collection.”Source: docs.snowflake.com
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.
| Operation | Default event table | User-created event table |
|---|---|---|
| SHOW EVENT TABLES, DESCRIBE EVENT TABLE, SELECT | Supported | Supported |
| TRUNCATE TABLE, DELETE | Supported | Supported |
| ALTER TABLE | Supported, rename not supported | Supported, rename not supported |
| DROP TABLE, UNDROP TABLE, CREATE TABLE | Not supported | Supported |
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.
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.
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;Telemetry collection writes only to event tables, and CREATE EVENT TABLE brings the predefined OpenTelemetry columns with it, so no column list is needed. A transient, temporary or external table is not an event table, even if you copy the column names into it.
Source: docs.snowflake.com3.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.
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.
| Scope | Privileges required | Data collected |
|---|---|---|
| Account (ALTER ACCOUNT SET EVENT_TABLE) | ACCOUNTADMIN role, OWNERSHIP of the account, OWNERSHIP or INSERT on the event table | Procedures 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 feature | Procedures 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.
A database-level EVENT_TABLE takes precedence over the account-level one, so sales_db writes to its own table. Databases without their own association fall back to the account's table. A newly created event table receives nothing until ALTER ... SET EVENT_TABLE points an account or a database at it.
“an event table associated with a database takes precedence over an event table associated with an account.”Source: docs.snowflake.com
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?
Correct answer: C — Create a custom event table with CREATE EVENT TABLE, then make it the account's active event table with ALTER ACCOUNT SET EVENT_TABLE.
- A. Incorrect. Only an object created with CREATE EVENT TABLE can be set as the account's event table; a regular table with matching columns is rejected.
- B. Incorrect. The default system event table is managed by Snowflake and cannot be altered, so streams, cluster keys and custom retention cannot be attached to it, even by ACCOUNTADMIN.
- C. Correct. A custom event table is a table you own, so you can add streams, clustering and your own purge task, and ALTER ACCOUNT SET EVENT_TABLE redirects collection to it.
- D. Incorrect. The default events view is a read-only window on the system table, and a materialized view cannot be built on it to enforce a 14-day retention or to feed a stream.
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.
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?
EVENTS_VIEWER gives SELECT on EVENTS_VIEW only, so the analysts can't delete or truncate. Rows on that view are filtered by a row access policy, which is attached with ADD_ROW_ACCESS_POLICY_ON_EVENTS_VIEW, and that procedure requires EVENTS_ADMIN. Giving EVENTS_ADMIN to the analysts would also give them TRUNCATE and DELETE, and application roles are granted to roles, never directly to users.
“ADD_ROW_ACCESS_POLICY_ON_EVENTS_VIEW(VARCHAR, ARRAY)—Binds a row access policy to the specified columns in the EVENTS_VIEW.”Source: docs.snowflake.com
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.
| Parameter | What it governs | Values |
|---|---|---|
| LOG_LEVEL | Log messages from logging APIs in handler code | Threshold such as DEBUG, INFO, WARN, ERROR, FATAL |
| LOG_EVENT_LEVEL | Log events (record type EVENT) from Snowpipe, tasks, dynamic tables, Iceberg tables, data governance tag activity | Severity threshold |
| METRIC_LEVEL | CPU and memory metrics Snowflake generates | ALL or NONE |
| TRACE_LEVEL | Scope of trace event data stored | For example ALWAYS or OFF |
| SQL_TRACE_QUERY_TEXT | Whether SQL text is captured in a traced SQL statement | Set 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.
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;LOG_LEVEL sets the severity threshold for log messages from logging APIs in handler code, and you set it on the code's object, here the function. LOG_EVENT_LEVEL is for record-type EVENT rows from things like Snowpipe and tasks. TRACE_LEVEL controls trace data, and METRIC_LEVEL takes only ALL or NONE.
Source: docs.snowflake.comSources4
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.
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?
In the object hierarchy, a level set on a procedure overrides the account level, so only that procedure logs at DEBUG and it does so on every call, scheduled runs included. Raising the account level floods the event table from every handler. A session level covers only calls made in that session, so it misses the nightly runs. Levels are never set on the event table.
“override the database- or schema-level parameter for specific stored procedures and UDFs in that database or schema.”Source: docs.snowflake.com
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?
Correct answer: B — Run ALTER PROCEDURE sales.etl.load_orders(VARCHAR) SET LOG_LEVEL = DEBUG, then UNSET it once the failures have been diagnosed.
- A. Incorrect. An account-level DEBUG setting makes every procedure and function in the account log verbosely, which inflates event table volume and cost far beyond the one procedure.
- B. Correct. Log level can be set on an individual procedure, overriding the account value, so only that object emits DEBUG messages and the change is easy to revert.
- C. Incorrect. LOG_LEVEL is not a property of the event table; severity filtering happens at the account, database, schema or object where the code runs.
- D. Incorrect. A schema-level setting would be inherited by every object in sales.etl, producing noise from unrelated procedures and UDFs.
Sources4
Sources
(4)
Every claim above is drawn from one of these pages, quoted as it was written on the date shown.
- 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.
“Use DELETE to remove selected rows from the event table.”
↩︎ Default event table or a custom one - 3.https://docs.snowflake.com/en/developer-guide/logging-tracing/logging-accessing-messagesOfficial docs
“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 - 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