Splunk Dev

Where do we find the libraries of splunkjs like "splunkjs/mvc/searchmanager"

Lovika
Explorer

Where do we find the libraries of splunkjs like "splunkjs/mvc/searchmanager" , "splunkjs/mvc/tableview"
how many libraries are there? and what all methods are defined in those libraries?

Tags (2)

blackmamba
New Member

I know this is not becomes obvious immediately, and I ran into the same problem. So I'm documenting it here, hoping that it will help someone.

splunkjs/mvc/searchmanager,
splunkjs/mvc/tableview,

etc

all these libraries come as a part of the following config.js file, located at
splunkjsstack/static/splunkjs/config.js. Don't change the path in the following deps array, in the example. Just the path to the config needs to be changed, according to your folder structure.

deps = [
        "splunkjs/ready!",
        "splunkjs/mvc/searchmanager",
        "splunkjs/mvc/chartview",
        "splunkjs/mvc/eventsviewerview"
    ];

You can find the documentation about these files in config.js itself. Just search for the filename and that will lead you to the implementation. Which has inline documentation.

cheers!

0 Karma

vcgamesii
Explorer

I think you're looking for http://docs.splunk.com/Documentation/WebFramework but unfortunately it isn't complete or exhaustive.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...