Hi, I implemented a custom plugin app in Kibana and it will send periodical emails daily. I want to start sending emails in background once Kibana server is started. How should I start a service once Kibana is started? There is no front end interactions with the plugin and I'm quite confused about where should I add the logic that calls "sending emails". Thanks!
The best way to figure out how plugins work is to view the plugins that ship with Kibana. For example, the maps plugin is setup here https://github.com/elastic/kibana/blob/master/x-pack/plugins/maps/index.js#L58. The
init method is called when the plugin is loaded allowing the plugin to register REST endpoints and so on. You could put your serverside logic in a similar place in your plugin.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.