This repo fetches Atlan access events and builds an HTML report.
It uses the Atlan SDK as documented here: Retrieve access events.
- Python 3.9+
- An Atlan API Key with permissions to read admin events
- Create a virtual environment and install dependencies:
python3 -m venv .venv
./.venv/bin/pip install -r requirements.txt- Configure authentication and settings:
- Copy the example config to a local file and edit it:
cp config.example.yaml config.yaml
- Set
tenant.base_urlfor your Atlan tenant - Adjust the reporting window (
report.date_from,report.date_to) - Note:
config.yamlis intentionally in.gitignoreto avoid committing secrets
- Set
- Create a
.envfile withATLAN_API_KEY(recommended) and optionallyATLAN_BASE_URL.
Environment variables:
ATLAN_API_KEY– must be set (via.envor your environment)ATLAN_BASE_URL– optional; if not set, the app usestenant.base_urlfromconfig.yaml
./.venv/bin/python -m src.main --config config.yamlOutputs are written under output/ by default.
For filter options and details, see: Retrieve access events.
- Top users by admin events: bar chart of the top 20 users by event count
- Events by operation type: bar chart of counts per operation
- Top resource types: bar chart of the top 20 resource types
- Per-user operation breakdown: stacked bar for top 10 users, colored by operation
- Events over time (daily): line chart of events per day
- Heatmap by day and hour: density heatmap of events by weekday and hour
- Top resource path patterns: horizontal bar of top 20 paths (when available)
- Do not commit secrets.
config.yaml,.env, andoutput/are ignored by.gitignore. - If
config.yamlwas previously committed, remove it from version control history and rotate the API key.