在Windows Server 2012 R2上无法设置filebeat。

问题描述 投票:0回答:2

我在Ubuntu机器上设置了一个日志服务器。我需要将Windows Server 2012 Apache日志传送到日志服务器。

现在我试图在Windows服务器上安装filebeat,以便将日志传送到logserver。https:/www.elastic.coguideenbeatsfilebeatcurrentfilebeat-getting-started.html

版本:filebeat-1.0.1-windows。

但我在我的服务器上启动filebeat失败了,它在power shell上出现了以下错误。

Start-Service : Service 'filebeat (filebeat)' cannot be started due to the following error: Cannot start service
filebeat on computer '.'.
At line:1 char:1
+ Start-Service filebeat
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
   ServiceCommandException
    + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand

有谁知道解决办法吗?

logstash windows-server-2012-r2 elastic-stack logstash-forwarder
2个回答
1
投票

我在Windows 10上遇到了这个问题。 我在命令窗口中运行了以下内容,发现我的.yml文件中有一个配置错误。

filebeat -c filebeat.yml -configtest(测试)

一旦我清理了,服务开始。


0
投票

试着打开一个管理员cmd和运行filebeat.exe,你应该的错误,将阻止服务启动。

© www.soinside.com 2019 - 2024. All rights reserved.