sivasamyk / logtrail

Kibana plugin to view, search & live tail log events
MIT License
1.4k stars 185 forks source link

Feature registration to allow hiding LogTrail #385

Closed wolframhaussig closed 3 months ago

wolframhaussig commented 4 years ago

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 commented 4 years ago

@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 commented 4 years ago

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

wolframhaussig commented 3 months ago

closed as we do not use logtrail any longer