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.
server.host: "10.1.30.13"
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.
#server.name: "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: ["https://10.1.30.11:9200"]
=================== 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.
logging:
appenders:
file:
type: file
fileName: /var/log/kibana/kibana.log
layout:
type: json
root:
appenders:
- default
- file
layout:
type: json
Logs queries sent to Elasticsearch.
#logging.loggers:
- name: elasticsearch.query
level: debug
Logs http responses.
#logging.loggers:
- name: http.server.response
level: debug
Logs system usage information.
#logging.loggers:
- name: metrics.ops
level: debug
=================== System: Other ===================
The path where Kibana stores persistent data not saved in Elasticsearch. Defaults to data
#path.data: data
Specifies the path where Kibana creates the process ID file.
pid.file: /run/kibana/kibana.pid
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.yml
======================== 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:
#cluster.name: my-application
------------------------------------ Node ------------------------------------
Use a descriptive name for the node:
node.name: 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):
path.data: /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
limit.
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:
network.host: 10.1.30.11
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
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
enabled: true
keystore.path: certs/http.p12
Enable encryption and mutual authentication between cluster nodes
xpack.security.transport.ssl:
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
http.host: 0.0.0.0
Allow other nodes to join the cluster from anywhere
Connections are encrypted and mutually authenticated
#transport.host: 0.0.0.0
#----------------------- END SECURITY AUTO CONFIGURATION -