Hello all,
在R80.10的SmartConsole中可以把Log匯出成Excel CSV的格式,但是如果透過SmartConsole匯出時,只會匯出目前顯示的筆數:
![Log_export_SmartConsole-2.jpg Log_export_SmartConsole-2.jpg](https://community.checkpoint.com/t5/image/serverpage/image-id/556iF44CA516560D1023/image-size/large?v=v2&px=999)
例如上圖所看到的範例:總數有466筆,預覽時先顯示50筆,如果此時使用SmartConsole右方的「Export to Excel CSV」功能,只會匯出預覽時的50筆數:
![Log_export_SmartConsole-3.jpg Log_export_SmartConsole-3.jpg](https://community.checkpoint.com/t5/image/serverpage/image-id/557i413F2BCC795F4846/image-size/large?v=v2&px=999)
相信大家都遇過這一個問題;如果要把這些筆數全數匯出,許多人會選擇把所有的Log先全部預覽之後再匯出。
But!! 透過 R80.10的SmartView就可以解決這一個問題:
SmartView是R80.10之後的新報表功能,可以透過2個方式開啟:
從SmartConsole:在SmartConsole >> Logs & Monitor 頁籤 >> 開啟一個新分頁 >> 左下方External App選擇「SmartView」
![SmartView.jpg SmartView.jpg](https://community.checkpoint.com/t5/image/serverpage/image-id/561iAD37759EAC0C3D9A/image-size/large?v=v2&px=999)
從瀏覽器:開啟瀏覽器之後直接連線到 「https://管理主機SMS的IP/smartview」。
是的,你沒看錯,透過SmartView可以直接使用瀏覽器來瀏覽Log或是報表,不需要再透過SmartConsole。
出現登入畫面之後,使用跟SmartConsole相同的帳號進行登入即可。
![SmartView-2.jpg SmartView-2.jpg](https://community.checkpoint.com/t5/image/serverpage/image-id/560iA6E3BBD93361B5DB/image-size/large?v=v2&px=999)
登入之後就可以看到SmartView的畫面,操作方法及畫面跟SmartConsole幾乎是完全相同:
![SmartView-3.jpg SmartView-3.jpg](https://community.checkpoint.com/t5/image/serverpage/image-id/562i3D16EFBA93934FA6/image-size/large?v=v2&px=999)
回到我們剛剛Log Export的問題,在SmartView中開啟新分頁 >> 選擇 Log view >> 輸入相同的搜尋條件,
在下圖的範例中可以看到Logs顯示筆數一樣是466筆,此時使用右邊SmartView的匯出功能:
![SmartView-4.jpg SmartView-4.jpg](https://community.checkpoint.com/t5/image/serverpage/image-id/563i455A22C0B96E0C88/image-size/large?v=v2&px=999)
目前一次支援的最多筆數是100萬筆 (1M),選擇完成之後按下「OK」開始匯出:
![SmartView-5.jpg SmartView-5.jpg](https://community.checkpoint.com/t5/image/serverpage/image-id/564iD1442980ACECDFC8/image-size/large?v=v2&px=999)
開始匯出時右下角會出現「Export started」圖示:
![SmartView-6.jpg SmartView-6.jpg](https://community.checkpoint.com/t5/image/serverpage/image-id/565i6E184BCB11C349DD/image-size/large?v=v2&px=999)
完成之後右下角會出現「Export Completed Successfully」並且還有「Download」連結:
![SmartView-7.jpg SmartView-7.jpg](https://community.checkpoint.com/t5/image/serverpage/image-id/566i916DD6B8E5474453/image-size/large?v=v2&px=999)
下載完成之後打開檔案就可以看到所有的Log檔案都已經匯出了:
![SmartView-8.jpg SmartView-8.jpg](https://community.checkpoint.com/t5/image/serverpage/image-id/567iD7D83C4670DEBDCA/image-size/large?v=v2&px=999)
以上內容就是這一次的分享,也歡迎大家在CheckMate多多留言討論。
P.S.:不好意思,因為最近事情比較多,技術分享中斷了一陣子,之後我會再不定期分享一些Check Point的實用資訊或是S.O.P給大家參考看看。
或是如果大家對於某些議題特別有需要的,也可以留言或是私訊給我,我會再另外發文章跟大家分享。
Best regards,
Sung-Lun Yang