Session Log Analyzer
/install terrycarter-session-log-analyzer
Session Log Analyzer
Analyze JSONL session logs, produce PDF reports, and sync to Notion.
Workflow
- Analyze logs → Run
scripts/analyze_logs.pyagainst a.jsonllog file - Generate PDF → The script outputs a PDF report using
nano_pdf - Sync to Notion → Run
scripts/sync_to_notion.pyto push the report
Analyze Logs & Generate PDF
python scripts/analyze_logs.py /path/to/logs.jsonl /path/to/output_report.pdf
If args are omitted, defaults:
- Log file:
/workspace/session_logs/sample_logs.jsonl - Output:
/workspace/pdfs/session_analysis_report.pdf
Sync to Notion
Requires env vars: NOTION_API_KEY, NOTION_REPORTS_DB_ID
python scripts/sync_to_notion.py /path/to/report.pdf
Default PDF path: /workspace/pdfs/session_analysis_report.pdf
Scheduled Daily Reports
A cron-driven daily task can run at 02:00 to auto-analyze, generate PDF, and sync to Notion.
See tmux_scripts/daily-log-report.sh in the workspace root for the scheduled task script. It is loaded automatically when the dev tmux session starts.
Manual trigger
/root/.openclaw/workspace/tmux_scripts/daily-log-report.sh now
Configuration
| Variable | Description |
|---|---|
NOTION_API_KEY |
Notion integration token |
NOTION_REPORTS_DB_ID |
Notion database ID for reports |
SESSION_LOG_DIR |
Directory containing .jsonl log files (default: /workspace/session_logs) |
PDF_OUTPUT_DIR |
Directory for generated PDFs (default: /workspace/pdfs) |
Log Format
Expects JSONL with fields: event, session_id, timestamp, skill_used, success, duration, error (optional).
See references/log-schema.md for full schema details.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install terrycarter-session-log-analyzer - After installation, invoke the skill by name or use
/terrycarter-session-log-analyzer - Provide required inputs per the skill's parameter spec and get structured output
What is Session Log Analyzer?
Analyze agent session logs, generate PDF analysis reports, and sync them to Notion. Use when you need to (1) analyze session log files for usage statistics a... It is an AI Agent Skill for Claude Code / OpenClaw, with 31 downloads so far.
How do I install Session Log Analyzer?
Run "/install terrycarter-session-log-analyzer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Session Log Analyzer free?
Yes, Session Log Analyzer is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Session Log Analyzer support?
Session Log Analyzer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Session Log Analyzer?
It is built and maintained by terrycarter1985 (@terrycarter1985); the current version is v1.2.0.