Dashboards & Visualizations

splunk mvc sharedmodels documentation or other best practices

jnielson
New Member

Hey all, I seem to have ran into a snag when it comes to a specific feature I am trying to implement.

My team wants to implement a feature with the input dropdowns on the webpage where the starting value would be set to the realname of the account currently logged in. It is important to note we are building an HTML dashboard, and we have recently transitioned from splunk enterprise to cloud.

So far I was able to retrieve account information using splunk/mvc/sharedmodels and the following code:

 

var temp;
temp = SharedModels.get("user").entry; 
console.log(temp);

 

I know how to get the username, realname, email, etc. What I have an issue is there seems to be no documentation about this library anywhere, but maybe I am overlooking it?

Most questions I have found where using this has been the answer were posted in 2013. Is there a better library I should be using that fits Splunk best practices in 2020? 

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Splunk App for Anomaly Detection End of Life Announcment

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...