Costs of LoggingΒΆ

When you log messages from a function or procedure, Snowflake collects the messages in batches and ingests the batches into the event table.

To perform this work, Snowflake uses Snowflake-managed resources, also referred to as the serverless compute model. As is the case with other serverless features, Snowflake bills your account for the compute resource and cloud services usage needed to ingest the logged messages. These costs appear on your bill as separate line items.

To determine the credit usage for logging over time, use the EVENT_USAGE_HISTORY View.

To reduce the cost of logging:

  • Avoid logging frequently over a long period of time.

  • Set the level of messages ingested on specific objects. For example, set the log level for specific functions or procedures in a session, rather than setting the log level for all functions or procedures.