Skip to main content

CJA Audit Log Monitor

CI Release PyPI Python 3.11+ Coverage Ruff uv Textual 7.3+ 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 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. The tool has no built-in scopes, so all four values are required.

You can also keep the credential in a profile, which the Customer Journey Analytics tools share. Profile prod is the file ~/.cja/orgs/prod/config.json, and you use it with --profile prod or CJA_PROFILE=prod. The tool takes all four values from one place and never mixes two places. See Where the credential comes from for the order.

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

Three 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. The file can be YAML or JSON. You can also set the path with the CJA_CONFIG_PATH environment variable. A path that you name in one of these two ways must exist.
  • --profile NAME uses the credential in the profile ~/.cja/orgs/NAME/config.json.

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

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.7
File Size Uploaded Provenance Actions
cja_audit_log_monitor-0.1.7.tar.gz 308.7 kB With provenance Details for cja_audit_log_monitor-0.1.7.tar.gz

Built distribution (wheel)

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

Total release size: 448.1 kB

Release files / cja_audit_log_monitor-0.1.7.tar.gz

Download URL cja_audit_log_monitor-0.1.7.tar.gz
Size 308.7 kB
Tags Source
SHA-256 checksum
How to use checksums
96fd13d6dd3f00ee69a7aea128acaf2feae69a4892bd6084e695e8185ed66ce8
BLAKE2b-256 checksum
How to use checksums
515d87b8d169e2f1153487bbba97eb07d24b3e55786e83cb414c97df8c61cb82
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 Dec 1, 2026.

Transparency log

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

Download URL cja_audit_log_monitor-0.1.7-py3-none-any.whl
Size 139.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f41777ddb7e8aaa140fddb693b992db4a79021bc0381a95233e37c76e651f7f
BLAKE2b-256 checksum
How to use checksums
27105179e00627d644c0bf265221a1ee243064ac08726bb350ac48692c61cc35
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 Dec 1, 2026.

Transparency log

Security for cja-audit-log-monitor 0.1.7

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.7.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 Dec 1, 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