Install
openclaw skills install terrycarter-session-log-analyzerView and analyze session logs, generate PDF reports, and sync to Notion. Supports daily automated reporting via cron.
openclaw skills install terrycarter-session-log-analyzerAnalyze agent session logs, generate PDF reports, and sync them to Notion — manually or on a daily schedule.
nano-pdfcd scripts && python3 analyze_logs.py
export NOTION_API_KEY="your-key"
export NOTION_REPORTS_DB_ID="your-db-id"
cd scripts && python3 sync_to_notion.py
The daily report pipeline is managed by tmux_scripts/daily-log-report.sh. It:
analyze_logs.py to generate a dated PDF reportsync_to_notion.pyTo set up the cron schedule inside your tmux session:
# Add to crontab (runs at 2:00 AM daily)
(crontab -l 2>/dev/null; echo "0 2 * * * /root/.openclaw/workspace/tmux_scripts/daily-log-report.sh >> /root/.openclaw/workspace/pdfs/daily_report.log 2>&1") | crontab -
Or simply start the dev tmux session — the cron job is registered automatically:
./tmux_scripts/start_dev_session.sh
| Variable | Required | Description |
|---|---|---|
NOTION_API_KEY | Yes (for Notion sync) | Notion integration API key |
NOTION_REPORTS_DB_ID | Yes (for Notion sync) | Notion database ID for reports |
scripts/analyze_logs.py — Log analysis & PDF generation
scripts/sync_to_notion.py — Notion sync logic
tmux_scripts/daily-log-report.sh — Daily cron pipeline script
session_logs/ — Raw JSONL session log files
pdfs/ — Generated PDF reports