<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to unset a token in a a Splunk 6.2 Simple XML dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-unset-a-token-in-a-a-Splunk-6-2-Simple-XML-dashboard/m-p/280362#M17770</link>
    <description>&lt;P&gt;I am not sure why I cannot find a real answer in all the questions asked on this subject. They all seem like hacks and workarounds.&lt;/P&gt;

&lt;P&gt;All I want to do is re-populate the token behind an input when the values change.  What is happening instead is that it just keeps appending the token based on all the previous inputs.&lt;/P&gt;

&lt;P&gt;This is Splunk 6.2 and here is the input&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="checkbox" token="operation" searchWhenChanged="false"&amp;gt;
      &amp;lt;label&amp;gt;Operation&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;search query&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-60m@m&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;operationName&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;operationName&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
      &amp;lt;valuePrefix&amp;gt;svcField=&amp;lt;/valuePrefix&amp;gt;
      &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;All,*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 15 Dec 2015 21:31:13 GMT</pubDate>
    <dc:creator>Cuyose</dc:creator>
    <dc:date>2015-12-15T21:31:13Z</dc:date>
    <item>
      <title>How to unset a token in a a Splunk 6.2 Simple XML dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-unset-a-token-in-a-a-Splunk-6-2-Simple-XML-dashboard/m-p/280362#M17770</link>
      <description>&lt;P&gt;I am not sure why I cannot find a real answer in all the questions asked on this subject. They all seem like hacks and workarounds.&lt;/P&gt;

&lt;P&gt;All I want to do is re-populate the token behind an input when the values change.  What is happening instead is that it just keeps appending the token based on all the previous inputs.&lt;/P&gt;

&lt;P&gt;This is Splunk 6.2 and here is the input&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="checkbox" token="operation" searchWhenChanged="false"&amp;gt;
      &amp;lt;label&amp;gt;Operation&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;search query&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-60m@m&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;operationName&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;operationName&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;prefix&amp;gt;(&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
      &amp;lt;valuePrefix&amp;gt;svcField=&amp;lt;/valuePrefix&amp;gt;
      &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;All,*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Dec 2015 21:31:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-unset-a-token-in-a-a-Splunk-6-2-Simple-XML-dashboard/m-p/280362#M17770</guid>
      <dc:creator>Cuyose</dc:creator>
      <dc:date>2015-12-15T21:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to unset a token in a a Splunk 6.2 Simple XML dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-unset-a-token-in-a-a-Splunk-6-2-Simple-XML-dashboard/m-p/280363#M17771</link>
      <description>&lt;P&gt;Hello, this is an example you can use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;input type="dropdown" token="operation" searchWhenChanged="true"&amp;gt;
            &amp;lt;label&amp;gt;Change the ticket status Update:&amp;lt;/label&amp;gt;
            &amp;lt;choice value="Open"&amp;gt;Open&amp;lt;/choice&amp;gt;
            &amp;lt;choice value="Closed"&amp;gt;Closed&amp;lt;/choice&amp;gt;
            &amp;lt;default&amp;gt;&amp;lt;/default&amp;gt;
            &amp;lt;change&amp;gt;
              &amp;lt;condition value="Open"&amp;gt;
                &amp;lt;unset token="operation"&amp;gt;&amp;lt;/set&amp;gt;
                &amp;lt;set token="new_operation"&amp;gt;mynewoperation&amp;lt;/set&amp;gt;
              &amp;lt;/condition&amp;gt;
              &amp;lt;condition value="Closed"&amp;gt;
             &amp;lt;unset token="operation"&amp;gt; &amp;lt;/set&amp;gt;
                &amp;lt;set token="new_operation2"&amp;gt; mynewoperation2&amp;lt;/set&amp;gt;
              &amp;lt;/condition&amp;gt;
           &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Dec 2015 22:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-unset-a-token-in-a-a-Splunk-6-2-Simple-XML-dashboard/m-p/280363#M17771</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-12-15T22:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to unset a token in a a Splunk 6.2 Simple XML dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-unset-a-token-in-a-a-Splunk-6-2-Simple-XML-dashboard/m-p/280364#M17772</link>
      <description>&lt;P&gt;Minor change to the above, you need to close the  tag.  So:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;unset token="operation" /&amp;gt;
--OR--
&amp;lt;unset token="operation"&amp;gt;&amp;lt;/unset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also note that if you are looking to unset a token (that is being set as part of the base input), you need to do the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;unset token="operation"/&amp;gt;
--AND--
&amp;lt;unset token="form.operation"/&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Dec 2015 02:03:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-unset-a-token-in-a-a-Splunk-6-2-Simple-XML-dashboard/m-p/280364#M17772</guid>
      <dc:creator>nfilippi_splunk</dc:creator>
      <dc:date>2015-12-16T02:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to unset a token in a a Splunk 6.2 Simple XML dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-unset-a-token-in-a-a-Splunk-6-2-Simple-XML-dashboard/m-p/280365#M17773</link>
      <description>&lt;P&gt;Thanks nfilippi. Was an error.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 07:08:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-unset-a-token-in-a-a-Splunk-6-2-Simple-XML-dashboard/m-p/280365#M17773</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-12-16T07:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to unset a token in a a Splunk 6.2 Simple XML dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-unset-a-token-in-a-a-Splunk-6-2-Simple-XML-dashboard/m-p/280366#M17774</link>
      <description>&lt;P&gt;I am not quite sure how this is to work.  I am calling the token $operation$ in a dashboard panel driven by this input.  It appears I am resetting a new token value to something other than $operation$ in your example which will not be recognized in my search.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 16:00:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-unset-a-token-in-a-a-Splunk-6-2-Simple-XML-dashboard/m-p/280366#M17774</guid>
      <dc:creator>Cuyose</dc:creator>
      <dc:date>2015-12-16T16:00:33Z</dc:date>
    </item>
  </channel>
</rss>

