当前位置: 首页 > article >正文

winlogbeat采集windows日志

下载链接

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

配置文件

在这里插入图片描述

# ---------------------------- 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 文件夹并运行以下命令:

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

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

正式启动
.\winlogbeat.exe -e -c winlogbeat.yml
服务后台启动
C:\软件安装包\winlogbeat-7.16.2-windows-x86_64>.\install-service-winlogbeat.ps1
C:\软件安装包\winlogbeat-7.16.2-windows-x86_64>net start winlogbeat
winlogbeat 服务正在启动 .
winlogbeat 服务已经启动成功。

http://www.kler.cn/a/144978.html

相关文章:

  • 面试:ShardingSphere问题
  • Gin 学习笔记03-参数绑定
  • 浅析基于物联网的远程抄表系统的设计及应用
  • django(千锋教育)
  • 【一文讲清楚 Anaconda 相关环境配置】
  • inBuilder低代码平台新特性推荐-第十期
  • 华大基因基因检测产品发布,助力早发冠心病风险评估
  • 实用高效 无人机光伏巡检系统助力电站可持续发展
  • AlDente Pro v1.22.2(mac电池最大充电限制工具)
  • Rust10 Building a Multithreaded Web Server [End]
  • 【UnLua】在 Lua 中定义 UE 反射类型
  • 杰发科技AC7801——ADC软件触发的简单使用
  • 黑马点评-Feed流的实现方案,基于推拉结合模式实现笔记推送
  • 前端入门(三)Vue生命周期、组件技术、脚手架、存储、事件总线、
  • 计算机网络常考计算题之循环冗余校验(宝典教学)
  • 30系列显卡在ubuntu下不能满血运行的问题
  • 微信小程序实现【点击 滑动 评分 评星(5星)】功能
  • 2 时间序列预测入门:GRU
  • Scrapy爬虫异步框架(一篇文章齐全)
  • leetcode设计循环队列(链表方式来实现)