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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install terrycarter-session-log-analyzer - 安装完成后,直接呼叫该 Skill 的名称或使用
/terrycarter-session-log-analyzer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 31 次。
如何安装 Session Log Analyzer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install terrycarter-session-log-analyzer」即可一键安装,无需额外配置。
Session Log Analyzer 是免费的吗?
是的,Session Log Analyzer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Session Log Analyzer 支持哪些平台?
Session Log Analyzer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Session Log Analyzer?
由 terrycarter1985(@terrycarter1985)开发并维护,当前版本 v1.2.0。