Synopsis
Description
The journal is an append-only log of all ChameleonDB operations. It provides:- Complete audit trail - Every operation is logged
- Daily rotation - Stored in
.chameleon/journal/with date-based files - Never deleted - Append-only, immutable history
- Multiple formats - Table or JSON output
- Audit database changes
- Debug migration issues
- Track schema evolution
- Monitor operation performance
Subcommands
journal last- Show last N operationsjournal errors- Show error operationsjournal migrations- Show migration historyjournal schema- Show schema version history (vault)
Global Flags
string
default:"table"
Output format:
table or jsonjournal last
Show the most recent journal entries.Synopsis
Arguments
number
default:"10"
Number of entries to show
Flags
number
default:"10"
Number of entries to show (alternative to positional arg)
Examples
Last 10 Entries (Default)
Last 20 Entries
JSON Format
journal errors
Show error operations from today’s journal.Synopsis
Examples
No Errors
Errors Found
JSON Format
journal migrations
Show migration history from the journal.Synopsis
Examples
Migration History
No Migrations Yet
JSON Format
journal schema
View schema version history from the Schema Vault.Synopsis
Arguments
string
Specific version to view details for (e.g., v001, v002)If omitted, shows all versions.
Examples
All Versions
Specific Version
No Vault Found
Version Not Found
Journal File Structure
Location
Format
Each log entry is JSON:Daily Rotation
- New file created daily
- Old files never deleted (append-only)
- Date format:
YYYY-MM-DD.log
Common Use Cases
Debug Failed Migration
Audit Schema Changes
Monitor Performance
Track User Activity
Integration Examples
Export to CSV
Alert on Errors
Daily Report
Troubleshooting
No Journal Entries
Cannot Read Journal
Journal File Corrupted
If a journal file is corrupted (invalid JSON), the command may fail. Recovery:-
Identify corrupted file:
-
Move to backup:
-
Create empty file:
See Also
chameleon verify- Verify vault integritychameleon status- Quick status overviewchameleon migrate- Apply migrations (logged to journal)- Schema Vault - Learn about version tracking
- Audit Logging - Journal design and guarantees