I made a configuration change to winlogbeat.yml then issued a Restart-Service winlogbeat
. I've done this several times in the past when updating my configuration file without any issues.
However, this time the winlogbeat service briefly starts then stops. I reverted back to a working configuration, testing it using winlogbeat.exe test config -c winlogbeat.yml -e
and the status is Config OK
, so I know the syntax is okay.
Here's the only error log that I'm able to come across in C:\ProgramData\winlogbeat\logs
:
2018-10-03T14:37:35.081+0900 INFO instance/beat.go:544 Home path: [C:\Program Files\winlogbeat-6.4.0] Config path: [C:\Program Files\winlogbeat-6.4.0] Data path: [C:\ProgramData\winlogbeat] Logs path: [C:\ProgramData\winlogbeat\logs]
2018-10-03T14:37:35.261+0900 INFO instance/beat.go:551 Beat UUID: <UUID HERE>
2018-10-03T14:37:35.261+0900 INFO [beat] instance/beat.go:768 Beat info {"system_info": {"beat": {"path": {"config": "C:\\Program Files\\winlogbeat-6.4.0", "data": "C:\\ProgramData\\winlogbeat", "home": "C:\\Program Files\\winlogbeat-6.4.0", "logs": "C:\\ProgramData\\winlogbeat\\logs"}, "type": "winlogbeat", "uuid": "fc0c37c0-038f-42a7-ae87-984fa11d6b92"}}}
2018-10-03T14:37:35.261+0900 INFO [beat] instance/beat.go:777 Build info {"system_info": {"build": {"commit": "34b4e2cc75fbbee5e7149f3916de72fb8892d070", "libbeat": "6.4.0", "time": "2018-08-17T22:29:02.000Z", "version": "6.4.0"}}}
2018-10-03T14:37:35.262+0900 INFO [beat] instance/beat.go:780 Go runtime info {"system_info": {"go": {"os":"windows","arch":"amd64","max_procs":2,"version":"go1.10.3"}}}
2018-10-03T14:37:35.272+0900 INFO [beat] instance/beat.go:784 Host info {"system_info": {"host": {"architecture":"x86_64","boot_time":"2018-08-29T11:36:02.01+09:00","hostname":"WINLOGBEATHOSTNAME","ips":["172.X.X.X/24","::1/128","127.0.0.1/8"],"kernel_version":"6.3.9600.19101 (winblue_ltsb_escrow.180718-1800)","mac_addresses":["00:XX:XX:XX:XX:XX"],"os":{"family":"windows","platform":"windows","name":"Windows Server 2012 R2 Standard","version":"6.3","major":3,"minor":0,"patch":0,"build":"9600.19102"},"timezone":"JST","timezone_offset_sec":32400,"id":"XXXXXXXXXXXXXXXXX"}}}
2018-10-03T14:37:35.272+0900 INFO instance/beat.go:273 Setup Beat: winlogbeat; Version: 6.4.0
2018-10-03T14:37:35.275+0900 INFO pipeline/module.go:98 Beat name: WINLOGBEATHOSTNAME
2018-10-03T14:37:35.275+0900 INFO beater/winlogbeat.go:68 State will be read from and persisted to C:\ProgramData\winlogbeat\.winlogbeat.yml
2018-10-03T14:37:35.276+0900 INFO instance/beat.go:367 winlogbeat start running.
2018-10-03T14:37:35.279+0900 INFO [monitoring] log/log.go:114 Starting metrics logging every 30s
2018-10-03T14:37:37.398+0900 INFO [monitoring] log/log.go:149 Total non-zero metrics {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":140,"time":{"ms":203}},"total":{"ticks":171,"time":{"ms":249},"value":0},"user":{"ticks":31,"time":{"ms":46}}},"info":{"ephemeral_id":"XXXXXXXXXXXXXXXXX","uptime":{"ms":3123}},"memstats":{"gc_next":4194304,"memory_alloc":2219528,"memory_total":3799136,"rss":17883136}},"libbeat":{"config":{"module":{"running":0}},"output":{"type":"logstash"},"pipeline":{"clients":0,"events":{"active":0}}},"system":{"cpu":{"cores":2}}}}}
2018-10-03T14:37:37.398+0900 INFO [monitoring] log/log.go:150 Uptime: 3.123263s
2018-10-03T14:37:37.398+0900 INFO [monitoring] log/log.go:127 Stopping metrics logging.
2018-10-03T14:37:37.398+0900 INFO instance/beat.go:373 winlogbeat stopped.
2018-10-03T14:37:37.398+0900 ERROR instance/beat.go:743 Exiting: yaml: line 56: found unexpected end of stream
I'm a bit confused and running out of troubleshooting steps.
Thanks for your time.