Hi
Elastic,kibana 6.4.3
Centos 7.5
I am having problem with server.host parameter. It just won't work with hostname.
server.host: "someHostname.domain.com"
or
server.host: "someHostname"
Works with IP for example.
server.host: "192.168.1.5"
With hostname, I get this error when starting the service.
kibana[26938]: FATAL { ValidationError: child "server" fails because [child "host" fails because ["host" must be a valid hostname]]
kibana[26938]: at Object.exports.process (/usr/share/kibana/node_modules/joi/lib/errors.js:181:19)
kibana[26938]: at internals.Object._validateWithOptions (/usr/share/kibana/node_modules/joi/lib/any.js:651:31)
kibana[26938]: at module.exports.internals.Any.root.validate (/usr/share/kibana/node_modules/joi/lib/index.js:121:23)
kibana[26938]: at Config._commit (/usr/share/kibana/src/server/config/config.js:138:35)
kibana[26938]: at Config.set (/usr/share/kibana/src/server/config/config.js:108:10)
kibana[26938]: at Config.extendSchema (/usr/share/kibana/src/server/config/config.js:81:10)
kibana[26938]: at _lodash2.default.each.child (/usr/share/kibana/src/server/config/config.js:70:14)
kibana[26938]: at arrayEach (/usr/share/kibana/node_modules/lodash/index.js:1311:13)
kibana[26938]: at Function. (/usr/share/kibana/node_modules/lodash/index.js:3389:13)
kibana[26938]: at Config.extendSchema (/usr/share/kibana/src/server/config/config.js:69:31)
kibana[26938]: at new Config (/usr/share/kibana/src/server/config/config.js:60:10)
kibana[26938]: at Function.withDefaultSchema (/usr/share/kibana/src/server/config/config.js:53:12)
kibana[26938]: at
kibana[26938]: at process._tickCallback (internal/process/next_tick.js:188:7)
kibana[26938]: at Function.Module.runMain (module.js:695:11)
kibana[26938]: at startup (bootstrap_node.js:191:16)
kibana[26938]: at bootstrap_node.js:612:3
kibana[26938]: isJoi: true,
kibana[26938]: name: 'ValidationError',
kibana[26938]: details:
kibana[26938]: [ { message: '"host" must be a valid hostname',
kibana[26938]: path: 'server.host',
kibana[26938]: type: 'string.hostname',
kibana[26938]: context: [Object] } ],
kibana[26938]: _object:
kibana[26938]: { pkg:
kibana[26938]: { version: '6.4.3',
kibana[26938]: branch: '6.4',
kibana[26938]: buildNum: 18044,
kibana[26938]: buildSha: '968768f01f873fec244749abc3c6e939d0e3eda0' },
kibana[26938]: dev: { basePathProxyTarget: 5603 },
kibana[26938]: pid: { exclusive: false },
kibana[26938]: cpu: undefined,
kibana[26938]: cpuacct: undefined,
kibana[26938]: server:
kibana[26938]: { port: 5601,
kibana[26938]: host: 'someHostname.domain.com',
kibana[26938]: defaultRoute: '/app/monitoring' } },
kibana[26938]: annotate: [Function] }
systemd[1]: kibana.service: main process exited, code=exited, status=1/FAILURE
systemd[1]: Unit kibana.service entered failed state.
systemd[1]: kibana.service failed.
systemd[1]: kibana.service holdoff time over, scheduling restart.
systemd[1]: Started Kibana.
systemd[1]: Starting Kibana...
In linux, /etc/hostname has entry for full hostname (with domain), so for example:
Regards
Raul