Databases Reference
In-Depth Information
Linking views with Sideview
Starting from our simple dashboard, let's use the Redirector module to build a link.
This link could be to anything, but we will link to another Splunk dashboard, which
we will build next. Here's the XML:
...
<module name="JSChart">
<module name="Redirector">
<param name="arg.user">$click.value$</param>
<param name="url">chapter_8_sideview_2</param>
</module>
</module>
...
After clicking on mary , a new URL is built using the user value. In my case,
the URL is:
http://mysplunkserver:8000/en-US/app/is_app_one/chapter_8_
sideview_2?user=mary
The dashboard referenced does not exist yet, so this URL will return an error.
Let's create the second dashboard now.
Sideview URLLoader
The URLLoader module provides the ability to set variables from the query string
of a URL, a very useful feature. For our next dashboard, we will draw a table
showing the error counts for the user value provided in the URL:
<view template="dashboard.html">
<!-- add sideview -->
<module name="SideviewUtils" layoutPanel="appHeader"/>
<!-- chrome -->
<label>Chapter 8 - Sideview Two</label>
<module name="AccountBar" layoutPanel="appHeader"/>
<module name="AppBar" layoutPanel="navigationHeader"/>
<module name="Message" layoutPanel="messaging">
<param name="filter">*</param>
<param name="clearOnJobDispatch">False</param>
<param name="maxSize">1</param>
 
Search WWH ::




Custom Search