logtrail
logtrail copied to clipboard
Feature registration to allow hiding LogTrail
Hi,
I would like to be able to hide LogTrail in some Spaces. I asked in the Elastic Forum and found out that it requires the plugin to register as a feature: https://www.elastic.co/guide/en/kibana/current/development-plugin-feature-registration.html
Which seems to be supported since 7.2.
@wolframhaussig I tried adding this code provided in the above link to logtrail. I see that xpack_main
plugin is not initialised when logtrail init() method is called, due to which I am not able to register logtrail as a feature. I verified with kibana 7.6.1.
Can you please share the post from Elastic Forum so that I can ask this there?
Logs
log [07:52:27.342] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
server log [07:52:27.342] [info][status][plugin:[email protected]] Status changed from yellow to green - Ready
plugin list - {"inert":{"_etags":{}},"@elastic/good":{},"kibana":{"status":{"id":"plugin:[email protected]","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2020-03-21T07:52:27.334Z"},"systemApi":{}},"elasticsearch":{"status":{"id":"plugin:[email protected]","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2020-03-21T07:52:27.342Z"}},"logtrail":{"status":{"id":"plugin:[email protected]","state":"uninitialized","icon":"spinner","message":"uninitialized","uiColor":"default","since":"2020-03-21T07:52:27.348Z"}}}
****** xpackMainPlugin - undefined
server log [07:52:27.356] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server log [07:52:27.358] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server log [07:52:27.375] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server log [07:52:27.389] [info][kibana-monitoring][monitoring] Starting monitoring stats collection
server log [07:52:27.390] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server log [07:52:27.401] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server log [07:52:27.414] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
@sivasamyk Sure, here is the topic: https://discuss.elastic.co/t/hide-plugin-in-some-spaces/222878