<?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 Re: How to unset an input token when value isn't the default in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-unset-an-input-token-when-value-isn-t-the-default/m-p/371272#M109247</link>
    <description>&lt;P&gt;Great, thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2017 15:54:29 GMT</pubDate>
    <dc:creator>vshakur</dc:creator>
    <dc:date>2017-08-16T15:54:29Z</dc:date>
    <item>
      <title>How to unset an input token when value isn't the default</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-unset-an-input-token-when-value-isn-t-the-default/m-p/371268#M109243</link>
      <description>&lt;P&gt;I have the following xml code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;change&amp;gt;
        &amp;lt;condition value="default_value"&amp;gt;
           &amp;lt;unset token="some_token"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;/condition&amp;gt;
   &amp;lt;/change&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to unset &lt;STRONG&gt;some_token&lt;/STRONG&gt; only when value DOESN'T equal "&lt;STRONG&gt;default_value&lt;/STRONG&gt;".&lt;BR /&gt;
I tried: &lt;STRONG&gt;condition value!="default_value"&lt;/STRONG&gt;  but it doesn't work and I get an error.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;BR /&gt;
Samuel&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 14:57:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-unset-an-input-token-when-value-isn-t-the-default/m-p/371268#M109243</guid>
      <dc:creator>vshakur</dc:creator>
      <dc:date>2017-08-16T14:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to unset an input token when value isn't the default</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-unset-an-input-token-when-value-isn-t-the-default/m-p/371269#M109244</link>
      <description>&lt;P&gt;try this&lt;/P&gt;

&lt;P&gt;&amp;lt;change&amp;gt;&lt;BR /&gt;
           &amp;lt;condition match="fieldname!=default_value"&amp;gt;&lt;BR /&gt;
               &amp;lt;unset token="some_token"&amp;gt;&amp;lt;/unset&amp;gt;&lt;BR /&gt;
          &amp;lt;/condition&amp;gt;&lt;BR /&gt;
&amp;lt;/change&amp;gt;&lt;/P&gt;

&lt;P&gt;Check below link,&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.0/Viz/tokens" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.0/Viz/tokens&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-unset-an-input-token-when-value-isn-t-the-default/m-p/371269#M109244</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2020-09-29T15:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to unset an input token when value isn't the default</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-unset-an-input-token-when-value-isn-t-the-default/m-p/371270#M109245</link>
      <description>&lt;P&gt;It seems to be the right direction.&lt;BR /&gt;
I just don't understand what should be the &lt;STRONG&gt;fieldname&lt;/STRONG&gt;.&lt;BR /&gt;
Should it be &lt;STRONG&gt;$current_token$&lt;/STRONG&gt;? or a field from the input's search query?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 15:42:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-unset-an-input-token-when-value-isn-t-the-default/m-p/371270#M109245</guid>
      <dc:creator>vshakur</dc:creator>
      <dc:date>2017-08-16T15:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to unset an input token when value isn't the default</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-unset-an-input-token-when-value-isn-t-the-default/m-p/371271#M109246</link>
      <description>&lt;P&gt;You need to use field from query. You haven't posted previous lines above change tag. So that i have mentioned as fieldname&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 15:52:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-unset-an-input-token-when-value-isn-t-the-default/m-p/371271#M109246</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2017-08-16T15:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to unset an input token when value isn't the default</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-unset-an-input-token-when-value-isn-t-the-default/m-p/371272#M109247</link>
      <description>&lt;P&gt;Great, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 15:54:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-unset-an-input-token-when-value-isn-t-the-default/m-p/371272#M109247</guid>
      <dc:creator>vshakur</dc:creator>
      <dc:date>2017-08-16T15:54:29Z</dc:date>
    </item>
  </channel>
</rss>

