记 Kibana 生成报告时,经常出现.application timeout after 30s的错误 知识 Kibana

MagicQ 4月前 90

Kibana 做Elasticsearch的主要窗口,使用自身的插件能够完成很多工作。

日前在通过Kibana的 reporting 功能生成报告时,总出现如下错误:

起初我怀疑是Elasticsearch里的某个默认timeout值影响的,但是通过_cluster/settings?include_defaults 查找所有default timeout并没有找到符合的。

随后找Kiabana的配置项(此链接是4.5的版本,仅供参考,最新的配置请参考当前版本的kibana.yml文件),找到了elasticsearch.requestTimeout选项,设置其为60s解决timeout的值,注意不建议设置此timeout过大(当然对于负载不高的Elasticsearch几乎不会出现timeout情况)。

如下是所有Kibana的可选参数,从4.5往后很少有变化的,再次Mark一下。

server.port:

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

server.host:

Default: "0.0.0.0" This setting specifies the IP address of the back end server.

server.basePath:

Enables you to specify a path to mount Kibana at if you are running behind a proxy. This setting cannot end in a slash (/).

server.maxPayloadBytes:

Default: 1048576 The maximum payload size in bytes for incoming server requests.

elasticsearch.url:

Default: "http://localhost:9200" The URL of the Elasticsearch instance to use for all your queries.

elasticsearch.preserveHost:

Default: true When this setting’s value is true Kibana uses the hostname specified in the server.host setting. When the value of this setting is false, Kibana uses the hostname of the host that connects to this Kibana instance.

kibana.index:

Default: ".kibana" Kibana uses an index in Elasticsearch to store saved searches, visualizations and dashboards. Kibana creates a new index if the index doesn’t already exist.

kibana.defaultAppId:

Default: "discover" The default application to load.

tilemap.url:

Default: "https://tiles.elastic.co/v1/default/{z}/{x}/{y}.png?elastic_tile_service_tos=agree&my_app_name=kibana" The URL to the tile service that Kibana uses to display map tiles in tilemap visualizations. [4.5.3]Added in 4.5.3.

tilemap.options.minZoom:

Default: 1 The minimum zoom level. [4.5.3]Added in 4.5.3.

tilemap.options.maxZoom:

Default: 10 The maximum zoom level. [4.5.3]Added in 4.5.3.

tilemap.options.attribution:

Default: "© [Elastic Tile Service](https://www.elastic.co/elastic-tile-service)" The map attribution string. [4.5.3]Added in 4.5.3.

tilemap.options.subdomains:

An array of subdomains used by the tile service. Specify the position of the subdomain the URL with the token {s}. [4.5.3]Added in 4.5.3.

elasticsearch.username:and elasticsearch.password:

If your Elasticsearch is protected with basic authentication, these settings provide the username and password that the Kibana server uses to perform maintenance on the Kibana index at startup. Your Kibana users still need to authenticate with Elasticsearch, which is proxied through the Kibana server.

server.ssl.cert: and server.ssl.key:

Paths to the PEM-format SSL certificate and SSL key files, respectively. These files enable SSL for outgoing requests from the Kibana server to the browser.

elasticsearch.ssl.cert:and elasticsearch.ssl.key:

Optional settings that provide the paths to the PEM-format SSL certificate and key files. These files validate that your Elasticsearch backend uses the same key files.

elasticsearch.ssl.ca:

Optional setting that enables you to specify a path to the PEM file for the certificate authority for your Elasticsearch instance.

elasticsearch.ssl.verify:

Default: true To disregard the validity of SSL certificates, change this setting’s value to false.

elasticsearch.pingTimeout:

Default: the value of the elasticsearch.requestTimeout setting Time in milliseconds to wait for Elasticsearch to respond to pings.

elasticsearch.requestTimeout:

Default: 30000 Time in milliseconds to wait for responses from the back end or Elasticsearch. This value must be a positive integer.

elasticsearch.shardTimeout:

Default: 0 Time in milliseconds for Elasticsearch to wait for responses from shards. Set to 0 to disable.

elasticsearch.startupTimeout:

Default: 5000 Time in milliseconds to wait for Elasticsearch at Kibana startup before retrying.

pid.file:

Specifies the path where Kibana creates the process ID file.

logging.dest:

Default: stdout Enables you specify a file where Kibana stores log output.

logging.filter.<key>:

Default: authorization Replace <key> with the string to filter. Set the value of this setting to remove to remove matching keys from all logged objects. Set the value of this setting to censor to replace each character in the key’s value with an X character.

logging.silent:

Default: false Set the value of this setting to true to suppress all logging output.

logging.quiet:

Default: false Set the value of this setting to true to suppress all logging output other than error messages.

logging.verbose

Default: false Set the value of this setting to true to log all events, including system usage information and all requests.


最新回复 (0)
    • 运维开源项目互助社区—致敬开源
      2
        立即登录 立即注册 
返回