Splunk Search

display the dropdown content as Chart title


I am using a xml code for showing a dropdown as follows:-

alt text

I want to display the content of dropdown, i.e.DataCall or Datarecieve as the title of the chart. And it should change as per the selection of dropdown.

Sorry I was not able to put the code directly, so I am attaching an image of it.

Please Help


Just used $dropdowntokenname$ in place of title text. Example:

  <fieldset autoRun="true" submitButton="true">
    <input type="time" searchWhenChanged="true">
    <input type="dropdown" token="sourcetype" id="field3">
      <label>sourcetype :</label>
      <choice value="*">All</choice>
      <populatingSearch fieldForValue="sourcetype" fieldForLabel="sourcetype">
        <![CDATA[ index=_internal | stats count by sourcetype | fields sourcetype]]>
      <title>DefaultTitle- $sourcetype$</title>
      <searchString>index=_internal | stats count by sourcetype</searchString>


You can use your token user1 everywhere, you don't have to define another token for same value. Hope this is what you are asking here.

0 Karma

Thanks for the reply somesoni2.
I have already define one token, as shown above i.e."user1", which I am using in a searchstring. Is it possible to define another token for the choice content?

0 Karma