Kibana Refused To connect on Browser after Installation (via RPM)

I am having issues connecting to kibana via browser. The service started successfully via cli but I'm unable to connect on port 5601 - "refused connection".

Kibana.yml file:

For more configuration options see the configuration guide for Kibana in

Welcome to Elastic Docs | Elastic

=================== System: Kibana Server ===================

Kibana is served by a back end server. This setting specifies the port to use.

server.port: 5601

Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.

The default is 'localhost', which usually means remote machines will not be able to connect.

To allow connections from remote users, set this parameter to a non-loopback address. ""

Enables you to specify a path to mount Kibana at if you are running behind a proxy.

Use the server.rewriteBasePath setting to tell Kibana if it should remove the basePath

from requests it receives, and to prevent a deprecation warning at startup.

This setting cannot end in a slash.

#server.basePath: ""

Specifies whether Kibana should rewrite requests that are prefixed with

server.basePath or require that they are rewritten by your reverse proxy.

Defaults to false.

#server.rewriteBasePath: false

Specifies the public URL at which Kibana is available for end users. If

server.basePath is configured this URL should end with the same basePath.

#server.publicBaseUrl: ""

The maximum payload size in bytes for incoming server requests.

#server.maxPayload: 1048576

The Kibana server's name. This is used for display purposes. "your-hostname"

=================== System: Kibana Server (Optional) ===================

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

=================== System: Elasticsearch ===================

The URLs of the Elasticsearch instances to use for all your queries.

elasticsearch.hosts: [""]

=================== System: Logging ===================

Set the value of this setting to off to suppress all logging output, or to debug to log everything. Defaults to 'info'

#logging.root.level: debug

Enables you to specify a file where Kibana stores log output.

type: file
fileName: /var/log/kibana/kibana.log
type: json
- default
- file


type: json

Logs queries sent to Elasticsearch.


- name: elasticsearch.query

level: debug

Logs http responses.


- name: http.server.response

level: debug

Logs system usage information.


- name: metrics.ops

level: debug

=================== System: Other ===================

The path where Kibana stores persistent data not saved in Elasticsearch. Defaults to data data

Specifies the path where Kibana creates the process ID file.

pid.file: /run/kibana/

Set the interval in milliseconds to sample system and process performance

metrics. Minimum is 100ms. Defaults to 5000ms.

#ops.interval: 5000

Specifies locale to be used for all localizable strings, dates and number formats.

Supported languages are the following: English (default) "en", Chinese "zh-CN", Japanese "ja-JP", French "fr-FR".

#i18n.locale: "en"

=================== Frequently used (Optional)===================

=================== Saved Objects: Migrations ===================

Saved object migrations run at startup. If you run into

======================== Elasticsearch Configuration =========================

NOTE: Elasticsearch comes with reasonable defaults for most settings.

Before you set out to tweak and tune the configuration, make sure you

understand what are you trying to accomplish and the consequences.

The primary way of configuring a node is via this file. This template lists

the most important settings you may want to configure for a production cluster.

Please consult the documentation for further information on configuration options:

Elasticsearch Guide | Elastic

---------------------------------- Cluster -----------------------------------

Use a descriptive name for your cluster: my-application

------------------------------------ Node ------------------------------------

Use a descriptive name for the node: node-1

Add custom attributes to the node:

#node.attr.rack: r1

----------------------------------- Paths ------------------------------------

Path to directory where to store the data (separate multiple locations by comma): /var/lib/elasticsearch

Path to log files:

path.logs: /var/log/elasticsearch

----------------------------------- Memory -----------------------------------

Lock the memory on startup:

bootstrap.memory_lock: true

Make sure that the heap size is set to about half the memory available

on the system and that the owner of the process is allowed to use this


Elasticsearch performs poorly when the system is swapping the memory.

---------------------------------- Network -----------------------------------

By default Elasticsearch is only accessible on localhost. Set a different

address here to expose this node on the network:

By default Elasticsearch listens for HTTP traffic on the first free port it

finds starting at 9200. Set a specific HTTP port here:

Enable security features true true

Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
enabled: true
keystore.path: certs/http.p12

Enable encryption and mutual authentication between cluster nodes
enabled: true
verification_mode: certificate
keystore.path: certs/transport.p12
truststore.path: certs/transport.p12

Create a new cluster with the current node only

Additional nodes can still join the cluster later

cluster.initial_master_nodes: ["localhost.localdomain"]

Allow HTTP API connections from anywhere

Connections are encrypted and require user authentication

Allow other nodes to join the cluster from anywhere

Connections are encrypted and mutually authenticated

#----------------------- END SECURITY AUTO CONFIGURATION -

Welcome to our community! :smiley:

Please format your code/logs/config using the </> button, or markdown style back ticks. It helps to make things easy to read which helps us help you :slight_smile:

Hi Mark,

Thanks for reaching out.
Please, how do I do that?
I have no idea, but I am willing to re-format the text.
Any pointer?


Edit your post and put 3 backquotes at the top of the text and 3 backquotes at the bottom. Then it will be displayed exactly as-is without formatting.

Backquotes are these little things: ` (sometimes you have to find them on your keyboard with an ALT or ALT-GR key, press it, and then follow-up by immediately press SPACE).

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.