CJA Audit Log Monitor
A 28-second loop of the real app, made from synthetic data. Click the animation for a still image.
A terminal app for monitoring and analyzing Adobe Customer Journey Analytics (CJA) audit logs. You can browse and filter the logs, watch new events arrive, see charts of activity, and get alerts about suspicious patterns. A CLI is included for scripts and automation.
This is an unofficial, community project. It is not affiliated with, endorsed by, or supported by Adobe. Adobe and Customer Journey Analytics are trademarks of Adobe Inc.
Features
- Keyboard navigation. Each view has a single key, and
?shows them all. - Real-time monitor. New audit events appear as they happen, at a polling interval you choose.
- Filtering. You can filter by user, action type, component type, and text in the description.
- Charts. You can see action counts, activity by hour, and activity by day.
- Alerts and anomalies. Rules detect bulk deletes, bulk exports and bulk shares. Separate anomaly checks find unusual activity between midnight and 5am. You can send alerts to Slack or to a webhook.
- Export. You can save filtered logs as JSON, CSV, or TSV, either the page you see or every matching entry.
Install
You need Python 3.11 or newer. Install the tool with uv or pipx:
uv tool install cja-audit-log-monitor
# or
pipx install cja-audit-log-monitor
Set up credentials
The tool uses an Adobe OAuth Server-to-Server credential from the Adobe Developer Console. See docs/configuration.md for the full steps.
Set these four environment variables, or put them in a .env file in the folder where you run the tool:
ORG_ID=YOUR_ORG_ID@AdobeOrg
CLIENT_ID=your_client_id
SECRET=your_client_secret
SCOPES=your_scopes_from_developer_console
Copy SCOPES exactly as the credential page in the Developer Console shows it, after you have added both the CJA and Experience Platform APIs.
Then check that the connection works:
cja-audit-log-monitor cli verify
Run it
# Open the TUI
cja-audit-log-monitor
# The same, by name
cja-audit-log-monitor tui
# Or use the CLI, e.g. watch for anomalies and send them to Slack.
# Delivery is off by default. Set notify_on_anomalies: true to turn it on.
cja-audit-log-monitor cli anomalies --watch
# Print the version
cja-audit-log-monitor --version
Two options work with the TUI and with every CLI command. Put them before cli or tui:
-v/--verboseturns on debug logging to stderr. It affects the CLI only. The TUI has no log file, and it shows logged warnings as toasts.-c/--config PATHreads a config file other than~/.cja-audit-log-monitor/config.yaml. You can also set the path with theCJA_CONFIG_PATHenvironment variable.
CLI commands write data to stdout and messages to stderr. Most of them accept -F json. See the CLI reference for every command and flag.
Run from source
git clone https://github.com/brian-a-au/cja-audit-log-monitor
cd cja-audit-log-monitor
uv sync --all-extras
cp .env.example .env # then add your credentials
uv run cja-audit-log-monitor
The TUI
The TUI is built with Textual. Each view has its own key, and you can switch views at any time. The layout fits terminals from 80x24 up to wide screens.
Dashboard (press d)
The dashboard sums up recent activity. It shows the total number of entries, the dates of the window, a chart of actions, the top users and recent anomalies. Read more
Log Browser (press l)
The log browser shows audit entries in a table. You can filter them by user, action, component and description text, and page through the results. Press Enter on a row to see every field of the entry. Read more
Real-Time Monitor (press m)
The monitor shows new audit events as they arrive. You choose how often it checks, and it shows an alert when a rule fires. Read more
Statistics (press s)
The statistics view shows charts of actions, activity by hour and by day, and a ranking of users, for the number of days you choose. Read more
Alerts (press a)
The alerts view lets you turn rules on and off and test them against recent data. These changes last until you quit. Read more
Config (press c)
The config view shows the connection status and the settings in use. You can test the connection and load the settings again. Read more
Keyboard shortcuts
| Key | Action |
|---|---|
d |
Go to the dashboard |
l |
Go to the log browser |
m |
Go to the monitor |
s |
Go to statistics |
a |
Go to the alerts view |
c |
Go to the config view |
/ |
Go to the search box |
Tab |
Move to the next control |
r |
Refresh the current view |
e |
Open the export dialog |
n / p |
Next or previous page (in the log browser). The footer does not list these keys, but they still work. |
Enter |
Show entry details (in the log browser) |
Space |
Start or stop the monitor (in the monitor) |
? |
Show the keyboard shortcuts |
Esc |
Close a dialog or the detail panel, or leave a filter box or the stats days box |
q |
Quit. This also works while the help overlay is open. |
Documentation
Setup, scripting, and reference material live under docs/:
| Topic | Page |
|---|---|
| Configure Adobe OAuth credentials and verify | docs/configuration.md |
| OAuth errors, setup checklist, security notes | docs/troubleshooting.md |
Full CLI command reference (cja-audit-log-monitor cli ...) |
docs/cli.md |
| How to write and tune alert rules | docs/alert-rules.md |
| Action types, component types, upstream API | docs/reference.md |
| Tests, lint, project layout | docs/development.md |
| Per-screen TUI guides | docs/screens/ |
Contributing
Bug reports and pull requests are welcome. See CONTRIBUTING.md. Everyone who takes part follows the code of conduct. To report a security problem, see SECURITY.md.
License
MIT. See LICENSE.
Metadata
Release files for cja-audit-log-monitor 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cja_audit_log_monitor-0.1.4.tar.gz | 256.4 kB | With provenance | Details for cja_audit_log_monitor-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cja_audit_log_monitor-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for cja_audit_log_monitor-0.1.4-py3-none-any.whl |
Total release size: 381.4 kB
Release files / cja_audit_log_monitor-0.1.4.tar.gz
| Download URL | cja_audit_log_monitor-0.1.4.tar.gz |
|---|---|
| Size | 256.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec9f0e26a03098331fe6d535b080dbe6c77589b4db2e218ab3cb79bf7fb775a9
|
|
BLAKE2b-256 checksum How to use checksums |
f63379a726bf80a9af81c09a273749cd33ad121dc8a12ade7cda5e4fcb609c6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / cja_audit_log_monitor-0.1.4-py3-none-any.whl
| Download URL | cja_audit_log_monitor-0.1.4-py3-none-any.whl |
|---|---|
| Size | 125.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0cdfbf07b59949e55ea9bd6d9b255ceeed312a355a7178c630e8edfe73d84fc8
|
|
BLAKE2b-256 checksum How to use checksums |
08f34f15ee7f13f9ebbdcfe453ac18799adcbf41a553574893c64fda7b0366b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for cja-audit-log-monitor 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for cja_audit_log_monitor-0.1.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.