X-Pack Enabled Kibana not showingup Xpack features

Hi Team,

I have installed kibana and installed xpack on that. If I am starting the kibana as service (sudo systemctl restart kibana.service) the xpack menu on kibana such as monitoring, graph, machine learning, etc.

But if I am starting like cd /usr/share/kibana && bin/kibana, it will show up all of them.

Could you please let us know how can we get all these menu as part of service starting mode?

Sounds like the license can not be verified when deploying Kibana as a service. What messages are in the logs when starting Kibana? There should be license checks for x-pack applications. Do you see those? Are they successful?

Hey @Nathan_Reese,

Thanks for your response.

If we are starting the kibana using bin/kibana, we are getting all features of xpack and getting the logs as shown below,

25%20PM

  log   [17:28:41.453] [info][status][plugin:kibana@5.6.9] Status changed from uninitialized to green - Ready
  log   [17:28:41.559] [info][status][plugin:xpack_main@5.6.9] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [17:28:41.578] [info][status][plugin:graph@5.6.9] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [17:28:41.586] [info][status][plugin:monitoring@5.6.9] Status changed from uninitialized to green - Ready
  log   [17:28:41.743] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml
  log   [17:28:41.748] [info][status][plugin:reporting@5.6.9] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [17:28:41.787] [info][status][plugin:security@5.6.9] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [17:28:41.788] [warning][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
  log   [17:28:41.792] [warning][security] Session cookies will be transmitted over insecure connections. This is not recommended.
  log   [17:28:41.834] [info][status][plugin:searchprofiler@5.6.9] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [17:28:41.845] [info][status][plugin:ml@5.6.9] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [17:28:41.896] [info][status][plugin:ml@5.6.9] Status changed from yellow to green - Ready
  log   [17:28:41.902] [info][status][plugin:tilemap@5.6.9] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [17:28:42.009] [info][status][plugin:graph@5.6.9] Status changed from yellow to green - Ready
  log   [17:28:42.010] [info][status][plugin:reporting@5.6.9] Status changed from yellow to green - Ready
  log   [17:28:42.011] [info][status][plugin:security@5.6.9] Status changed from yellow to green - Ready
  log   [17:28:42.013] [info][status][plugin:searchprofiler@5.6.9] Status changed from yellow to green - Ready
  log   [17:28:42.014] [info][status][plugin:tilemap@5.6.9] Status changed from yellow to green - Ready
  log   [17:28:42.015] [info][status][plugin:watcher@5.6.9] Status changed from yellow to green - Ready
  log   [17:28:42.016] [info][status][plugin:upgrade@5.6.9] Status changed from yellow to green - Ready
  log   [17:28:42.031] [info][status][plugin:console@5.6.9] Status changed from uninitialized to green - Ready
  log   [17:28:42.052] [info][license][xpack] Imported license information from Elasticsearch for [monitoring] cluster: mode: platinum | status: active | expiry date: 2019-05-04T19:59:59-04:00
  log   [17:28:42.058] [info][status][plugin:monitoring@5.6.9] Status changed from yellow to green - Ready
  log   [17:28:42.074] [info][status][plugin:metrics@5.6.9] Status changed from uninitialized to green - Ready
  log   [17:28:42.513] [info][status][plugin:timelion@5.6.9] Status changed from uninitialized to green - Ready
  log   [17:28:42.518] [info][listening] Server running at http://0.0.0.0:5601
  log   [17:28:42.520] [info][status][ui settings] Status changed from uninitialized to green - Ready 

If we are starting kibana as a service (sudo systemctl restart kibana.service), we cannot see xpack features in kibana UI. Logs which we are getting is,

48%20AM

Jun 06 14:54:51 dev-mgt-elk-w2a-2 systemd[1]: Starting Kibana...
Jun 06 14:54:52 dev-mgt-elk-w2a-2 kibana[31130]: {"type":"log","@timestamp":"2018-06-06T18:54:52Z","tags":["plugins","warning"],"pid":31130,"path":"/usr/share/kibana/plugins/x-pack","message":"Skipping non-plugin directory at /usr/share/kibana/plugins/x-pack"}
Jun 06 14:54:53 dev-mgt-elk-w2a-2 kibana[31130]: {"type":"log","@timestamp":"2018-06-06T18:54:53Z","tags":["status","plugin:kibana@5.6.9","info"],"pid":31130,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
Jun 06 14:54:53 dev-mgt-elk-w2a-2 kibana[31130]: {"type":"log","@timestamp":"2018-06-06T18:54:53Z","tags":["status","plugin:elasticsearch@5.6.9","info"],"pid":31130,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
Jun 06 14:54:53 dev-mgt-elk-w2a-2 kibana[31130]: {"type":"log","@timestamp":"2018-06-06T18:54:53Z","tags":["status","plugin:console@5.6.9","info"],"pid":31130,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
Jun 06 14:54:53 dev-mgt-elk-w2a-2 kibana[31130]: {"type":"log","@timestamp":"2018-06-06T18:54:53Z","tags":["status","plugin:metrics@5.6.9","info"],"pid":31130,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
Jun 06 14:54:53 dev-mgt-elk-w2a-2 kibana[31130]: {"type":"log","@timestamp":"2018-06-06T18:54:53Z","tags":["status","plugin:elasticsearch@5.6.9","info"],"pid":31130,"state":"green","message":"Status changed from yellow to green - Kibana index ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
Jun 06 14:54:53 dev-mgt-elk-w2a-2 kibana[31130]: {"type":"log","@timestamp":"2018-06-06T18:54:53Z","tags":["status","plugin:timelion@5.6.9","info"],"pid":31130,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
Jun 06 14:54:53 dev-mgt-elk-w2a-2 kibana[31130]: {"type":"log","@timestamp":"2018-06-06T18:54:53Z","tags":["listening","info"],"pid":31130,"message":"Server running at http://0.0.0.0:5601"}
Jun 06 14:54:53 dev-mgt-elk-w2a-2 kibana[31130]: {"type":"log","@timestamp":"2018-06-06T18:54:53Z","tags":["status","ui settings","info"],"pid":31130,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}

Kibana.yml

server.port: 5601
server.host: "0.0.0.0"
elasticsearch.url: "http://10.65.45.22:9200"
elasticsearch.username: "kibana"
elasticsearch.password: "changeme"
logging.dest: stdout

I was not able to find a logfile for kibana so I ran journalctl -u kibana.service and took logs.

Hey Guys,

Could you please provide an update on this?

Hey @john.akash,

I am having almost the same problem, but for me, either of these ways
(The x-pack plugin was already installed by itslef when installing the ELK stack.)

cd /usr/share/kibana && bin/kibana
or
sudo systemctl restart kibana

that I try to start Kibana I am still getting the same features and cannot see all the x-pack features.

Here is my http://localhost:9200/_xpack result:

{
"features" : {
"graph" : {
"description" : "Graph Data Exploration for the Elastic Stack",
"available" : false,
"enabled" : true
},
"logstash" : {
"description" : "Logstash management component for X-Pack",
"available" : false,
"enabled" : true
},
"ml" : {
"description" : "Machine Learning for the Elastic Stack",
"available" : false,
"enabled" : true,
"native_code_info" : {
"version" : "6.3.0",
"build_hash" : "0f0a34c67965d7"
}
},
"monitoring" : {
"description" : "Monitoring for the Elastic Stack",
"available" : true,
"enabled" : true
},
"rollup" : {
"description" : "Time series pre-aggregation and rollup",
"available" : true,
"enabled" : true
},
"security" : {
"description" : "Security for the Elastic Stack",
"available" : false,
"enabled" : true
},
"watcher" : {
"description" : "Alerting, Notification and Automation for the Elastic Stack",
"available" : false,
"enabled" : true
}
},
"tagline" : "You know, for X"
}

Could anyone please help me to be able to see and use these features like ml, watcher... .

Thanks in advance.

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