Kibana User Guide [4.2] » Settings » Setting Kibana Server Properties

24 篇文章 0 订阅

 Setting Kibana Server Properties

设置Kibana服务器属性

The Kibana server reads properties from the kibana.yml file on startup. The default settings configure Kibana to run on localhost:5601. To change the host or port number, or connect to Elasticsearch running on a different machine, you’ll need to update your kibana.yml file. You can also enable SSL and set a variety of other options.

Kibana 服务器在启动的时候会从 kibana.yml 文件读取属性设置。默认设置是运行在 localhost:5601。要变更主机或端口,或者连接远端主机上的 Elasticsearch,你都需要更新你的 kibana.yml 文件。你还可以开启 SSL 或者设置其他一系列选项:

Warning
Deprecated in 4.2.
4.2版本不支持

The names of several Kibana server properties changed in the 4.2 release of Kibana. The previous names remain as functional aliases, but are now deprecated and will be removed in a future release of Kibana.

Kibana服务器所有权的名字在Kibana发布后发生改变。以前的名字还在匿名工作,但是现在收到反对,将会在以后的Kibana版本中移除。

Table 2. Kibana Server Properties Kibana服务器所有权

server.port

4.2]Added in 4.2.

The port that the Kibana server runs on.

aliasport [4.2]Deprecated in 4.2.

default5601

server.host [4.2]Added in 4.2.

The host to bind the Kibana server to.

aliashost [4.2]Deprecated in 4.2.

default"0.0.0.0"

elasticsearch.url [4.2]Added in 4.2.

The Elasticsearch instance where the indices you want to query reside.

aliaselasticsearch_url [4.2]Deprecated in 4.2.

default"http://localhost:9200"

elasticsearch.preserveHost[4.2]Added in 4.2.

By default, the host specified in the incoming request from the browser is specified as the host in the corresponding request Kibana sends to Elasticsearch. If you set this option to false, Kibana uses the host specified in elasticsearch_url.

aliaselasticsearch_preserve_host [4.2]Deprecated in 4.2.

defaulttrue

elasticsearch.ssl.cert [4.2]Added in 4.2.

This parameter specifies the path to the SSL certificate for Elasticsearch instances that require a client certificate.

aliaskibana_elasticsearch_client_crt [4.2]Deprecated in 4.2.

elasticsearch.ssl.key [4.2]Added in 4.2.

This parameter specifies the path to the SSL key for Elasticsearch instances that require a client key.

aliaskibana_elasticsearch_client_key [4.2]Deprecated in 4.2.

elasticsearch.password [4.2]Added in 4.2.

This parameter specifies the password for Elasticsearch instances that use HTTP basic authentication. Kibana users still need to authenticate with Elasticsearch, which is proxied through the Kibana server.

aliaskibana_elasticsearch_password deprecated [4.2]

elasticsearch.username [4.2]Added in 4.2.

This parameter specifies the username for Elasticsearch instances that use HTTP basic authentication. Kibana users still need to authenticate with Elasticsearch, which is proxied through the Kibana server.

aliaskibana_elasticsearch_username [4.2]Deprecated in 4.2.

elasticsearch.pingTimeout[4.2]Added in 4.2.

This parameter specifies the maximum wait time in milliseconds for ping responses by Elasticsearch.

aliasping_timeout [4.2]Deprecated in 4.2.

default1500

elasticsearch.startupTimeout[4.2]Added in 4.2.

This parameter specifies the maximum wait time in milliseconds for Elasticsearch discovery at Kibana startup. Kibana repeats attempts to discover an Elasticsearch cluster after the specified time elapses.

aliasstartup_timeout [4.2]Deprecated in 4.2.

default5000

kibana.index [4.2]Added in 4.2.

The name of the index where saved searched, visualizations, and dashboards will be stored..

aliaskibana_index [4.2]Deprecated in 4.2.

default.kibana

kibana.defaultAppId [4.2]Added in 4.2.

The page that will be displayed when you launch Kibana: discover,visualizedashboard, or settings.

aliasdefault_app_id [4.2]Deprecated in 4.2.

default"discover"

logging.silent [4.2]Added in 4.2.

Set this value to true to suppress all logging output.

defaultfalse

logging.quiet [4.2]Added in 4.2.

Set this value to true to suppress all logging output except for log messages tagged errorfatal, or Hapi.js errors.

defaultfalse

logging.verbose [4.2]Added in 4.2.

Set this value to true to log all events, including system usage information and all requests.

defaultfalse

logging.events [4.2]Added in 4.2.

You can specify a map of log types to output tags for this parameter to create a customized set of loggable events, as in the following example:

{
  log: ['info', 'warning', 'error', 'fatal'],
  response: '*',
  error: '*'
}

elasticsearch.requestTimeout[4.2]Added in 4.2.

How long to wait for responses from the Kibana backend or Elasticsearch, in milliseconds.

aliasrequest_timeout [4.2]Deprecated in 4.2.

default500000

elasticsearch.shardTimeout[4.2]Added in 4.2.

How long Elasticsearch should wait for responses from shards. Set to 0 to disable.

