一、前期準備
(1)WinRM3.0以下版本占用80(HTTP)和443(HTTPS)端口,建議更新到WMF3.0版本以上;
(2)WinRM3.0以上版本占用5985(HTTP)和5986(HTTPS)端口;
(3)WinRM3.0系統需求:
A.Framework 4.0
B.Windows Server 2008 SP2或者Windows Server 2008 R2 SP1
(4)官方下載下傳位址:
(5)日志收集原理圖:
<a href="http://281816327.blog.51cto.com/attachment/201404/14/907015_1397446745LkT1.png" target="_blank"></a>
二、日志源伺服器設定步驟:
1.将目标伺服器的電腦賬戶添加到本地管理者組;
2.在powershell中運作“enable-psremoting”,
<a href="http://281816327.blog.51cto.com/attachment/201404/14/907015_1397446748FUNC.png" target="_blank"></a>
3.在powershell中運作“set-item wsman:\localhost\serivce\enablecompatibilityhttplistener false”,停用監聽80端口;
三、日志收集伺服器設定步驟:
1.在指令行中輸入“wecutil qc”,啟用日志收集服務;
2.在日志訂閱中建立一個訂閱;輸入訂閱的名字,選擇收集到的日志存放的位置;
<a href="http://281816327.blog.51cto.com/attachment/201404/14/907015_1397446749bxNU.png" target="_blank"></a>
3.添加日志源伺服器;
<a href="http://281816327.blog.51cto.com/attachment/201404/14/907015_1397446750Tr8t.png" target="_blank"></a>
4.選擇收集日志的類型;
<a href="http://281816327.blog.51cto.com/attachment/201404/14/907015_1397446751emQg.png" target="_blank"></a>
5.在“Advanced”中設定收集的協定和端口;
<a href="http://281816327.blog.51cto.com/attachment/201404/14/907015_1397446752zJ6P.png" target="_blank"></a>
6.如果沒有錯誤,收集的日志将在“Forward Events”中出現;
<a href="http://281816327.blog.51cto.com/attachment/201404/14/907015_1397446756hh5C.png" target="_blank"></a>
本文轉自 bannerpei 51CTO部落格,原文連結:http://blog.51cto.com/281816327/1395172,如需轉載請自行聯系原作者