Refine your search:

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 ?

asked 16 Jul '12, 08:44

jangid's gravatar image

jangid
7386728
accept rate: 31%

edited 17 Jul '12, 02:32

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.

(16 Jul '12, 15:24) Ayn ♦

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

(17 Jul '12, 02:36) jangid

2 Answers:

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.

link

answered 17 Jul '12, 03:12

Ayn's gravatar image

Ayn ♦
34.4k3817
accept rate: 40%

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
link

answered 16 Jul '12, 12:19

lguinn's gravatar image

lguinn ♦
17.4k91125
accept rate: 29%

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

(16 Jul '12, 14:42) jangid
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×735
×78

Asked: 16 Jul '12, 08:44

Seen: 862 times

Last updated: 17 Jul '12, 03:12

Copyright © 2005-2014 Splunk Inc. All rights reserved.