參考網站:https://www.secpulse.com/archives/55636.html
https://blog.csdn.net/qq_38094271/article/details/80195599 ()
https://mp.weixin.qq.com/s/vekp5-tWPNe0DJyA92zhfg
https://blog.csdn.net/vip100549/article/details/79592409 (關閉powershell安全防護進行安裝,否則會報錯) PS C:\Program Files\Winlogbeat> set-executionpolicy remotesigned
打開windowsPowerShell進行安裝,
1、下載軟件 winlogbeat: https://artifacts.elastic.co/downloads/beats/winlogbeat/winlogbeat-6.2.4-windows-x86_64.zip
2、修改里面的內容,其余的全部注釋掉,下面的IP為elasticsearch的服務器地址。
winlogbeat.event_logs:
- name: Application
ignore_older: 72h
- name: Security
- name: System
output.logstash:
# The Logstash hosts
hosts: ["192.11.33.18:5044"]
3、然后運行安裝命令,

4、然后再打開elasticsearch的ip服務地址,192.11.33.18:5044,進行查看,就可看到windows的日志。
