Skip to main content

CJA Audit Log Monitor

CI PyPI Python License: MIT

Slideshow of the terminal app: the dashboard, the log browser, entry details, the live monitor, statistics, the alerts view and the keyboard shortcuts

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 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

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 / --verbose turns 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 PATH reads a config file other than ~/.cja-audit-log-monitor/config.yaml. You can also set the path with the CJA_CONFIG_PATH environment 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

Log Browser

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

Monitor

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

Statistics

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

Alerts

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

Config view

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. To report a security problem, see SECURITY.md.

License

MIT. See LICENSE.

Metadata

Release files for cja-audit-log-monitor 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cja-audit-log-monitor 0.1.0
File Size Uploaded Provenance Actions
cja_audit_log_monitor-0.1.0.tar.gz 207.9 kB With provenance Details for cja_audit_log_monitor-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cja-audit-log-monitor 0.1.0
File Interpreter ABI Platform Actions
cja_audit_log_monitor-0.1.0-py3-none-any.whl Python 3 none any Details for cja_audit_log_monitor-0.1.0-py3-none-any.whl

Total release size: 326.7 kB

Release files / cja_audit_log_monitor-0.1.0.tar.gz

Download URL cja_audit_log_monitor-0.1.0.tar.gz
Size 207.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2b091fd512f92365eeba5a36d9769341f4c06b4d0d0166c7c30547925b74cb5d
BLAKE2b-256 checksum
How to use checksums
e76f7b8f5a22d9c13d086e828e8450b66adc1ac50f4a6f8a67a4d631e1630020
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 19, 2026.

Transparency log

Release files / cja_audit_log_monitor-0.1.0-py3-none-any.whl

Download URL cja_audit_log_monitor-0.1.0-py3-none-any.whl
Size 118.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e101c46686bc8b741cf6c57bea093c066a3f94209e868a3fe591b51d6974288
BLAKE2b-256 checksum
How to use checksums
bd65883b7866ee28f10e6b3d892fa49e40976861156924ef36040888af10168a
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 19, 2026.

Transparency log

Security for cja-audit-log-monitor 0.1.0

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.

Select from 2 files

Attestation for cja_audit_log_monitor-0.1.0.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 19, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page