{% load splunkmvc %} Splunk Application Framework Quick Start
Back Next

Splunk Application Framework Quick Start

Add a search

You can include a hard-coded search or any saved search from your Splunk instance to your app.

Adding a search manager

Search managers can be embedded in your framework app. Searches are run against your Splunk instance. The data that is returned is available to any view that is bound to the search manager. To include an embedded search manager with a static search query, create a SearchManager with a query defined in the "search" property:

{% searchmanager id="example-search" search="index=_internal | stats count" %} 

Other parameters such as "earliest_time", "latest_time", etc. can also be set through properties.

Adding a saved search manager

To add a saved search, create a SavedSearchManager. You'll need to provide the name of the saved search in the searchname property. To bind views to this manager, provide the ID of this SavedSearchManager in the "managerid" property of the view.

{% savedsearchmanager id="saved-search" searchname="example-saved-search" %}

Learn about the SearchBar view

Back Next
{% component_loader %}