Exiting: error connecting to Kibana: fail to get the Kibana version: fail to parse kibana version (): passed version is not semver:

Hello,

I'm trying to follow:

yet running into following error:

Exiting: error connecting to Kibana: fail to get the Kibana version: fail to parse kibana version (): passed version is not semver:

alexus@mbp kalei % kubectl --context docker-desktop --namespace kube-system exec -it filebeat-kg9j7 -- bash
root@linuxkit-0621db5927cf:/usr/share/filebeat# filebeat -e -E output.elasticsearch.protocol=https -E output.elasticsearch.ssl.verification_mode=none -E output.elasticsearch.hosts=dd-es-http.default.svc.cluster.local -E setup.kibana.host=https://dd-kb-http.default.svc.cluster.local -E setup.kibana.ssl.verification_mode=none setup --dashboards
{"log.level":"info","@timestamp":"2023-11-16T01:25:05.111Z","log.origin":{"file.name":"instance/beat.go","file.line":806},"message":"Home path: [/usr/share/filebeat] Config path: [/usr/share/filebeat] Data path: [/usr/share/filebeat/data] Logs path: [/usr/share/filebeat/logs]","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2023-11-16T01:25:05.111Z","log.origin":{"file.name":"instance/beat.go","file.line":814},"message":"Beat ID: f55b0911-ccff-46dd-8062-d366d472b8c4","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2023-11-16T01:25:25.126Z","log.origin":{"file.name":"instance/beat.go","file.line":826},"message":"unable to lookup FQDN: could not get FQDN, all methods failed: failed looking up CNAME: lookup linuxkit-0621db5927cf on 10.96.0.10:53: read udp 192.168.65.3:63153->10.96.0.10:53: i/o timeout: failed looking up IP: lookup linuxkit-0621db5927cf on 10.96.0.10:53: read udp 192.168.65.3:65301->10.96.0.10:53: i/o timeout, using hostname = linuxkit-0621db5927cf as FQDN","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2023-11-16T01:25:25.127Z","log.logger":"beat","log.origin":{"file.name":"instance/beat.go","file.line":1332},"message":"Beat info","service.name":"filebeat","system_info":{"beat":{"path":{"config":"/usr/share/filebeat","data":"/usr/share/filebeat/data","home":"/usr/share/filebeat","logs":"/usr/share/filebeat/logs"},"type":"filebeat","uuid":"f55b0911-ccff-46dd-8062-d366d472b8c4"},"ecs.version":"1.6.0"}}
{"log.level":"info","@timestamp":"2023-11-16T01:25:25.127Z","log.logger":"beat","log.origin":{"file.name":"instance/beat.go","file.line":1341},"message":"Build info","service.name":"filebeat","system_info":{"build":{"commit":"19c8672c0a5bf2fb15648c0caf62d985af5a987f","libbeat":"8.11.1","time":"2023-11-10T19:23:39.000Z","version":"8.11.1"},"ecs.version":"1.6.0"}}
{"log.level":"info","@timestamp":"2023-11-16T01:25:25.127Z","log.logger":"beat","log.origin":{"file.name":"instance/beat.go","file.line":1344},"message":"Go runtime info","service.name":"filebeat","system_info":{"go":{"os":"linux","arch":"amd64","max_procs":16,"version":"go1.20.10"},"ecs.version":"1.6.0"}}
{"log.level":"info","@timestamp":"2023-11-16T01:25:25.129Z","log.logger":"beat","log.origin":{"file.name":"instance/beat.go","file.line":1350},"message":"Host info","service.name":"filebeat","system_info":{"host":{"architecture":"x86_64","boot_time":"2023-11-15T16:56:10Z","containerized":false,"name":"linuxkit-0621db5927cf","ip":["127.0.0.1","::1","192.168.65.3","fe80::421:dbff:fe59:27cf","192.168.65.6","fe80::bc88:58ff:fe0e:dad8","172.17.0.1","172.19.0.1","fe80::42:73ff:fe5e:dcdf","172.18.0.1","fe80::42:e7ff:fe16:69e0","fe80::74e5:edff:fea5:b130","fe80::4802:a0ff:fe54:18cc","10.1.0.1","fe80::413:5bff:fe29:509","fe80::50a2:85ff:fe41:9c50","fe80::b89b:ebff:fe6c:6fae","fe80::102a:60ff:feef:4f96","fe80::4080:a0ff:fe72:e81a","fe80::9002:98ff:fe5b:f82c","fe80::849c:d9ff:fe09:f89f","fe80::980d:c3ff:fe90:d216","fe80::c873:17ff:fee5:c9b0","172.20.0.1","fe80::42:4eff:fe34:1632","fe80::14c6:f8ff:fe02:8232","fe80::8033:46ff:fe12:bb6","fe80::ec5a:72ff:fefe:756e"],"kernel_version":"6.4.16-linuxkit","mac":["06:21:db:59:27:cf","be:88:58:0e:da:d8","02:42:64:6a:43:67","02:42:73:5e:dc:df","02:42:e7:16:69:e0","76:e5:ed:a5:b1:30","4a:02:a0:54:18:cc","06:13:5b:29:05:09","52:a2:85:41:9c:50","ba:9b:eb:6c:6f:ae","12:2a:60:ef:4f:96","42:80:a0:72:e8:1a","92:02:98:5b:f8:2c","86:9c:d9:09:f8:9f","9a:0d:c3:90:d2:16","ca:73:17:e5:c9:b0","02:42:4e:34:16:32","16:c6:f8:02:82:32","82:33:46:12:0b:b6","ee:5a:72:fe:75:6e"],"os":{"type":"linux","family":"debian","platform":"ubuntu","name":"Ubuntu","version":"20.04.6 LTS (Focal Fossa)","major":20,"minor":4,"patch":6,"codename":"focal"},"timezone":"UTC","timezone_offset_sec":0},"ecs.version":"1.6.0"}}
{"log.level":"info","@timestamp":"2023-11-16T01:25:25.130Z","log.logger":"beat","log.origin":{"file.name":"instance/beat.go","file.line":1379},"message":"Process info","service.name":"filebeat","system_info":{"process":{"capabilities":{"inheritable":null,"permitted":["chown","dac_override","fowner","fsetid","kill","setgid","setuid","setpcap","net_bind_service","net_raw","sys_chroot","mknod","audit_write","setfcap"],"effective":["chown","dac_override","fowner","fsetid","kill","setgid","setuid","setpcap","net_bind_service","net_raw","sys_chroot","mknod","audit_write","setfcap"],"bounding":["chown","dac_override","fowner","fsetid","kill","setgid","setuid","setpcap","net_bind_service","net_raw","sys_chroot","mknod","audit_write","setfcap"],"ambient":null},"cwd":"/usr/share/filebeat","exe":"/usr/share/filebeat/filebeat","name":"filebeat","pid":139,"ppid":131,"seccomp":{"mode":"disabled","no_new_privs":false},"start_time":"2023-11-16T01:25:04.900Z"},"ecs.version":"1.6.0"}}
{"log.level":"info","@timestamp":"2023-11-16T01:25:25.130Z","log.origin":{"file.name":"instance/beat.go","file.line":333},"message":"Setup Beat: filebeat; Version: 8.11.1","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2023-11-16T01:25:25.134Z","log.logger":"cfgwarn","log.origin":{"file.name":"tlscommon/config.go","file.line":102},"message":"DEPRECATED: Treating the CommonName field on X.509 certificates as a host name when no Subject Alternative Names are present is going to be removed. Please update your certificates if needed. Will be removed in version: 8.0.0","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2023-11-16T01:25:25.134Z","log.logger":"esclientleg","log.origin":{"file.name":"eslegclient/connection.go","file.line":122},"message":"elasticsearch url: https://dd-es-http.default.svc.cluster.local:9200","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2023-11-16T01:25:25.134Z","log.logger":"tls","log.origin":{"file.name":"tlscommon/tls_config.go","file.line":107},"message":"SSL/TLS verifications disabled.","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2023-11-16T01:25:25.135Z","log.logger":"publisher","log.origin":{"file.name":"pipeline/module.go","file.line":105},"message":"Beat name: linuxkit-0621db5927cf","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2023-11-16T01:25:25.135Z","log.logger":"modules","log.origin":{"file.name":"fileset/modules.go","file.line":135},"message":"Enabled modules/filesets: ","service.name":"filebeat","ecs.version":"1.6.0"}
Loading dashboards (Kibana must be running and reachable)
{"log.level":"info","@timestamp":"2023-11-16T01:25:25.135Z","log.logger":"kibana","log.origin":{"file.name":"kibana/client.go","file.line":183},"message":"Kibana url: https://dd-kb-http.default.svc.cluster.local:5601","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2023-11-16T01:25:25.135Z","log.logger":"tls","log.origin":{"file.name":"tlscommon/tls_config.go","file.line":107},"message":"SSL/TLS verifications disabled.","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2023-11-16T01:25:25.135Z","log.logger":"tls","log.origin":{"file.name":"tlscommon/tls_config.go","file.line":107},"message":"SSL/TLS verifications disabled.","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2023-11-16T01:25:25.225Z","log.origin":{"file.name":"instance/beat.go","file.line":1307},"message":"Exiting: error connecting to Kibana: fail to get the Kibana version: fail to parse kibana version (): passed version is not semver: ","service.name":"filebeat","ecs.version":"1.6.0"}
Exiting: error connecting to Kibana: fail to get the Kibana version: fail to parse kibana version (): passed version is not semver: 
root@linuxkit-0621db5927cf:/usr/share/filebeat# curl -Ik https://dd-kb-http.default.svc.cluster.local:5601/login
HTTP/1.1 200 OK
x-content-type-options: nosniff
referrer-policy: no-referrer-when-downgrade
permissions-policy: camera=(), display-capture=(), fullscreen=(self), geolocation=(), microphone=(), web-share=()
cross-origin-opener-policy: same-origin
content-security-policy: script-src 'self'; worker-src blob: 'self'; style-src 'unsafe-inline' 'self'
kbn-name: dd
kbn-license-sig: 1a1cdf66cb8e064458d6cfa0763392bbee5abb7978a05eb91b2c1869d7230bb7
content-type: text/html; charset=utf-8
cache-control: private, no-cache, no-store, must-revalidate
content-length: 99473
vary: accept-encoding
Date: Thu, 16 Nov 2023 01:25:35 GMT
Connection: keep-alive
Keep-Alive: timeout=120

root@linuxkit-0621db5927cf:/usr/share/filebeat#

Please advise

same issue. Did you solve?

filebeat -e -E output.elasticsearch.protocol=https -E output.elasticsearch.ssl.verification_mode=none -E output.elasticsearch.hosts=dd-es-http.default.svc.cluster.local -E setup.kibana.host=https://dd-kb-http.default.svc.cluster.local -E setup.kibana.ssl.verification_mode=none setup --dashboards

You didn't specify the Kibana port, so it will try to connect on port 443.

But here you correctly passed port 5601.

You should use port 5601 as well in your filebeat command.

I re-run following command, and now it's working (even w/out specifying port)

root@linuxkit-baae1e2b3f26:/usr/share/filebeat# filebeat -e -E output.elasticsearch.protocol=https -E output.elasticsearch.ssl.verification_mode=none -E output.elasticsearch.hosts=dd-es-http.default.svc.cluster.local -E setup.kibana.host=https://dd-kb-http.default.svc.cluster.local -E setup.kibana.ssl.verification_mode=none setup --dashboards

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