Dashboards & Visualizations

Form is not displaying in Splunk web

jangid
Builder

I have create a small form from Sample app and placed in following location with global access
$(SPLUNK_HOME)\etc\users\admin\<app>\local\data\ui\

I have updated XML file for this
$(SPLUNK_HOME)\etc\users\admin\<app>\local\data\ui\nav\default.xml
...

<nav>
    <collection label="Dashboards">
        <view name="error" Default="true"/>
        <view name="simple"/>
    </collection>

...

and
$(SPLUNK_HOME)\etc\users\admin\<app>\local\data\ui\views\simple.xml

I can see my error dashboard but not simple that contain form based data.

Here is the content of simple.xml

<form>
    <label>Simple Radio</label>

    <!-- Define master search template, with replacement tokens delimited with $ -->
    <!-- <searchTemplate>index=sample from="$from$"</searchTemplate> -->

    <fieldset>
        <!-- Define a radio button list, populated from a search. searchWhenChanged propagates any change in selection immediatly to the results. -->
        <!-- <input type="radio" token="from" searchWhenChanged="true"> -->
        <input type="radio" searchWhenChanged="true">
             <label>View Result</label>
            <choice value="Hourly">Last 1 Hour</choice>
            <choice value="Hourly12">Last 12 Hours</choice>
        <choice value="Hourly24">Last 24 Hours</choice>
        <!-- <populatingSearch fieldForValue="from" fieldForLabel="from"><![CDATA[index=sample | top from | stats count by from]]></populatingSearch> -->
        </input>
    </fieldset>

    <row>
        <!-- output the results as a 50 row events view -->
        <event>
            <title>Results</title>
            <option name="count">50</option>
        </event>
    </row>
</form>

I just want to display the form - not doing actual search

Any Idea what is wrong ?

Tags (2)
0 Karma
1 Solution

Ayn
Legend

You don't have a token defined for your radio input. You need that, otherwise Splunk will consider the XML invalid and therefore throw an error.

View solution in original post

Ayn
Legend

You don't have a token defined for your radio input. You need that, otherwise Splunk will consider the XML invalid and therefore throw an error.

jangid
Builder

I can't see in Dashboard Menu list and If use direct path then I am getting following error

404 Not Found

Return to Splunk home page

Splunk cannot find the "simple" view.

You are using 10.44.2.76:8000, which is connected to splunkd @123586 at https://127.0.0.1:8089 on Tue Jul 17 10:34:20 2012.


I can see my all other panel - If I convert any other panel in form view it'll also disappear even after changing the permission

I am following this url to create form

http://docs.splunk.com/Documentation/Splunk/latest/Developer/FormIntro

0 Karma

Ayn
Legend

I don't entirely follow what the desired result is, and if you're getting an error, an empty page, a page with no errors but different than you want, etc...please clarify.

0 Karma

lguinn2
Legend

Dashboards do not go in the nav subdirectory. Instead of nav

$(SPLUNK_HOME)\etc\users\admin\<app>\local\data\ui\nav\simple.xml

use views

$(SPLUNK_HOME)\etc\users\admin\<app>\local\data\ui\views\simple.xml

jangid
Builder

Sorry copy/paste issue
xml file is in right path.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...