I will be as descriptive as I can:
I have been fiddling with ELK for 2/3 days now, just got it to work. I have it installed in one of our servers in a linux OS and use VMware console to connect to it. I can access Kibana from the Hosts web. I am now attempting to send the production logs from event viewers for Kibana to analyse. I then stumped across a tutorial using Winlogbeat (Windows Events, Sysmon and Elk…oh my! - NetSPI). It also asks me to install Sysmon before starting on Winlogbeat.
I did everything it required me and as soon as I went to run the script to start winlogbeat, I get this error:
Start-Service : Service 'winlogbeat (winlogbeat)' cannot be started due to the following error: Cannot start service winlogbeat on computer '.'. At line:1 char:1 + Start-Service -Name "winlogbeat" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException + FullyQualifiedErrorId: CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
I understand this error, it might be perhaps the certificate is in the linux directory and not in windows, but how could I make this possibly work? do I have to copy the cert over from the Linux OS to the Host windows OS?
BTW: when I run a configtest I get this:
Flag --configtest has been deprecated, configtest flag has been deprecated, use test config subcommand
2018-07-02T14:17:39.858+0100 INFO instance/beat.go:492 Home path: [C:\Software\winlogbeat] Config path: [C:\Software\winlogbeat] Data path: [C:\Software\winlogbeat\data] Logs path: [C:\Software\winlogbeat\logs]
2018-07-02T14:17:39.862+0100 INFO instance/beat.go:499 Beat UUID: ca9db19c-c000-42d0-ab0d-034720bdf2fc
2018-07-02T14:17:39.869+0100 INFO [beat] instance/beat.go:716 Beat info {"system_info": {"beat": {"path": {"config": "C:\Software\winlogbeat", "data": "C:\Software\winlogbeat\data", "home": "C:\Software\winlogbeat", "logs": "C:\Software\winlogbeat\logs"}, "type": "winlogbeat", "uuid": "ca9db19c-c000-42d0-ab0d-034720bdf2fc"}}}
2018-07-02T14:17:39.873+0100 INFO [beat] instance/beat.go:725 Build info {"system_info": {"build": {"commit": "a04cb664d5fbd4b1aab485d1766f3979c138fd38", "libbeat": "6.3.0", "time": "2018-06-11T22:37:35.000Z", "version": "6.3.0"}}}
2018-07-02T14:17:39.873+0100 INFO [beat] instance/beat.go:728 Go runtime info {"system_info": {"go": {"os":"windows","arch":"amd64","max_procs":4,"version":"go1.9.4"}}}
2018-07-02T14:17:39.907+0100 INFO instance/beat.go:225 Setup Beat: winlogbeat; Version: 6.3.0
2018-07-02T14:17:39.908+0100 ERROR outputs/tls.go:268 Failed reading CA certificate: open /etc/elk-certs/elk-ssl.cert: The system cannot find the path specified.
2018-07-02T14:17:39.911+0100 INFO instance/beat.go:275 winlogbeat stopped.
2018-07-02T14:17:39.922+0100 ERROR instance/beat.go:691 Exiting: error initializing publisher: 1 error: open /etc/elk-certs/elk-ssl.cert: The system cannot find the path specified. reading /etc/elk-certs/elk-ssl.cert
Exiting: error initializing publisher: 1 error: open /etc/elk-certs/elk-ssl.cert: The system cannot find the path specified. reading /etc/elk-certs/elk-ssl.cert
Also here is the log file:
> 2018-07-02T14:07:54.255+0100 INFO instance/beat.go:492 Home path: [C:\Software\winlogbeat] Config path: [C:\Software\winlogbeat] Data path: [C:\Software\winlogbeat\data] Logs path: [C:\Software\winlogbeat\logs] > 2018-07-02T14:07:54.268+0100 INFO instance/beat.go:499 Beat UUID: ca9db19c-c000-42d0-ab0d-034720bdf2fc > 2018-07-02T14:07:54.268+0100 INFO [beat] instance/beat.go:716 Beat info {"system_info": {"beat": {"path": {"config": "C:\\Software\\winlogbeat", "data": "C:\\Software\\winlogbeat\\data", "home": "C:\\Software\\winlogbeat", "logs": "C:\\Software\\winlogbeat\\logs"}, "type": "winlogbeat", "uuid": "ca9db19c-c000-42d0-ab0d-034720bdf2fc"}}} > 2018-07-02T14:07:54.269+0100 INFO [beat] instance/beat.go:725 Build info {"system_info": {"build": {"commit": "a04cb664d5fbd4b1aab485d1766f3979c138fd38", "libbeat": "6.3.0", "time": "2018-06-11T22:37:35.000Z", "version": "6.3.0"}}} > 2018-07-02T14:07:54.269+0100 INFO [beat] instance/beat.go:728 Go runtime info {"system_info": {"go": {"os":"windows","arch":"amd64","max_procs":4,"version":"go1.9.4"}}} > 2018-07-02T14:07:54.293+0100 INFO instance/beat.go:225 Setup Beat: winlogbeat; Version: 6.3.0 > 2018-07-02T14:07:54.294+0100 ERROR outputs/tls.go:268 Failed reading CA certificate: open /etc/elk-certs/elk-ssl.cert: The system cannot find the path specified. > 2018-07-02T14:07:54.294+0100 INFO instance/beat.go:275 winlogbeat stopped. > 2018-07-02T14:07:54.298+0100 ERROR instance/beat.go:691 Exiting: error initializing publisher: 1 error: open /etc/elk-certs/elk-ssl.cert: The system cannot find the path specified. reading /etc/elk-certs/elk-ssl.cert