aliasshard_timeout [4.2]Deprecated in 4.2.

default0

elasticsearch.ssl.verify[4.2]Added in 4.2.

Indicates whether or not to validate the Elasticsearch SSL certificate. Set to false to disable SSL verification.

aliasverify_ssl [4.2]Deprecated in 4.2.

defaulttrue

elasticsearch.ssl.ca [4.2]Added in 4.2.

The path to the CA certificate for your Elasticsearch instance. Specify if you are using a self-signed certificate so the certificate can be verified. Disableelasticsearch.ssl.verify otherwise.

aliasca [4.2]Deprecated in 4.2.

server.ssl.key [4.2]Added in 4.2.

The path to your Kibana server’s key file. Must be set to encrypt communications between the browser and Kibana.

aliasssl_key_file [4.2]Deprecated in 4.2.

server.ssl.cert [4.2]Added in 4.2.

The path to your Kibana server’s certificate file. Must be set to encrypt communications between the browser and Kibana.

aliasssl_cert_file [4.2]Deprecated in 4.2.

pid.file [4.2]Added in 4.2.

The location where you want to store the process ID file.

aliaspid_file [4.2]Deprecated in 4.2.

default/var/run/kibana.pid

logging.dest [4.2]Added in 4.2.

The location where you want to store the Kibana’s log output. If not specified, log output is written to standard output and not stored. Specifying a log file suppresses log writes to standard output.

aliaslog_file [4.2]


表 2. Kibana 服务器属性

属性描述
portKibana 服务器运行的端口。默认:port: 5601
hostKibana 服务器监听的地址。默认:host: "0.0.0.0"
elasticsearch_url你想请求的索引存在哪个 Elasticsearch 实例上。默认:elasticsearch_url: "http://localhost:9200"
elasticsearch_preserve_host默认的,浏览器请求中的主机名即作为 Kibana 发送给 Elasticsearch 时请求的主机名。如果你设置这个参数为 false, Kibana 会改用elasticsearch_url 里的主机名。你应该不用担心这个设置 —— 直接用默认即可。默认:elasticsearch_preserve_host: true
kibana_index保存搜索,可视化,仪表板信息的索引的名字。默认:kibana_index: .kibana
default_app_id进入 Kibana 是默认显示的页面。可以为 discovervisualize,dashboard 或 settings。默认:default_app_id: "discover"
request_timeout等待 Kibana 后端或 Elasticsearch 的响应的超时时间,单位毫秒。默认:request_timeout: 500000
shard_timeoutElasticsearch 等待分片响应的超时时间。设置为 0 表示关闭超时控制。默认:shard_timeout: 0
verify_ssl定义是否验证 Elasticsearch SSL 证书。设置为 false 关闭 SSL 认证。默认:verify_ssl: true
ca你的 Elasticsearch 实例的 CA 证书的路径。如果你是自己签的证书,必须指定这个参数,证书才能被认证。否则,你需要关闭 verify_ssl。默认:none。
ssl_key_fileKibana 服务器的密钥文件路径。设置用来加密浏览器和 Kibana 之间的通信。默认:none。
ssl_cert_fileKibana 服务器的证书文件路径。设置用来加密浏览器和 Kibana 之间的通信。默认:none。
pid_file你想用来存进程 ID 文件的位置。如果没有指定,PID 文件存在/var/run/kibana.pid。默认:none。


备注:
材料来自elastic官网。
参考整理:
http://kibana.logstash.es/content/kibana/v4/settings.html
原文地址:
https://www.elastic.co/guide/en/kibana/current/kibana-server-properties.html


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
安装Kibana时出现"-bash4.2"的提示是因为在使用docker exec命令进入后台运行的docker容器时,引起了Shell环境变量的变化。在默认情况下,进入docker容器后,会使用容器内的默认Shell环境(在这种情况下是bash-4.2)。 如果你希望退出容器时能够使用原来的Shell环境,可以在使用docker exec命令时指定使用特定的Shell,例如使用/bin/bash命令进行进入: ``` docker exec -it node1 /bin/bash ``` 这将使你进入容器时使用的是/bin/bash环境,从而避免了出现-bash4.2的提示。 另外,对于其他可能导致该提示的情况,例如在添加普通用户时丢失了环境变量文件,可以通过从主默认文件夹/etc/skel/下重新拷贝一份配置信息到用户的家目录下来解决。你可以使用以下命令来拷贝配置信息文件: ``` cp /etc/skel/.bashrc /home/user/ cp /etc/skel/.bash_profile /home/user/ ``` 这将会将默认的.bashrc和.bash_profile文件拷贝到指定用户的家目录下,从而恢复环境变量的设置。 总结来说,当在安装Kibana时出现"-bash4.2"的提示时,是因为进入docker容器时使用了默认的Shell环境。你可以通过指定使用特定的Shell环境来解决这个问题,同时还可以检查并恢复可能丢失的环境变量文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [docker出现‘’bash-4.2$‘’的问题解决](https://blog.csdn.net/Gabriel576282253/article/details/106403920)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [使用docker安装ElasticSearch和kibana](https://blog.csdn.net/qq_45737419/article/details/119357667)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值