filebeat多版本for Windows7

简介:
Filebeat是一个开源的文件收集器,主要用于获取日志文件,并把它们发送到logstash或elasticsearch。filebeat不仅支持各版本的Linux系统(centos5.6除外),在Windows操作系统上也有很好的体验。
安装:
运行以下命令来安装Filebeat作为Windows服务,进入cmd控制台
cd ‘C:\Program Files\Filebeat’ 
C:\Program Files\Filebeat> .\install-service-filebeat.ps1
执行报错:
cdbee766a7274eeec7b7c4dd60e91d5f0cebd98f
用以下命令执行:
PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-filebeat.ps1
d89eed91c6d173705ffa67dc5d19e13952dc6dbe

安装完成后,修改filebeat.yml配置文件,指定好上传日志文件的路径等参数

启动:
直接执行.exe程序即可
3bbd35f03039fd63d85aaa2ed40561691142e747

但是这里有一个问题,程序只能前台运行,一旦关闭cmd窗口,程序也会关闭,google了很多办法,start /b参数尝试也不行,后来搜到一个chp.exe程序,加在filebeat.exe前执行即可。


测试了最新版本5.0,以及1.3和1.2的filebeat版本,只有1.2版本可以执行
1.3和5.0出现输出报错:
failed to initialize console plugin as output: console output initialization failed with: GetFileInformationByHandle /dev/stdout: The handle is invalid.

目录
相关文章
|
3月前
|
存储 数据安全/隐私保护 索引
Windows Server 各版本搭建文件服务器实现共享文件(03~19)
Windows Server 各版本搭建文件服务器实现共享文件(03~19)
|
3月前
|
网络协议 数据安全/隐私保护 Windows
Windows Server 各版本搭建域控制器实现通过域管理用户(03~19)
Windows Server 各版本搭建域控制器实现通过域管理用户(03~19)
|
3月前
|
数据安全/隐私保护 网络虚拟化 开发者
appuploder 全过程使用教程(Windows 版本)
appuploder 全过程使用教程(Windows 版本)
|
3月前
|
并行计算 C++ 异构计算
【环境配置】安装windows版本的TensorRt
【环境配置】安装windows版本的TensorRt
71 4
|
3月前
|
Windows
LabVIEW安装程序需要Windows1064位(版本1507)或更新版本
LabVIEW安装程序需要Windows1064位(版本1507)或更新版本
92 1
|
10天前
|
存储 数据可视化 Python
【python】python tkinter 计算器GUI版本(模仿windows计算器 源码)【独一无二】
【python】python tkinter 计算器GUI版本(模仿windows计算器 源码)【独一无二】
|
1月前
|
安全 测试技术 Windows
LabVIEW版本、硬件驱动和Windows版本之间兼容性
LabVIEW版本、硬件驱动和Windows版本之间兼容性
40 2
|
1月前
|
Windows 内存技术
nvm 管理和切换 node版本(windows操作系统)
nvm 管理和切换 node版本(windows操作系统)
41 0
|
2月前
|
Python Windows
windows下更改pip版本
在CMD中运行`pip -V`检查pip与Python的关联版本。通过系统设置>环境变量>Path,修改包含Python和Scripts目录的路径为实际安装路径。完成后,验证`pip -V`显示的Python版本已更新。
|
2月前
|
关系型数据库 MySQL 程序员
Windows版本 - MySQL卸载
Windows版本 - MySQL卸载
30 0