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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...