Display data with Splunk views

The Web Framework includes a library of Splunk views, which are the UI widgets and form controls that you put on your pages to display a certain type of information, or control some aspect of a search or another view. Splunk views are designed to work with search managers, so they automatically know how to work with them. But mostly, views let you quickly and easily run searches and display results on your page. (In Simple XML, these items are referred to as form inputs and panel visualization elements).

Visualizations

The Chart view displays results in a variety of configurable chart types:

Table view

The Table view displays the results of a search:

EventsViewer view

The EventsViewer view displays the events from a search:

Single view

The Single view displays a single value:

SplunkMap view

The SplunkMap view binds a map to a search that interprets geographic data and displays it on a map. Data with latitude and longitude fields are used to populate map markers according to location:

DataTemplate view

The DataTemplate view is a generic view that provides developers with the ability to render data using the client-side templating engine provided by underscore.js, for example:

Search controls

SearchBar view

The SearchBar view displays a search box where the user can enter a search query, along with a TimeRange view:

SearchControls view

The SearchControls view displays controls for the search:

Timeline view

The Timeline view displays the timeline for search results:

TimeRange view

The TimeRange view displays a dropdown list with time-range options for search results:

ResultsLink view

The ResultsLink view displays a panel with buttons to open a search in a new tab or window, export results, open the search job inspector, and refresh the page:

Form inputs

Checkbox view

The Checkbox view displays a checkbox and returns a Boolean value indicating whether it is checked:

CheckboxGroup view

The CheckboxGroup view displays a group of checkboxes, allowing you to populate a set of checkboxes with a search or use this view like a standard HTML checkbox group:

Dropdown view

The Dropdown view displays a dropdown list of options (only one option can be selected):

MultiDropdown view

The MultiDropdown view displays a dropdown list of options (more than one can be selected):

Linklist view

The Linklist view displays a clickable list of options (only one can be selected):

RadioGroup view

The RadioGroup view displays options as radio buttons:

TextInput view

The TextInput view displays a text box:

Layout

Layout view

The Layout view manages the chrome and layout of a converted HTML dashboard page.

The Splunk bar at the very top of the page provides a link to the Splunk Enterprise home page, a list of apps, and menu options for Splunk Enterprise.

The app bar provides links to the app-specific features and views.

Each of these Splunk views has a number of properties, methods, and events―properties to customize the view, methods to operate it, and many have events that are fired when the view changes or is clicked. For more, see the Splunk Web Framework Component Reference.

Questions?

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website.
Learn more (including how to update your settings) here »