Hi @stephenb
previously, I ran curl on my laptop because my laptop is the one I want to make monitoring the VM, and I use a local ip.
whereas for now, I'm running curl on the Windows Server 2019 using the local IP of the Windows Server 2019
C:\Windows\System32>curl -k -u elastic https://192.168.140.188:9200
Enter host password for user 'elastic':
{
"name" : "TESTSERVER",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "C9EhflK7T0mKwbM8lLiX0Q",
"version" : {
"number" : "8.6.2",
"build_flavor" : "default",
"build_type" : "zip",
"build_hash" : "2d58d0f136141f03239816a4e360a8d17b6d8f29",
"build_date" : "2023-02-13T09:35:20.314882762Z",
"build_snapshot" : false,
"lucene_version" : "9.4.2",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
if I use a local IP from my laptop it will appear like this, even though on my laptop elasticsearch, kibana, and metricbeat are already running
C:\Windows\System32>curl -k -u elastic https://192.168.20.13:9200
Enter host password for user 'elastic':
curl: (7) Failed to connect to 192.168.20.13 port 9200: Timed out
i run .\metricbeat test output
on local IP of the Windows Server 2019, show like this
PS C:\Program Files\Metricbeat> .\metricbeat test output
elasticsearch: https://192.168.140.188:9200/...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: 192.168.140.188
dial up... OK
TLS...
security: server's certificate chain verification is enabled
handshake... OK
TLS version: TLSv1.3
dial up... OK
talk to server... OK
version: 8.6.2
and if i use IP from my laptop, show like this.
PS C:\Program Files\Metricbeat> .\metricbeat test output
elasticsearch: https://192.168.20.13:9200...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: 192.168.20.13
dial up... ERROR dial tcp 192.168.20.13:9200: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Elasticsearch, kibana, and metricbeat laptop and windows server 2019 are also running