LOCAL schema

Some Snowflake features use the LOCAL schema of the SNOWFLAKE database to store telemetry data for logging and results analysis. The tables, views, and functions available in the LOCAL schema depend on which features you use in an account. Visibility of available objects in the LOCAL schema are access-controlled.

For the full reference on AI_OBSERVABILITY_EVENTS, see AI_OBSERVABILITY_EVENTS table.

LOCAL tables

All tables in the LOCAL schema use the event table structure.

The LOCAL schema provides the following tables:

TableAssociated Snowflake featureNotes
AI_OBSERVABILITY_EVENTSAI ObservabilityRaw event data for AI Observability. Query through SNOWFLAKE.LOCAL table functions scoped to each object; see AI_OBSERVABILITY_EVENTS table. Application roles on the table itself are for limited admin use only.
CORTEX_ANALYST_REQUESTS_RAWCortex AnalystRaw event data for Cortex Analyst. For information about querying this table, see Querying logs with SQL.
DATA_QUALITY_MONITORING_LOGS_RAWData QualityRaw event data for Data Quality log events emitted by DMFs that produce per-event detail in addition to their aggregate result. For the simplified projection, see the DATA_QUALITY_MONITORING_LOGS view.
DATA_QUALITY_MONITORING_RESULTS_RAWData QualityRaw event data for Data Quality. For information about querying this table, see Query the DATA_QUALITY_MONITORING_RESULTS_RAW table.

Note

Data stored in LOCAL tables incurs Snowflake storage charges. For information about storage costs, see Understanding storage cost.

LOCAL views

The LOCAL schema provides the following views:

ViewAssociated Snowflake featureNotes
CORTEX_ANALYST_REQUESTS_VCortex AnalystFor information about querying this view, see Querying logs with SQL.
DATA_QUALITY_MONITORING_RESULTSData QualityFor information about querying this view, see Query the DATA_QUALITY_MONITORING_RESULTS view.
DATA_QUALITY_MONITORING_ANOMALY_DETECTION_STATUSData quality anomaly detection
AUTOMATIC_DATA_QUALITY_MONITORING_RESULTSData quality anomaly detectionResults of automatic data quality monitoring: one row per table, metric, and evaluation date, with the observed value, forecast, expected range, and anomaly verdict.
DATA_QUALITY_MONITORING_EXPECTATION_STATUSData quality expectations
DATA_QUALITY_MONITORING_LOGSData QualitySimplified projection of DATA_QUALITY_MONITORING_LOGS_RAW with per-event log detail from DMFs that emit structured log events.

LOCAL functions

The LOCAL schema provides the following functions:

FunctionAssociated Snowflake featureNotes
CORTEX_ANALYST_REQUESTSCortex AnalystFor information about how to call this function, see Querying logs with SQL.
DATA_QUALITY_MONITORING_RESULTSData QualityFor information about how to call this function, see Call the DATA_QUALITY_MONITORING_RESULTS function.
GET_AI_EVALUATION_DATACortex Agent evaluations
GET_AI_OBSERVABILITY_EVENTSAI Observability , Cortex Agents , Cortex SearchReturns observability event rows for a Cortex Agent (CORTEX AGENT), External Agent (EXTERNAL AGENT), or Cortex Search service (CORTEX SEARCH SERVICE). For usage, see GET_AI_OBSERVABILITY_EVENTS (SNOWFLAKE.LOCAL), Monitor Cortex Agent requests, Monitor Cortex Search requests, and AI_OBSERVABILITY_EVENTS table.
GET_AI_OBSERVABILITY_LOGSCortex Agent evaluations
GET_AI_RECORD_TRACECortex Agent evaluations