Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows 7 自訂系統事件記錄檔儲存路徑:修改登錄檔集中管理 Log 檔案

編輯:Win7 系統應用技巧

Windows 事件記錄檔預設分散在 %SystemRoot%\System32\winevt\Logs,管理不便。透過修改登錄檔,可將系統、應用程式、安全性等記錄檔集中儲存至指定資料夾,方便備份與分析。

修改登錄檔機碼

  1. 開啟 regedit。
  2. 系統記錄: 定位 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\System,雙擊右側 File 值,將預設路徑改為新路徑 (如 D:\Logs\System.evtx)。
  3. 應用程式記錄: 定位 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application,同樣修改 File 值。
  4. 安全性記錄: 定位 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Security 修改。
  5. 重新開機或重新啟動「Windows Event Log」服務生效。

修改事件記錄檔路徑登錄檔示意

集中儲存記錄檔利於網管人員定期備份、稽核與異常分析。修改前請確認目標資料夾存在且系統有寫入權限,避免服務啟動失敗導致記錄遺失。

Copyright © Windows教程網 All Rights Reserved