Databases Reference
In-Depth Information
The Sideview Search module
Let's start with a simple search:
<?xml version="1.0"?>
<view template="dashboard.html">
<!-- add sideview -->
<module layoutPanel="appHeader" name="SideviewUtils"/>
<!-- chrome -->
<label>Chapter 8 - Sideview One</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>
</module>
<!-- search -->
<module
name="Search"
autoRun="True"
group="Chapter 8 - Sideview One"
layoutPanel="panel_row1_col1">
<param name="earliest">-1h</param>
<param name="search">source="impl_splunk_gen" | top user</param>
<!-- chart -->
<module name="HiddenChartFormatter">
<param name="charting.chart">pie</param>
<module name="JSChart"/>
</module>
</module>
</view>
This dashboard renders identically to the first panel, previously described in
the
Building a drilldown to a custom query
section. There are two things to notice
in this example:
1.
The
SideviewUtils
module is needed to include the code needed by
all
Sideview Utils
apps.
2.
We use the alternative
Search
module as a replacement for the
HiddenSearch
module to illustrate our first
SideviewUtils
module.
In this simplistic example,
HiddenSearch
would still work.
Search WWH ::
Custom Search