相关文章:
- 32 位 CentOS 6.7 安装 Elasticsearch 7(单机)
要注意的是 Kibana 最好与 ES 版本要契合。
下载地址:https://www.elastic.co/fr/downloads/kibana
修改 config/kibana.yml 配置文件:
修改为当前服务器 IP 和 ES 所在 IP。
Kibana 默认启动端口是 5601。
启动 Kibana:
[root@MiWiFi-R4CM-srv config]# cd ../bin/
[root@MiWiFi-R4CM-srv bin]# ./kibana
./kibana: line 29: /usr/local/develope/kibana/kibana-7.9.2-linux-x86_64/bin/../node/bin/node: cannot execute binary file
./kibana: line 29: /usr/local/develope/kibana/kibana-7.9.2-linux-x86_64/bin/../node/bin/node: Succes
这是因为程序和系统的版本位数不一致。我就在我本机安装 Kibana。重新下载并且修改配置后启动 Kibana:
结果又出现:
再进行设置:
修改完成后重新启动 Kibana,出现了异常:
➜ kibana-7.9.2-darwin-x86_64 cd bin
➜ bin ./kibana
log [08:39:03.480] [warning][plugins-discovery] Expect plugin "id" in camelCase, but found: beats_management
log [08:39:03.492] [warning][plugins-discovery] Expect plugin "id" in camelCase, but found: triggers_actions_ui
log [08:39:14.111] [info][plugins-service] Plugin "visTypeXy" is disabled.
log [08:39:14.112] [info][plugins-service] Plugin "auditTrail" is disabled.
log [08:39:14.476] [warning][config][deprecation] Config key [monitoring.cluster_alerts.email_notifications.email_address] will be required for email notifications to work in 8.0."
log [08:39:14.562] [info][plugins-system] Setting up [92] plugins: [taskManager,licensing,observability,globalSearch,globalSearchProviders,code,usageCollection,ossTelemetry,telemetryCollectionManager,telemetry,telemetryCollectionXpack,kibanaUsageCollection,newsfeed,mapsLegacy,kibanaLegacy,translations,timelion,share,legacyExport,esUiShared,charts,bfetch,expressions,data,home,cloud,console,consoleExtensions,apmOss,searchprofiler,painlessLab,grokdebugger,management,upgradeAssistant,licenseManagement,watcher,indexPatternManagement,advancedSettings,fileUpload,dataEnhanced,savedObjects,visualizations,visualize,visTypeVislib,visTypeTimeseries,visTypeVega,visTypeTimelion,features,security,snapshotRestore,reporting,enterpriseSearch,encryptedSavedObjects,ingestManager,indexManagement,rollup,remoteClusters,crossClusterReplication,indexLifecycleManagement,beats_management,transform,ingestPipelines,maps,graph,canvas,visTypeTagcloud,visTypeMetric,visTypeMarkdown,visTypeTable,tileMap,regionMap,inputControlVis,discover,discoverEnhanced,dashboard,lens,dashboardMode,savedObjectsManagement,spaces,lists,eventLog,actions,case,alerts,alertingBuiltins,ml,securitySolution,infra,monitoring,logstash,apm,uptime]
log [08:39:14.760] [warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
log [08:39:14.761] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended.
log [08:39:14.795] [warning][config][plugins][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.reporting.encryptionKey in kibana.yml
log [08:39:14.796] [info][config][plugins][reporting] Chromium sandbox provides an additional layer of protection, and is supported for Darwin OS. Automatically enabling Chromium sandbox.
log [08:39:14.799] [warning][config][encryptedSavedObjects][plugins] Generating a random key for xpack.encryptedSavedObjects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml
log [08:39:14.803] [warning][ingestManager][plugins] Fleet APIs are disabled due to the Encrypted Saved Objects plugin using an ephemeral encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml.
log [08:39:14.865] [warning][actions][actions][plugins] APIs are disabled due to the Encrypted Saved Objects plugin using an ephemeral encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml.
log [08:39:14.880] [warning][alerting][alerts][plugins][plugins] APIs are disabled due to the Encrypted Saved Objects plugin using an ephemeral encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml.
log [08:39:15.003] [info][monitoring][monitoring][plugins] config sourced from: production cluster
log [08:39:15.687] [info][savedobjects-service] Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations...
log [08:39:15.690] [info][savedobjects-service] Starting saved objects migrations
log [08:39:15.815] [info][savedobjects-service] Creating index .kibana_task_manager_1.
log [08:39:16.016] [warning][savedobjects-service] Unable to connect to Elasticsearch. Error: [resource_already_exists_exception] index [.kibana_task_manager_1/W77PCxPuTXSE9qMm0Jmg8Q] already exists, with { index_uuid="W77PCxPuTXSE9qMm0Jmg8Q" & index=".kibana_task_manager_1" }
log [08:39:16.018] [warning][savedobjects-service] Another Kibana instance appears to be migrating the index. Waiting for that migration to complete. If no other Kibana instance is attempting migrations, you can get past this message by deleting index .kibana_task_manager_1 and restarting Kibana.
有一个异常信息:
log [08:39:16.016] [warning][savedobjects-service] Unable to connect to Elasticsearch. Error: [resource_already_exists_exception] index [.kibana_task_manager_1/W77PCxPuTXSE9qMm0Jmg8Q] already exists, with { index_uuid="W77PCxPuTXSE9qMm0Jmg8Q" & index=".kibana_task_manager_1" }
查看下这个索引是否存在:
的确是存在,那么将这个索引删除:
➜ bin curl -XDELETE -u elastic:changeme http://10.224.221.68:9200/.kibana_task_manager_1
{"acknowledged":true}%
查看是否删除成功:
再启动 Kibana,访问:
References
- https://learnku.com/articles/46345