提问:布和纸怕什么?

filebeat启动失败

Beats | 作者 hklv | 发布于2018年02月01日 | 阅读数:14661

安装filebeat的时候报错,日志如下
D:\Program Files\filebeat\filebeat-6.1.2-windows-x86_64>filebeat.exe -e -c filebeat.yml
2018/02/01 07:45:20.878882 beat.go:436: INFO Home path: [D:\Program Files\filebeat\filebeat-6.1.2-windows-x86_64] Config path: [D:\Program Files\filebeat\filebeat-6.1.2-windows-x86_64] Data path: [D:\Program Files\filebeat\filebeat-6.1.2-windows-x86_64\data] Logs path: [D:\Program Files\filebeat\filebeat-6.1.2-windows-x86_64\logs]
2018/02/01 07:45:20.879883 beat.go:443: INFO Beat UUID: dc1da070-ef2e-4990-b622-b4af65a35d3d
2018/02/01 07:45:20.880885 beat.go:203: INFO Setup Beat: filebeat; Version: 6.1.2
2018/02/01 07:45:20.878882 metrics.go:23: INFO Metrics logging every 30s
2018/02/01 07:45:20.882886 client.go:123: INFO Elasticsearch url: http://localhost:9200
2018/02/01 07:45:20.883885 module.go:76: INFO Beat name: DESKTOP-EP0155S
2018/02/01 07:45:20.884885 beat.go:276: INFO filebeat start running.
2018/02/01 07:45:20.884885 registrar.go:88: INFO Registry file set to: D:\Program Files\filebeat\filebeat-6.1.2-windows-x86_64\data\registry
2018/02/01 07:45:20.885888 registrar.go:108: INFO Loading registrar data from D:\Program Files\filebeat\filebeat-6.1.2-windows-x86_64\data\registry
2018/02/01 07:45:20.887888 registrar.go:119: INFO States Loaded from registrar: 6
2018/02/01 07:45:20.888888 crawler.go:48: INFO Loading Prospectors: 1
2018/02/01 07:45:20.888888 registrar.go:150: INFO Starting Registrar
2018/02/01 07:45:20.908903 prospector.go:87: INFO Starting prospector of type: log; ID: 11549663838158751667
2018/02/01 07:45:20.913907 factory.go:69: ERR Error creating prospector: No paths were defined for prospector accessing config
2018/02/01 07:45:20.917909 crawler.go:109: INFO Stopping Crawler
2018/02/01 07:45:20.918910 crawler.go:119: INFO Stopping 1 prospectors
2018/02/01 07:45:20.924914 prospector.go:410: INFO Scan aborted because prospector stopped.
2018/02/01 07:45:20.926919 prospector.go:121: INFO Prospector ticker stopped
2018/02/01 07:45:20.927920 prospector.go:138: INFO Stopping Prospector: 11549663838158751667
2018/02/01 07:45:20.927920 harvester.go:215: INFO Harvester started for file: D:\Program Files\elasticsearch-6.1.2\logs\elasticsearch-2018-01-31-1.log.gz
2018/02/01 07:45:20.933924 crawler.go:135: INFO Crawler stopped
2018/02/01 07:45:20.934926 registrar.go:210: INFO Stopping Registrar
2018/02/01 07:45:20.941930 registrar.go:165: INFO Ending Registrar
2018/02/01 07:45:20.946937 metrics.go:51: INFO Total non-zero values: beat.info.uptime.ms=93 beat.memstats.gc_next=4194304 beat.memstats.memory_alloc=1745280 beat.memstats.memory_total=3310656 filebeat.events.active=3 filebeat.events.added=8 filebeat.events.done=5 filebeat.harvester.closed=1 filebeat.harvester.open_files=0 filebeat.harvester.running=0 filebeat.harvester.started=1 libbeat.config.module.running=0 libbeat.output.type=elasticsearch libbeat.pipeline.clients=0 libbeat.pipeline.events.active=0 libbeat.pipeline.events.filtered=8 libbeat.pipeline.events.total=8 registrar.states.current=6 registrar.states.update=5 registrar.writes=6
2018/02/01 07:45:20.947938 metrics.go:52: INFO Uptime: 94.0737ms
2018/02/01 07:45:20.947938 beat.go:284: INFO filebeat stopped.
2018/02/01 07:45:20.948938 beat.go:635: CRIT Exiting: No paths were defined for prospector accessing config
Exiting: No paths were defined for prospector accessing config
哪位大神帮忙看下
已邀请:

jhonbo

赞同来自: hklv

按着官网的安装方式试试看:
https://www.elastic.co/guide/e ... .html

win:
1.Download the Filebeat Windows zip file from the downloads page.
2.Extract the contents of the zip file into C:\Program Files.
3.Rename the filebeat-<version>-windows directory to Filebeat.
4.Open a PowerShell prompt as an Administrator (right-click the PowerShell icon and select Run As Administrator). If you are running Windows XP, you may need to download and install PowerShell.

5.From the PowerShell prompt, run the following commands to install Filebeat as a Windows service:
------------------------------------------------------------------------------
PS > cd 'C:\Program Files\Filebeat'
PS C:\Program Files\Filebeat> .\install-service-filebeat.ps1
------------------------------------------------------------------------------

要回复问题请先登录注册