sivasamyk / logtrail

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

Is it possible to reload logtrail configuration? #379

Open andye2004 opened 4 years ago

andye2004 commented 4 years ago

I'm wondering if it is possible to reload the logtrail configuration at runtime without a kibana restart? Ideally, I want to store config in es and be able to modify it directly in es, then have logtrail do a live reload of the config.

sivasamyk commented 4 years ago

@andye2004 logtrail already supports storing the configuration in ES and it loads the config every time when you reload the UI.

Check here for the details of loading configuration from ES - https://github.com/sivasamyk/logtrail/blob/master/docs/how_to.md#3-load-logtrail-configuration-from-elasticsearch

Which version of logtrail are you using?

andye2004 commented 4 years ago

@sivasamyk, thanks for the feedback. Yes, I was aware that logtrail loaded config from es, but what I wanted to know was if it would 'live' reload the config when it is changed in es, without requiring a restart of kibana. I think you have just confirmed that it will do that. E.g. reload the UI.

I am looking at using logtrail with ECK in an on-prem cluster using es/kibana 7.5.2 and logtrail-7.5.2-0.1.31. Unfortunately, when I include logtrail as a plugin kibana won't start, instead it just keeps cycling through some license request to es and timing out. I need a little time to look at it in more detail.

I have tried adding logtrail using the method outlined here and also tried building a custom image but the result is the same.

sivasamyk commented 4 years ago

I have not tried logtrail with ECK. Please post the solution here once you make it work. Thanks