Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature registration to allow hiding LogTrail #385

Open
wolframhaussig opened this issue Mar 10, 2020 · 2 comments
Open

Feature registration to allow hiding LogTrail #385

wolframhaussig opened this issue Mar 10, 2020 · 2 comments

Comments

@wolframhaussig
Copy link

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.

@sivasamyk
Copy link
Owner

@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:elasticsearch@7.6.1] Status changed from uninitialized to yellow - Waiting for Elasticsearch
server    log   [07:52:27.342] [info][status][plugin:elasticsearch@7.6.1] Status changed from yellow to green - Ready
plugin list - {"inert":{"_etags":{}},"@elastic/good":{},"kibana":{"status":{"id":"plugin:kibana@7.6.1","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2020-03-21T07:52:27.334Z"},"systemApi":{}},"elasticsearch":{"status":{"id":"plugin:elasticsearch@7.6.1","state":"green","icon":"success","message":"Ready","uiColor":"secondary","since":"2020-03-21T07:52:27.342Z"}},"logtrail":{"status":{"id":"plugin:logtrail@0.1.31","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:logtrail@0.1.31] Status changed from uninitialized to green - Ready
server    log   [07:52:27.358] [info][status][plugin:xpack_main@7.6.1] Status changed from uninitialized to green - Ready
server    log   [07:52:27.375] [info][status][plugin:graph@7.6.1] 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:monitoring@7.6.1] Status changed from uninitialized to green - Ready
server    log   [07:52:27.401] [info][status][plugin:spaces@7.6.1] Status changed from uninitialized to green - Ready
server    log   [07:52:27.414] [info][status][plugin:security@7.6.1] Status changed from uninitialized to green - Ready

@wolframhaussig
Copy link
Author

@sivasamyk Sure, here is the topic: https://discuss.elastic.co/t/hide-plugin-in-some-spaces/222878

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants