<?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 replace the value of a field by a  token value  in an xml form? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-the-value-of-a-field-by-a-token-value-in-an-xml/m-p/150417#M42155</link>
    <description>&lt;P&gt;Please feel free to accept it as an answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Apr 2015 17:13:54 GMT</pubDate>
    <dc:creator>Raghav2384</dc:creator>
    <dc:date>2015-04-17T17:13:54Z</dc:date>
    <item>
      <title>How to replace the value of a field by a  token value  in an xml form?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-the-value-of-a-field-by-a-token-value-in-an-xml/m-p/150414#M42152</link>
      <description>&lt;P&gt;Hi everyone, &lt;/P&gt;

&lt;P&gt;I have a field call &lt;CODE&gt;status&lt;/CODE&gt;, and I have a drop-down with values: &lt;CODE&gt;open&lt;/CODE&gt;, &lt;CODE&gt;new&lt;/CODE&gt;, &lt;CODE&gt;in progress&lt;/CODE&gt;.......&lt;/P&gt;

&lt;P&gt;What i need is:&lt;/P&gt;

&lt;P&gt;1) When the user chooses a value from the drop-down, the status on the dashboard changes to that value&lt;/P&gt;

&lt;P&gt;2) Is it possible to keep track of the changing of the status? How?&lt;/P&gt;

&lt;P&gt;This is what I've tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;CHANGE STATUS&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="status_token" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Change status&amp;lt;/label&amp;gt;
      &amp;lt;choice value="new"&amp;gt;new&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;new&amp;lt;/default&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;choice value="progress"&amp;gt;in progress&amp;lt;/choice&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt; &amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;status is $status_token$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_* |eval status="change this status"|eval status=if($status_token$!="change this status",$status_token$ ,"change this status")| table host source status&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Apr 2015 14:33:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-the-value-of-a-field-by-a-token-value-in-an-xml/m-p/150414#M42152</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2015-04-17T14:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the value of a field by a  token value  in an xml form?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-the-value-of-a-field-by-a-token-value-in-an-xml/m-p/150415#M42153</link>
      <description>&lt;P&gt;Not sure if i understand your question, if you want the search to include user selection, since you have status as a token&lt;/P&gt;

&lt;P&gt;How about adding &lt;CODE&gt;status="$status_token$"&lt;/CODE&gt; to your search? &lt;/P&gt;

&lt;P&gt;Example let's say user selected status = in progress from the drop-down. &lt;BR /&gt;
&lt;CODE&gt;index=_* status="$status_token$"|......&lt;/CODE&gt; would read &lt;BR /&gt;
&lt;CODE&gt;index=_* status="in progress"|....&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 16:17:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-the-value-of-a-field-by-a-token-value-in-an-xml/m-p/150415#M42153</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2015-04-17T16:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the value of a field by a  token value  in an xml form?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-the-value-of-a-field-by-a-token-value-in-an-xml/m-p/150416#M42154</link>
      <description>&lt;P&gt;THanks Raghav2384 &lt;/P&gt;

&lt;P&gt;very much I try the quote on the token an it is working:  &lt;STRONG&gt;status="$status_token$"&lt;/STRONG&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 17:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-the-value-of-a-field-by-a-token-value-in-an-xml/m-p/150416#M42154</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2015-04-17T17:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the value of a field by a  token value  in an xml form?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-the-value-of-a-field-by-a-token-value-in-an-xml/m-p/150417#M42155</link>
      <description>&lt;P&gt;Please feel free to accept it as an answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 17:13:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-the-value-of-a-field-by-a-token-value-in-an-xml/m-p/150417#M42155</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2015-04-17T17:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the value of a field by a  token value  in an xml form?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-the-value-of-a-field-by-a-token-value-in-an-xml/m-p/150418#M42156</link>
      <description>&lt;P&gt;I"m not seeing the link to accept but I voted. &lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 17:23:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-the-value-of-a-field-by-a-token-value-in-an-xml/m-p/150418#M42156</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2015-04-17T17:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace the value of a field by a  token value  in an xml form?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-replace-the-value-of-a-field-by-a-token-value-in-an-xml/m-p/150419#M42157</link>
      <description>&lt;P&gt;there you go &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 17:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-replace-the-value-of-a-field-by-a-token-value-in-an-xml/m-p/150419#M42157</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2015-04-17T17:23:54Z</dc:date>
    </item>
  </channel>
</rss>

