Example: Simple XML dashboard

This example shows a Simple XML dashboard created in Splunk Web using the Dashboard Editor. If you want to customize this dashboard, convert it to an HTML Dashboard.

[example]

<form autorun="true">
    <label>Simple XML</label>
    <description>A Simple XML dashboard created in Splunk Web</description>
    <fieldset>
        <input type="dropdown" token="headcount">
            <label>Number of results</label>
            <choice value="5">5</choice>
            <choice value="10">10</choice>
            <choice value="15">15</choice>
            <default>5</default>
        </input>
        <input type="radio" token="sourcetype">
            <label>Source Types</label>
            <choice value="*">All</choice>
            <populatingSearch fieldForValue="sourcetype" fieldForLabel="sourcetype">
            <![CDATA[index=_internal | head 1000 | top sourcetype ]]>
            </populatingSearch>
            <default>*</default>
        </input>
    </fieldset>
    <row>
        <table>
            <searchTemplate>index=_internal sourcetype=$sourcetype$ | head $headcount$</searchTemplate>
            <title>index=_internal sourcetype=$sourcetype$ | head $headcount$</title>
            <option name="showPager">true</option>
            <earliestTime/>
            <latestTime></latestTime>
        </table>
    </row>
    <row>
        <chart>
            <searchString>index=_internal | stats count by sourcetype</searchString>
            <title>Count by sourcetype</title>
            <earliestTime></earliestTime>
            <latestTime></latestTime>
            <option name="charting.chart">pie</option>
        </chart>
    </row>
</form>