Created on 05-19-202012:22 PM - edited on 09-02-202003:59 PM by cjervis
CML provides some nice high-level session, model, and experiment auditing. But sometimes a situation arises where you would like audit logs at the level of file modification and user logins. This article provides a quick walkthrough of accessing the underlying RDBMS for this information. This page gives details on the tables and information available. This guide presupposes you are using AWS.
Click on the Options icon (three vertical dots) for your workspace and select the Manage Remote Access option:
Paste your ARN and click Grant Access.
Click Download Kubeconfig:
Step 4 - Query the Audit Database
Note: the --kubeconfig file should be the KubeConfig you downloaded in the previous step
#List the tables in the database - interactive shell for db-0 pod in mlx namespace -> execute the psql command with user "sense"
kubectl --kubeconfig ~/Downloads/perro-small-workspace-kubeconfig.yaml exec -it db-0 -n mlx -- psql -P pager=off -U sense -c "\l”
#Show the last 10 user events
kubectl --kubeconfig ~/Downloads/perro-small-workspace-kubeconfig.yaml exec -it db-0 -n mlx -- psql -P pager=off -U sense -c "SELECT id, user_id, event_name, description, created_at FROM user_events order by created_at desc limit 10;”