hi everyone,
i've started installing ELK on my VM machine ( ubuntu 18.04 ).
At first everything was okay, i started by installing elasticsearch and configuring some files etc.. but then moving on to Kibana i encountered this problem that i couldn't resolve.
so here is the error i'm receiving when i run kibana with this command:
' $ sudo /usr/share/kibana/bin/kibana --allow-root '
FATAL CLI ERROR Error: ENOENT: no such file or directory, open '/usr/share/kibana/config/kibana.yml'
at Object.openSync (fs.js:443:3)
at readFileSync (fs.js:343:35)
at readYaml (/usr/share/kibana/src/core/server/config/read_config.js:34:69)
at getConfigFromFiles (/usr/share/kibana/src/core/server/config/read_config.js:66:18)
at RawConfigService.loadConfig (/usr/share/kibana/src/core/server/config/raw_config_service.js:51:70)
at bootstrap (/usr/share/kibana/src/core/server/bootstrap.js:61:20)
at Command.<anonymous> (/usr/share/kibana/src/cli/serve/serve.js:195:33)
at Command.<anonymous> (/usr/share/kibana/src/cli/command.js:111:20)
at Command.listener (/usr/share/kibana/node_modules/commander/index.js:291:8)
at Command.emit (events.js:198:13)
at Command.parseArgs (/usr/share/kibana/node_modules/commander/index.js:672:12)
at Command.parse (/usr/share/kibana/node_modules/commander/index.js:459:21)
at Object.<anonymous> (/usr/share/kibana/src/cli/cli.js:60:9)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Module._compile (/usr/share/kibana/node_modules/pirates/lib/index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
and here is my kibana.yml file conf :
server.name: 'lab1'
server.host: '0.0.0.0'
server.port: 5601
server.maxPayloadBytes: 8388608
elasticsearch.hosts: ['http://127.0.0.1:9200']
elasticsearch.username: 'kibana'
elasticsearch.password: '18246397'
elasticsearch.requestTimeout: 132000
elasticsearch.shardTimeout: 120000
kibana.index: '.kibana'
#kibana.defaultAppId: 'dashboard/<dashboard_id>'
#logging.quiet: true
#logging.timezone: 'UTC'
vega.enableExternalUrls: true
console.enabled: true
xpack.security.enabled: true
xpack.security.audit.enabled: false
xpack.monitoring.enabled: true
xpack.monitoring.kibana.collection.enabled: true
xpack.monitoring.kibana.collection.interval: 30000
xpack.monitoring.ui.enabled: true
xpack.monitoring.min_interval_seconds: 30
#xpack.monitoring.ui.container.elasticsearch.enabled: 'false'
#xpack.apm.enabled: true
#xpack.apm.ui.enabled: true
xpack.grokdebugger.enabled: true
xpack.searchprofiler.enabled: true
xpack.graph.enabled: false
xpack.infra.enabled: true
#xpack.infra.sources.default.logAlias: 'filebeat-*'
#xpack.infra.sources.default.metricAlias: 'metricbeat-*'
#xpack.infra.sources.default.fields.timestamp: '@timestamp'
#xpack.infra.sources.default.fields.message: ['message','@message']
#xpack.infra.sources.default.fields.tiebreaker: '_doc'
#xpack.infra.sources.default.fields.host: 'beat.hostname'
#xpack.infra.sources.default.fields.container: 'docker.container.name'
#xpack.infra.sources.default.fields.pod: 'kubernetes.pod.name'
xpack.ml.enabled: false
xpack.reporting.enabled: false
#xpack.reporting.encryptionKey: ''
#xpack.spaces.enabled: true
#xpack.spaces.maxSpaces: 1000