Package Manager Journaling
This page explains how to use the kxi pm journal command in kdb Insights Enterprise using the Command Line Interface (CLI) for observability purposes.
The kxi pm journal command provides administrators with a server-wide view of all successful events executed in the kdb Insights Enterprise Package Manager.
Usage
Unlike package-specific commands, the kxi pm journal command is designed as a server observability feature, enabling you to:
-
View historical records of executed actions in the Package Manager
-
Audit actions across all users and packages.
-
Support auditing, troubleshooting, and operational oversight
Important
The kxi pm journal command requires the Package Admin role.
Run the command as follows:
bash
kxi pm journal
Running the --help command displays all available options that you can use with the kxi pm journal command:
bash
kxi pm journal --help
console
Usage: kxi pm journal [OPTIONS]
Get the current journal history of the kdb+ Insights Enterprise Package Manager service.
╭─ Authentication option overrides ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --hostname,--url TEXT Insights URL │
│ --realm TEXT Realm │
│ --client-id TEXT Client id │
│ --client-secret TEXT Client secret │
│ --auth-enabled/--auth-disabled Retrieve Bearer Token │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --server-timeout INTEGER Timeout for Insights server calls │
│ --yes,--assume-yes -y Automatic yes to prompts; assume "yes" as answer to all prompts and run │
│ non-interactively. │
│ --output-format -o [json|table] Output format for the command. default: 'table'. │
│ --fields TEXT [default: timestamp, action, username, package, component_type, component, message, │
│ params] │
│ --action -a TEXT │
│ --package -p TEXT │
│ --username -u TEXT │
│ --component -c TEXT │
│ --limit -l INTEGER │
│ --offset INTEGER │
│ --from [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S] │
│ --to [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S] │
│ --help Show this message and exit. │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Example commands
-
Retrieve journal entries for a specific user:
bash
Copykxi pm journal --username alice -
Limit results to the last 10 entries in JSON format:
bash
Copykxi pm journal --limit 10 --output-format json -
Filter by time range:
bash
Copykxi pm journal --from 2025-01-01 --to 2025-01-31 -
Filter by action type (for example, install):
bash
Copykxi pm journal --action install