I'm almost giving up, when I enabled http.port pointing to the IP address of elastic, gave this error ai now, but commented again the line http.port but the error persists now, I did not make any change in kibana.yml, only in Elasticsearch.yml in the line http.port
errors logs kibana
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:23:25.382+00:00","message":"Setting up [112] plugins: [translations,licensing,globalSearch,globalSearchProviders,features,mapsEms,licenseApiGuard,usageCollection,taskManager,telemetryCollectionManager,telemetryCollectionXpack,kibanaUsageCollection,sharedUX,share,embeddable,uiActionsEnhanced,screenshotMode,screenshotting,banners,telemetry,newsfeed,fieldFormats,expressions,dataViews,charts,esUiShared,bfetch,data,savedObjects,presentationUtil,expressionShape,expressionRevealImage,expressionRepeatImage,expressionMetric,expressionImage,customIntegrations,home,searchprofiler,painlessLab,grokdebugger,management,watcher,licenseManagement,advancedSettings,spaces,security,savedObjectsTagging,reporting,lists,fileUpload,ingestPipelines,encryptedSavedObjects,dataEnhanced,cloud,snapshotRestore,eventLog,actions,alerting,triggersActionsUi,transform,stackAlerts,ruleRegistry,savedObjectsManagement,console,controls,graph,fleet,indexManagement,remoteClusters,crossClusterReplication,indexLifecycleManagement,visualizations,canvas,visTypeXy,visTypeVislib,visTypeVega,visTypeTimeseries,rollup,visTypeTimelion,visTypeTagcloud,visTypeTable,visTypeMetric,visTypeHeatmap,visTypeMarkdown,dashboard,maps,dashboardEnhanced,expressionTagcloud,expressionPie,visTypePie,expressionMetricVis,expressionHeatmap,expressionGauge,dataViewFieldEditor,lens,cases,timelines,discover,osquery,observability,discoverEnhanced,dataVisualizer,ml,uptime,securitySolution,infra,upgradeAssistant,monitoring,logstash,enterpriseSearch,apm,dataViewManagement]","log":{"level":"INFO","logger":"plugins-system.standard"},"process":{"pid":1859},"trace":{"id":"60e702579126ad1b21d2e43c5b440ed5"},"transaction":{"id":"e1a738a8f9a19a2d"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:23:25.403+00:00","message":"TaskManager is identified by the Kibana UUID: c70bee51-986a-4f13-9d3b-ea8d50deb5c3","log":{"level":"INFO","logger":"plugins.taskManager"},"process":{"pid":1859},"trace":{"id":"60e702579126ad1b21d2e43c5b440ed5"},"transaction":{"id":"e1a738a8f9a19a2d"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:23:25.606+00:00","message":"Session cookies will be transmitted over insecure connections. This is not recommended.","log":{"level":"WARN","logger":"plugins.security.config"},"process":{"pid":1859},"trace":{"id":"60e702579126ad1b21d2e43c5b440ed5"},"transaction":{"id":"e1a738a8f9a19a2d"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:23:25.641+00:00","message":"Session cookies will be transmitted over insecure connections. This is not recommended.","log":{"level":"WARN","logger":"plugins.security.config"},"process":{"pid":1859},"trace":{"id":"60e702579126ad1b21d2e43c5b440ed5"},"transaction":{"id":"e1a738a8f9a19a2d"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:23:25.762+00:00","message":"Installing common resources shared between all indices","log":{"level":"INFO","logger":"plugins.ruleRegistry"},"process":{"pid":1859},"trace":{"id":"60e702579126ad1b21d2e43c5b440ed5"},"transaction":{"id":"e1a738a8f9a19a2d"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:23:27.226+00:00","message":"Chromium sandbox provides an additional layer of protection, and is supported for Linux Ubuntu 20.04 OS. Automatically enabling Chromium sandbox.","log":{"level":"INFO","logger":"plugins.screenshotting.config"},"process":{"pid":1859},"trace":{"id":"60e702579126ad1b21d2e43c5b440ed5"},"transaction":{"id":"e1a738a8f9a19a2d"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:23:28.516+00:00","message":"Unable to retrieve version information from Elasticsearch nodes. connect ECONNREFUSED 10.116.0.2:9200","log":{"level":"ERROR","logger":"elasticsearch-service"},"process":{"pid":1859},"trace":{"id":"60e702579126ad1b21d2e43c5b440ed5"},"transaction":{"id":"e1a738a8f9a19a2d"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:23:33.023+00:00","message":"Browser executable: /usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell","log":{"level":"INFO","logger":"plugins.screenshotting.chromium"},"process":{"pid":1859},"trace":{"id":"60e702579126ad1b21d2e43c5b440ed5"},"transaction":{"id":"e1a738a8f9a19a2d"}}
{"process":{"pid":1950,"path":"/run/kibana/kibana.pid"},"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:26:55.626+00:00","message":"pid file already exists at /run/kibana/kibana.pid","log":{"level":"WARN","logger":"environment"},"trace":{"id":"7eea6aa939aba1161d891a51649d2302"},"transaction":{"id":"2633b838d7c05a4f"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:27:08.525+00:00","message":"Plugin \"metricsEntities\" is disabled.","log":{"level":"INFO","logger":"plugins-service"},"process":{"pid":1950},"trace":{"id":"7eea6aa939aba1161d891a51649d2302"},"transaction":{"id":"2633b838d7c05a4f"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:27:08.655+00:00","message":"http server running at http://159.223.167.255:5601","log":{"level":"INFO","logger":"http.server.Preboot"},"process":{"pid":1950},"trace":{"id":"7eea6aa939aba1161d891a51649d2302"},"transaction":{"id":"2633b838d7c05a4f"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:27:08.753+00:00","message":"Setting up [1] plugins: [interactiveSetup]","log":{"level":"INFO","logger":"plugins-system.preboot"},"process":{"pid":1950},"trace":{"id":"7eea6aa939aba1161d891a51649d2302"},"transaction":{"id":"2633b838d7c05a4f"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:27:08.824+00:00","message":"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.","log":{"level":"WARN","logger":"config.deprecation"},"process":{"pid":1950},"trace":{"id":"90c201ad5ef8a540b4bc1eb2a9cc5eaf"},"transaction":{"id":"a6823a7219881e8b"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:27:09.079+00:00","message":"Setting up [112] plugins: [translations,licensing,globalSearch,globalSearchProviders,features,mapsEms,licenseApiGuard,usageCollection,taskManager,telemetryCollectionManager,telemetryCollectionXpack,kibanaUsageCollection,sharedUX,share,embeddable,uiActionsEnhanced,screenshotMode,screenshotting,banners,telemetry,newsfeed,fieldFormats,expressions,dataViews,charts,esUiShared,bfetch,data,savedObjects,presentationUtil,expressionShape,expressionRevealImage,expressionRepeatImage,expressionMetric,expressionImage,customIntegrations,home,searchprofiler,painlessLab,grokdebugger,management,watcher,licenseManagement,advancedSettings,spaces,security,savedObjectsTagging,reporting,lists,fileUpload,ingestPipelines,encryptedSavedObjects,dataEnhanced,cloud,snapshotRestore,eventLog,actions,alerting,triggersActionsUi,transform,stackAlerts,ruleRegistry,savedObjectsManagement,console,controls,graph,fleet,indexManagement,remoteClusters,crossClusterReplication,indexLifecycleManagement,visualizations,canvas,visTypeXy,visTypeVislib,visTypeVega,visTypeTimeseries,rollup,visTypeTimelion,visTypeTagcloud,visTypeTable,visTypeMetric,visTypeHeatmap,visTypeMarkdown,dashboard,maps,dashboardEnhanced,expressionTagcloud,expressionPie,visTypePie,expressionMetricVis,expressionHeatmap,expressionGauge,dataViewFieldEditor,lens,cases,timelines,discover,osquery,observability,discoverEnhanced,dataVisualizer,ml,uptime,securitySolution,infra,upgradeAssistant,monitoring,logstash,enterpriseSearch,apm,dataViewManagement]","log":{"level":"INFO","logger":"plugins-system.standard"},"process":{"pid":1950},"trace":{"id":"90c201ad5ef8a540b4bc1eb2a9cc5eaf"},"transaction":{"id":"a6823a7219881e8b"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:27:09.107+00:00","message":"TaskManager is identified by the Kibana UUID: c70bee51-986a-4f13-9d3b-ea8d50deb5c3","log":{"level":"INFO","logger":"plugins.taskManager"},"process":{"pid":1950},"trace":{"id":"90c201ad5ef8a540b4bc1eb2a9cc5eaf"},"transaction":{"id":"a6823a7219881e8b"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:27:09.337+00:00","message":"Session cookies will be transmitted over insecure connections. This is not recommended.","log":{"level":"WARN","logger":"plugins.security.config"},"process":{"pid":1950},"trace":{"id":"90c201ad5ef8a540b4bc1eb2a9cc5eaf"},"transaction":{"id":"a6823a7219881e8b"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:27:09.378+00:00","message":"Session cookies will be transmitted over insecure connections. This is not recommended.","log":{"level":"WARN","logger":"plugins.security.config"},"process":{"pid":1950},"trace":{"id":"90c201ad5ef8a540b4bc1eb2a9cc5eaf"},"transaction":{"id":"a6823a7219881e8b"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:27:09.495+00:00","message":"Installing common resources shared between all indices","log":{"level":"INFO","logger":"plugins.ruleRegistry"},"process":{"pid":1950},"trace":{"id":"90c201ad5ef8a540b4bc1eb2a9cc5eaf"},"transaction":{"id":"a6823a7219881e8b"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:27:10.506+00:00","message":"Chromium sandbox provides an additional layer of protection, and is supported for Linux Ubuntu 20.04 OS. Automatically enabling Chromium sandbox.","log":{"level":"INFO","logger":"plugins.screenshotting.config"},"process":{"pid":1950},"trace":{"id":"90c201ad5ef8a540b4bc1eb2a9cc5eaf"},"transaction":{"id":"a6823a7219881e8b"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:27:11.318+00:00","message":"Unable to retrieve version information from Elasticsearch nodes. connect ECONNREFUSED 10.116.0.2:9200","log":{"level":"ERROR","logger":"elasticsearch-service"},"process":{"pid":1950},"trace":{"id":"90c201ad5ef8a540b4bc1eb2a9cc5eaf"},"transaction":{"id":"a6823a7219881e8b"}}
{"ecs":{"version":"8.0.0"},"@timestamp":"2022-04-01T19:27:15.163+00:00","message":"Browser executable: /usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell","log":{"level":"INFO","logger":"plugins.screenshotting.chromium"},"process":{"pid":1950},"trace":{"id":"90c201ad5ef8a540b4bc1eb2a9cc5eaf"},"transaction":{"id":"a6823a7219881e8b"}}