Elasticsearch 6.5.1
XPack enabled, TLS/SSL encryption enabled
Setup: Metricbeat-->Logstash-->Elasticsearch<--Kibana
I've been trying to enroll a metricbeat on a Windows Server 2016 box through the Central Managaement feature and I've had no luck getting it to register. Here are the troubleshooting steps that I've gone through so far.
- Followed the thread here: https://github.com/elastic/beats/issues/9385
-Deleted data/json
.-Established a new token after deletion of data/json, beat type: metricbeat platform: Windows
-Made sure I prefixed the cmd with -e -v -d "*"
PS C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64> .\metricbeat.exe -e -v -d "*" enroll https://abc.gov 4dcf5218c47740af8467729eaa93e25c
2019-01-04T09:49:54.576-0500 INFO instance/beat.go:592 Home path: [C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64] Config path: [C:\Program Files\Metricbeat\m
etricbeat-6.5.3-windows-x86_64] Data path: [C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64\data] Logs path: [C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_6
4\logs]
2019-01-04T09:49:54.578-0500 DEBUG [beat] instance/beat.go:629 Beat metadata path: C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64\data\meta.json
2019-01-04T09:49:54.597-0500 INFO instance/beat.go:599 Beat UUID: 60ce4282-8666-480c-b088-c2208799c0ef
2019-01-04T09:49:54.597-0500 INFO kibana/client.go:118 Kibana url: https://abc.gov:5601
Error while enrolling: fail to execute the HTTP POST request: Post https://abc.gov:5601/api/beats/agent/60ce4282-8666-480c-b088-c2208799c0ef: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)**
-
Also added .management-beats to action.auto_create_index in our ES yaml to which I can see a management-beats index when I click on Include System Indicies
-
Tried to use some of the other options from here: https://www.elastic.co/guide/en/beats/metricbeat/current/enroll-beats.html
PS C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64> .\metricbeat.exe -e -v -d "*" enroll https://abc.gov --username elastic --password stdin
2019-01-04T09:56:42.515-0500 INFO instance/beat.go:592 Home path: [C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64] Config path: [C:\Program Files\Metricbeat\m
etricbeat-6.5.3-windows-x86_64] Data path: [C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64\data] Logs path: [C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_6
4\logs]
2019-01-04T09:56:42.517-0500 DEBUG [beat] instance/beat.go:629 Beat metadata path: C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64\data\meta.json
2019-01-04T09:56:42.523-0500 INFO instance/beat.go:599 Beat UUID: 60ce4282-8666-480c-b088-c2208799c0ef
Enter password:
2019-01-04T09:56:50.500-0500 INFO kibana/client.go:118 Kibana url: https://abc.gov:5601
Error creating a new enrollment token: fail to execute the HTTP POST request: Post https://abc.gov:5601/api/beats/enrollment_tokens: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
- Tried a different version with no luck:
PS C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64> .\metricbeat.exe -e -v -d "*" enroll https://abcgov --username elastic --password password [--force]
2019-01-04T09:59:25.329-0500 INFO instance/beat.go:592 Home path: [C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64] Config path: [C:\Program Files\Metricbeat\m
etricbeat-6.5.3-windows-x86_64] Data path: [C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64\data] Logs path: [C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_6
4\logs]
2019-01-04T09:59:25.330-0500 DEBUG [beat] instance/beat.go:629 Beat metadata path: C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64\data\meta.json
2019-01-04T09:59:25.336-0500 INFO instance/beat.go:599 Beat UUID: 60ce4282-8666-480c-b088-c2208799c0ef
2019-01-04T09:59:25.337-0500 INFO kibana/client.go:118 Kibana url: https://abc.gov:5601
Error while enrolling: fail to execute the HTTP POST request: Post https://abc.gov:5601/api/beats/agent/60ce4282-8666-480c-b088-c2208799c0ef: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
PS C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64>
- Tried username and password verification
PS C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64> .\metricbeat.exe -e -v -d "*" enroll https://abc.gov --username kibana --password stdin
2019-01-04T10:13:14.221-0500 INFO instance/beat.go:592 Home path: [C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64] Config path: [C:\Program Files\Metricbeat\m
etricbeat-6.5.3-windows-x86_64] Data path: [C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64\data] Logs path: [C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_6
4\logs]
2019-01-04T10:13:14.223-0500 DEBUG [beat] instance/beat.go:629 Beat metadata path: C:\Program Files\Metricbeat\metricbeat-6.5.3-windows-x86_64\data\meta.json
2019-01-04T10:13:14.228-0500 INFO instance/beat.go:599 Beat UUID: 60ce4282-8666-480c-b088-c2208799c0ef
Enter password:
2019-01-04T10:13:20.911-0500 INFO kibana/client.go:118 Kibana url: https://abc.gov:5601
Error creating a new enrollment token: fail to execute the HTTP POST request: Post https://kibana-qa.svc.ny.gov:5601/api/beats/enrollment_tokens: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
- I checked this thread and had no luck: Central Management filebeat enrollment fail
***Update: I went through the steps here and it still didn't seem to work: http://www.sqlservermart.com/HowTo/Windows_Import_Certificate.aspx
I'm running into the same issue. By "add the CA to the OS trust store" I assume that if I'm working on a Windows Server 2016 that it needs to be added somewhere in the MS truststore. Any info on how to do that? I've been reading documentation online but its not getting me anywhere. Any help would be appreciated.
Any help would be appreciated. For our environment using Central Management would be really useful so we'd like to get it working.