winlogbeat采集windows日志

下载链接

https://www.elastic.co/cn/downloads/past-releases/winlogbeat-7-16-2

配置文件

bash 复制代码
# ---------------------------- Elasticsearch Output ----------------------------
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["192.168.227.160:9200"]

  # Protocol - either `http` (default) or `https`.
  #protocol: "https"

  # Authentication credentials - either API key or username/password.
  #api_key: "id:api_key"
  #username: "elastic"
  #password: "changeme"

启动服务

初始化、装载模板到kibana

在主机上以管理员身份打开 PowerShell 窗口。 我们想要将必要的 Winlogbeat 模板上载到 Elastic 栈中,以进行正确的解析。

在此窗口中,导航到Winlogbeat 文件夹并运行以下命令:

bash 复制代码
# 切换到下载目录
d:
cd D:\dba_tools\software\winlogbeat-7.5.1-windows-x86_64
.\winlogbeat.exe setup -e 

这个会测试与es、与kibana的连通性与配置是否成功,仔细查看相关信息有没有 error 等字样

正式启动
bash 复制代码
.\winlogbeat.exe -e -c winlogbeat.yml
服务后台启动
bash 复制代码
C:\软件安装包\winlogbeat-7.16.2-windows-x86_64>.\install-service-winlogbeat.ps1
bash 复制代码
C:\软件安装包\winlogbeat-7.16.2-windows-x86_64>net start winlogbeat
winlogbeat 服务正在启动 .
winlogbeat 服务已经启动成功。
相关推荐
alphaTao1 天前
LeetCode 每日一题 2025/11/3-2025/11/9
windows·leetcode
习惯就好zz1 天前
WSL2 安装Ubuntu卡在安装进度0%无响应问题解决
linux·windows·ubuntu·wsl·wsl2
仰望—星空2 天前
MiniEngine学习笔记 : CommandListManager
c++·windows·笔记·学习·cg·direct3d
ue星空2 天前
Windows内核函数使用
windows
业余幻想家2 天前
Windows10/Windows11家庭版系统关闭自动更新
运维·windows
阿猿收手吧!2 天前
windows本机vscode通过ssh免密登录远程linux服务器 && git push/pull 免密
服务器·windows·vscode
zxm85132 天前
如何在Windows系统中加入程序自启动
windows
~~李木子~~2 天前
Windows软件自动扫描与分类工具 - 技术文档
windows·分类·数据挖掘
-指短琴长-2 天前
Qt的下载和安装【Windows】
开发语言·windows·qt
不懂音乐的欣赏者2 天前
Windows 下 ROS/ROS2 开发环境最优解:WSL 比直接安装、虚拟机、双系统更优雅!
linux·windows·ubuntu·ros·wsl·ros2·双系统