Elasticsearch Kibana

Hi Team, I was deployed Elasticsearch cluster with one master node one data node on docker with version of 8.8.1 When i am trying to add that into Kibana I am getting an error.

[2023-11-13T04:55:05.704+00:00][WARN ][savedobjects-service] Unable to connect to Elasticsearch. Error: index_not_found_exception
        Root causes:
                index_not_found_exception: no such index [.kibana]

kibana.yml file

server.name: kibana
server.host: "0.0.0.0"
elasticsearch.hosts: "https://x.x.x.x:9200"
monitoring.ui.container.elasticsearch.enabled: true
elasticsearch.ssl.verificationMode: none
elasticsearch.username: user
elasticsearch.password: password 

@dadoonet can you please look into this.

Not sure what you mean add that into... But your Kibana can not connect to elasticsearch.

Exec into the Kibana container and try to curl the elasticsearch

curl -k -u user https://elasticsearchip:9200

What is the result

@stephenb Result cluster info by giving the above curl command.

[2023-11-13T06:39:42.704+00:00][INFO ][node] Kibana process configured with roles: [background_tasks, ui]
[2023-11-13T06:39:56.699+00:00][INFO ][plugins-service] Plugin "cloudChat" is disabled.
[2023-11-13T06:39:56.702+00:00][INFO ][plugins-service] Plugin "cloudExperiments" is disabled.
[2023-11-13T06:39:56.702+00:00][INFO ][plugins-service] Plugin "cloudFullStory" is disabled.
[2023-11-13T06:39:56.702+00:00][INFO ][plugins-service] Plugin "cloudGainsight" is disabled.
[2023-11-13T06:39:56.744+00:00][INFO ][plugins-service] Plugin "profiling" is disabled.
[2023-11-13T06:39:56.908+00:00][INFO ][http.server.Preboot] http server running at http://0.0.0.0:5601
[2023-11-13T06:39:57.081+00:00][INFO ][plugins-system.preboot] Setting up [1] plugins: [interactiveSetup]
[2023-11-13T06:39:57.125+00:00][WARN ][config.deprecation] The default mechanism for Reporting privileges will work differently in future versions, which will affect the behavior of this cluster. Set "xpack.reporting.roles.enabled" to "false" to adopt the future behavior before upgrading.
[2023-11-13T06:39:57.902+00:00][INFO ][plugins-system.standard] Setting up [136] plugins: [usageCollection,telemetryCollectionManager,telemetryCollectionXpack,taskManager,kibanaUsageCollection,cloud,translations,share,screenshotMode,newsfeed,savedObjectsFinder,monitoringCollection,licensing,mapsEms,globalSearch,globalSearchProviders,features,guidedOnboarding,banners,licenseApiGuard,customBranding,ftrApis,fieldFormats,expressions,screenshotting,dataViews,charts,esUiShared,customIntegrations,home,searchprofiler,painlessLab,management,cloudDataMigration,advancedSettings,spaces,security,telemetry,licenseManagement,snapshotRestore,lists,files,encryptedSavedObjects,eventLog,actions,notifications,grokdebugger,console,contentManagement,bfetch,data,watcher,unifiedFieldList,savedSearch,savedObjectsTagging,savedObjectsManagement,unifiedSearch,graph,embeddable,uiActionsEnhanced,presentationUtil,expressionShape,expressionRevealImage,expressionRepeatImage,expressionMetric,expressionImage,controls,fileUpload,ingestPipelines,eventAnnotation,ecsDataQualityDashboard,dataViewFieldEditor,visualizations,visTypeXy,visTypeVislib,visTypeVega,visTypeTimeseries,visTypeTimelion,visTypeTagcloud,visTypeTable,visTypeMetric,visTypeMarkdown,visTypeHeatmap,expressionXY,expressionTagcloud,expressionPartitionVis,visTypePie,expressionMetricVis,expressionLegacyMetricVis,expressionHeatmap,expressionGauge,visTypeGauge,dashboard,lens,maps,aiops,dashboardEnhanced,dataViewManagement,alerting,triggersActionsUi,transform,stackConnectors,stackAlerts,ruleRegistry,cases,timelines,sessionView,kubernetesSecurity,threatIntelligence,discover,reporting,canvas,fleet,osquery,indexManagement,rollup,remoteClusters,crossClusterReplication,indexLifecycleManagement,cloudSecurityPosture,cloudDefend,exploratoryView,observability,observabilityOnboarding,discoverEnhanced,dataVisualizer,ml,synthetics,securitySolution,infra,upgradeAssistant,monitoring,logstash,enterpriseSearch,apm,assetManager]
[2023-11-13T06:39:57.910+00:00][INFO ][plugins.taskManager] TaskManager is identified by the Kibana UUID: 76fbe640-ae2c-459b-8ba6-00f9fb783fbc
[2023-11-13T06:39:57.950+00:00][INFO ][custom-branding-service] CustomBrandingService registering plugin: customBranding
[2023-11-13T06:39:58.026+00:00][WARN ][plugins.security.config] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2023-11-13T06:39:58.027+00:00][WARN ][plugins.security.config] Session cookies will be transmitted over insecure connections. This is not recommended.
[2023-11-13T06:39:58.059+00:00][WARN ][plugins.security.config] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2023-11-13T06:39:58.060+00:00][WARN ][plugins.security.config] Session cookies will be transmitted over insecure connections. This is not recommended.
[2023-11-13T06:39:58.080+00:00][WARN ][plugins.encryptedSavedObjects] Saved objects encryption key is not set. This will severely limit Kibana functionality. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2023-11-13T06:39:58.086+00:00][WARN ][plugins.actions] APIs are disabled because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2023-11-13T06:39:58.091+00:00][INFO ][plugins.notifications] Email Service Error: Email connector not specified.
[2023-11-13T06:39:58.490+00:00][WARN ][plugins.alerting] APIs are disabled because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2023-11-13T06:39:58.579+00:00][WARN ][plugins.reporting.config] Generating a random key for xpack.reporting.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.reporting.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2023-11-13T06:39:58.580+00:00][WARN ][plugins.reporting.config] Found 'server.host: "0.0.0.0"' in Kibana configuration. Reporting is not able to use this as the Kibana server hostname. To enable PNG/PDF Reporting to work, 'xpack.reporting.kibanaServer.hostname: localhost' is automatically set in the configuration. You can prevent this message by adding 'xpack.reporting.kibanaServer.hostname: localhost' in kibana.yml.
[2023-11-13T06:39:58.649+00:00][INFO ][plugins.cloudSecurityPosture] Registered task successfully [Task: cloud_security_posture-stats_task]
[2023-11-13T06:39:58.658+00:00][INFO ][plugins.alerting] Registering resources for context "observability.slo".
[2023-11-13T06:39:58.701+00:00][INFO ][plugins.alerting] Registering resources for context "observability.uptime".
[2023-11-13T06:39:58.732+00:00][INFO ][plugins.alerting] Registering resources for context "security".
[2023-11-13T06:39:58.781+00:00][INFO ][plugins.alerting] Registering resources for context "observability.logs".
[2023-11-13T06:39:58.783+00:00][INFO ][plugins.alerting] Registering resources for context "observability.metrics".
[2023-11-13T06:39:58.913+00:00][INFO ][plugins.alerting] Registering resources for context "observability.apm".
[2023-11-13T06:39:58.916+00:00][INFO ][plugins.assetManager] Asset manager plugin [tech preview] is NOT enabled
[2023-11-13T06:39:59.101+00:00][INFO ][plugins.screenshotting.config] Chromium sandbox provides an additional layer of protection, and is supported for Linux Ubuntu 20.04 OS. Automatically enabling Chromium sandbox.
[2023-11-13T06:39:59.312+00:00][INFO ][savedobjects-service] Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations...
[2023-11-13T06:39:59.313+00:00][INFO ][savedobjects-service] Starting saved objects migrations
[2023-11-13T06:39:59.449+00:00][INFO ][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK. took: 69ms.
[2023-11-13T06:39:59.451+00:00][INFO ][savedobjects-service] [.kibana_alerting_cases] INIT -> CREATE_REINDEX_TEMP. took: 49ms.
[2023-11-13T06:39:59.476+00:00][INFO ][savedobjects-service] [.kibana_analytics] INIT -> CREATE_REINDEX_TEMP. took: 85ms.
[2023-11-13T06:39:59.478+00:00][INFO ][savedobjects-service] [.kibana_ingest] INIT -> CREATE_REINDEX_TEMP. took: 71ms.
[2023-11-13T06:39:59.480+00:00][INFO ][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 94ms.
[2023-11-13T06:39:59.486+00:00][INFO ][savedobjects-service] [.kibana_security_solution] INIT -> CREATE_REINDEX_TEMP. took: 89ms.
[2023-11-13T06:39:59.598+00:00][INFO ][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET. took: 149ms.
[2023-11-13T06:40:00.338+00:00][INFO ][plugins.screenshotting.chromium] Browser executable: /usr/share/kibana/node_modules/@kbn/screenshotting-plugin/chromium/headless_shell-linux_x64/headless_shell
[2023-11-13T06:40:59.574+00:00][ERROR][savedobjects-service] [.kibana_alerting_cases] Action failed with '[index_not_green_timeout] Timeout waiting for the status of the [.kibana_alerting_cases_8.8.1_reindex_temp] index to become 'green' Refer to https://www.elastic.co/guide/en/kibana/8.8/resolve-migrations-failures.html#_repeated_time_out_requests_that_eventually_fail for information on how to resolve the issue.'. Retrying attempt 1 in 2 seconds.
[2023-11-13T06:40:59.575+00:00][INFO ][savedobjects-service] [.kibana_alerting_cases] CREATE_REINDEX_TEMP -> CREATE_REINDEX_TEMP. took: 60123ms.
[2023-11-13T06:40:59.583+00:00][ERROR][savedobjects-service] [.kibana_security_solution] Action failed with '[index_not_green_timeout] Timeout waiting for the status of the [.kibana_security_solution_8.8.1_reindex_temp] index to become 'green' Refer to https://www.elastic.co/guide/en/kibana/8.8/resolve-migrations-failures.html#_repeated_time_out_requests_that_eventually_fail for information on how to resolve the issue.'. Retrying attempt 1 in 2 seconds.
[2023-11-13T06:40:59.583+00:00][INFO ][savedobjects-service] [.kibana_security_solution] CREATE_REINDEX_TEMP -> CREATE_REINDEX_TEMP. took: 60097ms.
[2023-11-13T06:40:59.584+00:00][ERROR][savedobjects-service] [.kibana_analytics] Action failed with '[index_not_green_timeout] Timeout waiting for the status of the [.kibana_analytics_8.8.1_reindex_temp] index to become 'green' Refer to https://www.elastic.co/guide/en/kibana/8.8/resolve-migrations-failures.html#_repeated_time_out_requests_that_eventually_fail for information on how to resolve the issue.'. Retrying attempt 1 in 2 seconds.
[2023-11-13T06:40:59.584+00:00][INFO ][savedobjects-service] [.kibana_analytics] CREATE_REINDEX_TEMP -> CREATE_REINDEX_TEMP. took: 60108ms.
[2023-11-13T06:40:59.586+00:00][ERROR][savedobjects-service] [.kibana_task_manager] Action failed with '[index_not_green_timeout] Timeout waiting for the status of the [.kibana_task_manager_8.8.1_001] index to become 'green' Refer to https://www.elastic.co/guide/en/kibana/8.8/resolve-migrations-failures.html#_repeated_time_out_requests_that_eventually_fail for information on how to resolve the issue.'. Retrying attempt 1 in 2 seconds.
[2023-11-13T06:40:59.586+00:00][INFO ][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> CREATE_NEW_TARGET. took: 60106ms.
[2023-11-13T06:40:59.587+00:00][ERROR][savedobjects-service] [.kibana_ingest] Action failed with '[index_not_green_timeout] Timeout waiting for the status of the [.kibana_ingest_8.8.1_reindex_temp] index to become 'green' Refer to https://www.elastic.co/guide/en/kibana/8.8/resolve-migrations-failures.html#_repeated_time_out_requests_that_eventually_fail for information on how to resolve the issue.'. Retrying attempt 1 in 2 seconds.
[2023-11-13T06:40:59.587+00:00][INFO ][savedobjects-service] [.kibana_ingest] CREATE_REINDEX_TEMP -> CREATE_REINDEX_TEMP. took: 60109ms.
[2023-11-13T06:40:59.982+00:00][ERROR][savedobjects-service] [.kibana] Action failed with '[index_not_green_timeout] Timeout waiting for the status of the [.kibana_pre6.5.0_001] index to become 'green' Refer to https://www.elastic.co/guide/en/kibana/8.8/resolve-migrations-failures.html#_repeated_time_out_requests_that_eventually_fail for information on how to resolve the issue.'. Retrying attempt 1 in 2 seconds

That is Kibana logs not the results of curl command

You can also just try curl from your normal command line but it's a better test to do it from inside the Kibana container.

Curl command result was i can be able to see Elasticsearch cluster info. that's why i replied your question


and due to sensitive info i can past here. as well for reference i pasted Kibana logs here. however, i was resolved that issue by myself. thanks for your response.

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