Access History and Audit Logging in Snowflake
📖 Scenario: You are a data engineer working with Snowflake. Your manager wants you to track who accessed the data warehouse and what actions they performed. This helps keep the data safe and shows accountability.
🎯 Goal: You will create a query to view access history and audit logs in Snowflake. This will help you understand who accessed the system and what they did.
📋 What You'll Learn
Use the
SNOWFLAKE.ACCOUNT_USAGE.ACCESS_HISTORY view to get access recordsFilter records by a specific user
Select important columns like
USER_NAME, ACTION_NAME, and START_TIMEOrder the results by
START_TIME descending💡 Why This Matters
🌍 Real World
Access history and audit logging help companies track who accessed their data and what actions were taken. This is important for security and compliance.
💼 Career
Data engineers and security analysts often write queries like this to monitor data warehouse usage and investigate suspicious activity.
Progress0 / 4 steps