I tired to setup winlogbeat to forward some windows events off to logstash but it seems there might be a bug in winlogbeat. If I dont uncomment any SSL settings for logstash in the yml config then it seems to 'work'. I know my cert/key works for logstash because I'm using the same settings for a filebeat service and it works fine. The system running winlogbeat is a win10 64bit and the winlogbeat is 6.1.1 and my elk stack is also 6.1.1. When I uncomment the SSL settings I get the following:
PS C:\Users\zach\Downloads\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64> .\winlogbeat.exe -c .\winlogbeat.yml -e -v
winlogbeat2017/12/28 14:59:41.038521 beat.go:635: CRIT Exiting: error loading config file: yaml: line 109: did not find expected hexdecimal number
Exiting: error loading config file: yaml: line 109: did not find expected hexdecimal number
When I comment it:
PS C:\Users\zach\Downloads\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64> .\winlogbeat.exe -c .\winlogbeat.yml -e -v
2017/12/28 15:00:17.333281 metrics.go:23: INFO Metrics logging every 30s
2017/12/28 15:00:17.333281 beat.go:436: INFO Home path: [C:\Users\zach\Downloads\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64] Config path: [C:\Users\zach\Downloads\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-wind
ows-x86_64] Data path: [C:\Users\zach\Downloads\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64\data] Logs path: [C:\Users\zach\Downloads\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64\logs]
2017/12/28 15:00:17.334230 beat.go:443: INFO Beat UUID: 55534e4a-594b-4708-a97b-d1eac37bec0c
2017/12/28 15:00:17.334230 beat.go:203: INFO Setup Beat: winlogbeat; Version: 6.1.1
2017/12/28 15:00:17.336164 module.go:76: INFO Beat name: snail
2017/12/28 15:00:17.336164 winlogbeat.go:56: INFO State will be read from and persisted to C:\Users\zach\Downloads\winlogbeat-6.1.1-windows-x86_64\winlogbeat-6.1.1-windows-x86_64\data.winlogbeat.yml
2017/12/28 15:00:17.336164 beat.go:276: INFO winlogbeat start running.
2017/12/28 15:00:18.493723 async.go:235: ERR Failed to publish events caused by: read tcp 192.168.1.3:3035->192.168.1.243:5044: wsarecv: An existing connection was forcibly closed by the remote host.
2017/12/28 15:00:18.561123 async.go:235: ERR Failed to publish events caused by: client is not connected
2017/12/28 15:00:19.562387 output.go:92: ERR Failed to publish events: client is not connected
2017/12/28 15:00:19.629791 async.go:235: ERR Failed to publish events caused by: read tcp 192.168.1.3:3036->192.168.1.243:5044: wsarecv: An existing connection was forcibly closed by the remote host.
2017/12/28 15:00:19.681611 async.go:235: ERR Failed to publish events caused by: client is not connected
2017/12/28 15:00:19.965823 winlogbeat.go:152: INFO Stopping Winlogbeat
2017/12/28 15:00:19.979549 eventlogger.go:92: INFO EventLog[Security] Stop processing.
The settings are:
#----------------------------- Logstash output --------------------------------
output.logstash:
hosts: ["192.168.1.243:5044"]
ssl.certificate: "C:\Users\zach\Desktop\new.cert.cert"
ssl.key: "C:\Users\zach\Desktop\new.cert.key"
Any ideas why I'm getting that error?