I installed elastic and kibana v.7.17.9 using rpm and was able to start the service with no issues. I don't see any errors in logs but when I try to access http://localhost:5601, it doesn't work and I get can't connect to the server.
My Elasticsearch.yml looks like:
# ======================== Elasticsearch Configuration =========================
cluster.name: my-application
node.name: node-1
path.data: /var/lib/elasticsearch
action.auto_create_index: .monitoring*,.watches,.triggered_watches,.watcher-history*,.ml*
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
#network.host: 192.168.0.1
http.port: 9200
Kibana.yml looks like:
# Kibana is served by a back end server. This setting specifies the port to use.
server.port: 5601
server.host: "localhost"
# The URLs of the Elasticsearch instances to use for all your queries.
elasticsearch.hosts: ["http://localhost:9200"]
kibana.index: ".kibana"
#elasticsearch.username: "kibana_system"
#elasticsearch.password: "pass"
# Enables SSL and paths to the PEM-format SSL certificate and SSL key files, respectively.
# These settings enable SSL for outgoing requests from the Kibana server to the browser.
#server.ssl.enabled: false
#server.ssl.certificate: /path/to/your/server.crt
#server.ssl.key: /path/to/your/server.key
# Optional settings that provide the paths to the PEM-format SSL certificate and key files.
# These files are used to verify the identity of Kibana to Elasticsearch and are required when
# xpack.security.http.ssl.client_authentication in Elasticsearch is set to required.
#elasticsearch.ssl.certificate: /path/to/your/client.crt
#elasticsearch.ssl.key: /path/to/your/client.key
# Optional setting that enables you to specify a path to the PEM file for the certificate
# authority for your Elasticsearch instance.
#elasticsearch.ssl.certificateAuthorities: [ "/path/to/your/CA.pem" ]
# To disregard the validity of SSL certificates, change this setting's value to 'none'.
#elasticsearch.ssl.verificationMode: full
sudo lsof -i :5601
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 210881 kibana 22u IPv4 200212 0t0 TCP *:esmagent (LISTEN)
lsof -Pi :5601
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 210881 kibana 22u IPv4 200212 0t0 TCP *:5601 (LISTEN)
These curl commands is from my single node server on which I installed Kibana and elasticsearch:
curl -I http://127.0.0.1:5601
HTTP/1.1 302 Found
location: /spaces/enter
x-content-type-options: nosniff
referrer-policy: no-referrer-when-downgrade
content-security-policy: script-src 'unsafe-eval' 'self'; worker-src blob: 'self'; style-src 'unsafe-inline' 'self'
kbn-name: instance-1
kbn-license-sig: 0191c0303446d0274606dde830b797296e1243cde3dc5b6298fd30404f6818c5
cache-control: private, no-cache, no-store, must-revalidate
content-length: 0
Date: Thu, 11 May 2023 23:30:28 GMT
Connection: keep-alive
Keep-Alive: timeout=120
curl localhost:9200
{
"name" : "node-1",
"cluster_name" : "name",
"cluster_uuid" : "uuid",
"version" : {
"number" : "7.17.9",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "ef48222227ee6b9e70e502f0f0daa52435ee634d",
"build_date" : "2023-01-31T05:34:43.305517834Z",
"build_snapshot" : false,
"lucene_version" : "8.11.1",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
journalctl -u kibana.service
May 11 22:43:16 instance-1 systemd[1]: Started Kibana.
May 11 22:46:19 instance-1 systemd[1]: Stopping Kibana...
May 11 22:46:19 instance-1 systemd[1]: kibana.service: Deactivated successfully.
May 11 22:46:19 instance-1 systemd[1]: Stopped Kibana.
May 11 22:46:19 instance-1 systemd[1]: kibana.service: Consumed 25.168s CPU time.
May 11 22:46:19 instance-1 systemd[1]: Started Kibana.
May 11 22:52:26 instance-1 systemd[1]: Stopping Kibana...
May 11 22:52:26 instance-1 systemd[1]: kibana.service: Deactivated successfully.
May 11 22:52:26 instance-1 systemd[1]: Stopped Kibana.
May 11 22:52:26 instance-1 systemd[1]: kibana.service: Consumed 28.506s CPU time.
May 11 22:52:26 instance-1 systemd[1]: Started Kibana.
May 11 22:57:50 instance-1 systemd[1]: Stopping Kibana...
May 11 22:57:50 instance-1 systemd[1]: kibana.service: Deactivated successfully.
May 11 22:57:50 instance-1 systemd[1]: Stopped Kibana.
May 11 22:57:50 instance-1 systemd[1]: kibana.service: Consumed 26.449s CPU time.
May 11 22:57:50 instance-1 systemd[1]: Started Kibana.
journalctl -u elasticsearch.service
May 11 22:34:12 instance-1 systemd[1]: Starting Elasticsearch...
May 11 22:34:40 instance-1 systemd[1]: Started Elasticsearch.
May 11 22:52:47 instance-1 systemd[1]: Stopping Elasticsearch...
May 11 22:52:47 instance-1 systemd[1]: elasticsearch.service: Deactivated successfully.
May 11 22:52:47 instance-1 systemd[1]: Stopped Elasticsearch.
May 11 22:52:47 instance-1 systemd[1]: elasticsearch.service: Consumed 1min 58.885s CPU time.
May 11 22:52:47 instance-1 systemd[1]: Starting Elasticsearch...
May 11 22:53:13 instance-1 systemd[1]: Started Elasticsearch.
I am not able to figure out what's wrong in here, please help.