Write to configured kibana log from plugin

I have a plugin that sends requests to ES. When the request is finished I want to write to the configured Kibana log whether it was successful or not, along with some additional information. I have tried using console.log but it only shows up in my browsers DevTools.

My question is just simply: how do I write to the configured kibana log (conf: logging.dest) from inside my plugin?

I think you need to use the Logger service for this. You can see an example here where Reporting shows a warning in the Kibana logs.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.