In such case most important log is log from database. Please check log file in /var/log/elasticsearch/<cluster_name>.log
.
Port 9200
is port used for database API, so if this is not active, then most likely database/opensearch isn't running. Please check log file and check if you have more info there. 🙂
You can also check if curl -k -u logserver 127.0.0.1:9200
is returning anything. Example response would be like below:
{
"name" : "node-1",
"cluster_name" : "logserver",
"cluster_uuid" : "As7tlPTWSzyyeaVXxOnFBA",
"version" : {
"distribution" : "opensearch",
"number" : "2.8.0",
"build_type" : "tar",
"build_hash" : "db90a415ff2fd428b4f7b3f800a51dc229287cb4",
"build_date" : "2023-07-28T09:54:26.952266Z",
"build_snapshot" : false,
"lucene_version" : "9.6.0",
"minimum_wire_compatibility_version" : "7.10.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "The OpenSearch Project: https://opensearch.org/"
}