{
 "journalctl 與 syslog 基礎#1": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   2,
   2
  ],
  "cards": [
   {
    "title": "systemd journal",
    "points": [
     "二進位結構化格式",
     "用 journalctl 查詢"
    ]
   },
   {
    "title": "rsyslog 純文字檔",
    "points": [
     "放在日誌目錄",
     "不一定有預設安裝"
    ]
   }
  ]
 },
 "journalctl 與 syslog 基礎#5": {
  "type": "table",
  "head": [
   "指令",
   "用途"
  ],
  "rows": [
   [
    "journalctl -u nginx.service --since \"1 hour ago\"",
    "某服務最近一小時"
   ],
   [
    "journalctl -p err -n 100",
    "最近 100 筆 err 以上"
   ],
   [
    "journalctl -k",
    "只看核心訊息"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "widths": [
   3,
   2
  ]
 },
 "journalctl 與 syslog 基礎#6": {
  "type": "table",
  "head": [
   "指令",
   "用途"
  ],
  "rows": [
   [
    "journalctl -b -1 -p err",
    "上一次開機的錯誤"
   ],
   [
    "journalctl -o json -n 1",
    "一行一筆 JSON"
   ],
   [
    "journalctl --disk-usage",
    "日誌佔用空間"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "widths": [
   3,
   2
  ]
 },
 "日誌的敏感資料與提示注入#1": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "含敏感資料",
    "points": [
     "密碼、API token",
     "電子郵件、內網 IP"
    ]
   },
   {
    "title": "內容可被攻擊者控制",
    "points": [
     "User-Agent、網址",
     "SSH 使用者名稱"
    ]
   },
   {
    "title": "分析階段不給工具",
    "points": [
     "模型被誘導也無法行動"
    ]
   }
  ]
 },
 "日誌的敏感資料與提示注入#2": {
  "type": "table",
  "head": [
   "防護",
   "做法"
  ],
  "rows": [
   [
    "寫入類工具",
    "永遠需人工確認"
   ],
   [
    "模型建議",
    "不自動執行"
   ],
   [
    "隨機邊界字串",
    "包住不可信內容"
   ],
   [
    "長度與數量",
    "每行最多 300 字"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ]
 },
 "日誌的敏感資料與提示注入#3": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   0,
   0,
   0,
   3
  ],
  "nodes": [
   {
    "label": "清除控制字元",
    "color": 0
   },
   {
    "label": "遮罩機密",
    "color": 1
   },
   {
    "label": "最後才截斷",
    "color": 2,
    "kind": "end"
   }
  ]
 },
 "日誌的敏感資料與提示注入#5": {
  "type": "flow",
  "layout": "snake",
  "reveal": [
   0,
   4,
   4
  ],
  "nodes": [
   {
    "label": "SSH 登入嘗試",
    "sub": "使用者名稱是指令",
    "color": 0
   },
   {
    "label": "寫入日誌",
    "color": 1
   },
   {
    "label": "送進 LLM",
    "color": 2
   },
   {
    "label": "誘導重啟 nginx",
    "color": 3,
    "kind": "end"
   }
  ]
 },
 "日誌的敏感資料與提示注入#7": {
  "type": "cards",
  "reveal": [
   0,
   1,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "機密樣式清單",
    "points": [
     "私鑰、JWT、AWS 金鑰",
     "Bearer、電子郵件、長 token"
    ]
   },
   {
    "title": "關鍵字配值",
    "points": [
     "password、secret、token",
     "保留關鍵字,換掉值"
    ]
   },
   {
    "title": "遮罩器類別",
    "points": [
     "同一 IP 對應同一代號"
    ]
   }
  ]
 },
 "日誌查詢與彙總工具#4": {
  "type": "bar",
  "labels": [
   "emerg",
   "alert",
   "crit",
   "err",
   "warning",
   "notice",
   "info",
   "debug"
  ],
  "values": [
   0,
   1,
   2,
   3,
   4,
   5,
   6,
   7
  ],
  "unit": "",
  "reveal": [
   0,
   0,
   8
  ],
  "highlight": 3
 },
 "日誌查詢與彙總工具#6": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   2,
   4
  ],
  "nodes": [
   {
    "label": "套用正規化規則",
    "sub": "UUID、IP、數字",
    "color": 0
   },
   {
    "label": "換成固定代號",
    "color": 1
   },
   {
    "label": "保留前 200 字",
    "color": 2
   },
   {
    "label": "歸為同一型態",
    "color": 3,
    "kind": "end"
   }
  ]
 },
 "日誌查詢與彙總工具#7": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   2
  ],
  "cards": [
   {
    "title": "彙總回傳",
    "points": [
     "總筆數與各優先級數量",
     "最常出現的服務",
     "型態次數與遮罩範例"
    ]
   },
   {
    "title": "工具參數",
    "points": [
     "分鐘數",
     "優先級",
     "服務單元"
    ]
   }
  ]
 },
 "用 LLM 分析日誌並產出報告#1": {
  "type": "flow",
  "layout": "snake",
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ],
  "nodes": [
   {
    "label": "查詢 journal",
    "sub": "唯讀、限範圍",
    "color": 0
   },
   {
    "label": "解析、正規化、統計",
    "sub": "Python 完成",
    "color": 1
   },
   {
    "label": "清理與遮罩",
    "color": 2
   },
   {
    "label": "隨機邊界送 LLM",
    "sub": "不帶任何工具",
    "color": 3
   },
   {
    "label": "檢查輸出給人看",
    "sub": "建議由人決定",
    "color": 4,
    "kind": "end"
   }
  ]
 },
 "用 LLM 分析日誌並產出報告#2": {
  "type": "table",
  "head": [
   "報告部分",
   "內容"
  ],
  "rows": [
   [
    "1 摘要",
    "兩到三句話"
   ],
   [
    "2 主要問題",
    "依嚴重度,附樣式編號與次數"
   ],
   [
    "3 可能的原因",
    "標示把握度高、中、低"
   ],
   [
    "4 建議的下一步",
    "人工檢查,不自動執行"
   ],
   [
    "5 資訊不足",
    "老實說出來"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ]
 },
 "用 LLM 分析日誌並產出報告#3": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "cards": [
   {
    "title": "引用樣式編號",
    "points": [
     "程式檢查編號存在"
    ]
   },
   {
    "title": "數字取自工具",
    "points": [
     "不信模型重算"
    ]
   },
   {
    "title": "固定註記",
    "points": [
     "AI 產生,建議人員複核"
    ]
   },
   {
    "title": "日誌量大",
    "points": [
     "調整時間範圍或服務單元"
    ]
   }
  ]
 }
}