목적(Objective)
- 사내 ip 대역 이외에 snowflake 로그인하여 접근하는 외부 사용자가 있는 지 조회해보기 위함
조회 쿼리문(Query)
- ip 가 0.0.0.0 인 경우 password 로그인 방법 외에 다른 방법으로 로그인 한 경우
select max(convert_timezone('Asia/Seoul',event_timestamp)) recently_login_time_kst, user_name, event_type, client_ip, first_authentication_factor from snowflake.account_usage.login_history where convert_timezone('Asia/Seoul',event_timestamp) >'2023-07-01' -- 원하는 날짜 범위 입력 group by user_name,event_type,client_ip,first_authentication_factor order by 1 desc ;
'데이터베이스 > snowflake' 카테고리의 다른 글
[snowflake] 현재 날짜 및 시간을 반환하는 함수 (0) | 2025.01.10 |
---|---|
[snowflake] snowflake DashBoard 사용법 (0) | 2024.07.23 |
[snowflake] send to email in snowflake, snowflake CALL SYSTEM$SEND_EMAIL (0) | 2024.07.23 |
[snowflake] 비용(크레딧) 소모 3가지 유형 (1) | 2024.02.13 |