packetbeat 无法启动
我在windows执行了
C:\Users\ehagsuu\Desktop\elastic\packetbeat-5.6.4-windows-x86
λ Ppacketbeat.exe -e -c es.yml -strict.perms=false
结果如下:
2018/08/12 09:09:36.076161 beat.go:346: CRIT Exiting: Initializing sniffer failed: Error creating sniffer: Couldn't unde
rstand device index 0: Looking for device index 0, but there are only 0 devices
Exiting: Initializing sniffer failed: Error creating sniffer: Couldn't understand device index 0: Looking for device ind
ex 0, but there are only 0 devices
##########
应该是es.yml中关于packetbeat.interfaces.device: 0的,没有设置正确,尝试了eth0,lo0都不会正确重启。
并且在windows环境中执行packetbeat devices
C:\Users\ehagsuu\Desktop\elastic\packetbeat-5.6.4-windows-x86
λ Ppacketbeat.exe devices
Exiting: Initializing sniffer failed: Error creating sniffer: Couldn't understand device index 0: Looking for device index 0, but there are only 0 devices
C:\Users\ehagsuu\Desktop\elastic\packetbeat-5.6.4-windows-x86