Plugin development for dashboard

Hi all,
I'm trying to develop a kibana's plugin.
My goal is that every time a user access a dashboard, the kibana's server log a users credential (username only) and the dashboard name.
I have an idea of what to make server-side but I don't have any as to how I could get the user credential and the dashboard name from the front.
I'm having trouble finding if I should use any uiExports (like hacks one) even though I will not have any UI related code.

If anyone have an idea of where should I be looking for I'll be grateful :slight_smile:

Thanks again.

Here's how you can get the current user in Kibana UI, take a look into the getCurrent method

There is one way how you can find out which user is requesting which dashboard, it's when you enable audit logs:

https://www.elastic.co/guide/en/kibana/master/xpack-security-audit-logging.html#_audit_event_types

This generates a log when user A accessed saved object B, which would be a Dashboard in this case

could that help in your case?

I'll look into it, thanks for the informations :slight_smile:

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