Tryout https://docs.oracle.com/en/learn/oci-audit-logs/#introduction in 2025-09-09
# Text search and replace COMPARTMENT_ID with your compartment-id
# Your oci-cli must be fully configured to run this python script!
# e.g. test getting a sample audit log on a specific day (page 0):
oci logging-search search-logs --search-query 'search "COMPARTMENT_ID/_Audit" | sort by datetime desc' --time-start 2025-08-01"T00:00:00Z" --time-end 2025-08-01"T23:59:00Z"
# Install https://github.com/astral-sh/uv