<?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 create a new token by editing the value of a previous token in Simple XML? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215800#M63296</link>
    <description>&lt;P&gt;So here's actual part &lt;BR /&gt;
    &lt;DRILLDOWN target="My New Window"&gt;&lt;BR /&gt;
              &lt;EVAL token="state"&gt;if(match('click.value', "Not_Active.*"), "Not_Active", "Active")&lt;/EVAL&gt;&lt;BR /&gt;
             &lt;LINK /&gt;&lt;BR /&gt;
                &amp;lt;![CDATA[&lt;BR /&gt;
                    /app/myapp/nextpage?form.state=$state$&lt;BR /&gt;
                ]]&amp;gt;&lt;BR /&gt;
             &lt;BR /&gt;
     &lt;/DRILLDOWN&gt;&lt;BR /&gt;
Thank you , sundareshr!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 09:28:26 GMT</pubDate>
    <dc:creator>evelenke</dc:creator>
    <dc:date>2020-09-29T09:28:26Z</dc:date>
    <item>
      <title>How to create a new token by editing the value of a previous token in Simple XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215793#M63289</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;I have pie chart with 2 values for the field &lt;STRONG&gt;state&lt;/STRONG&gt;: "Active" and "Inactive" appended by percentage and count values (e.g. "Active 300(80%)".  I need to drill down to a new window where tokens "Active", "Inactive" (without numeric values) will generate search strings. &lt;/P&gt;

&lt;P&gt;How should I correctly achieve this with Simple XML? &lt;BR /&gt;
I've tried to form a new token via &lt;CODE&gt;eval token=&lt;/CODE&gt;, but with no success.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215793#M63289</guid>
      <dc:creator>evelenke</dc:creator>
      <dc:date>2016-04-18T15:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new token by editing the value of a previous token in Simple XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215794#M63290</link>
      <description>&lt;P&gt;Unfortunately, the only thing you can condition on in a pie chart is name of the field you clicked on, which is always the same (count). What you could do, is the manipulate the values in the query using &lt;CODE&gt;rex&lt;/CODE&gt; or &lt;CODE&gt;replace()&lt;/CODE&gt;. If you need help with either, share your search and someone in this community can assist&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 20:33:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215794#M63290</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-04-18T20:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new token by editing the value of a previous token in Simple XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215795#M63291</link>
      <description>&lt;P&gt;Hi, sundareshr&lt;BR /&gt;
As I understand the only way is to somehow manipulate with inherited token values in a new window before further operations.&lt;BR /&gt;
So that I need to click on Not_Active\Active zone ![alt text][1]&lt;BR /&gt;
and in new window the prefix with numbers should be cut-off  before query will be activated. The resulting static values (Active\Not_Active) will just populate new searches ( $state$) &lt;BR /&gt;
![alt text][2]&lt;BR /&gt;
Is it possible?&lt;/P&gt;

&lt;P&gt;Something like this&lt;BR /&gt;
&lt;A href="http://s15.postimg.org/aetp3qiob/Splunk1.png" target="_blank"&gt;http://s15.postimg.org/aetp3qiob/Splunk1.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:30:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215795#M63291</guid>
      <dc:creator>evelenke</dc:creator>
      <dc:date>2020-09-29T09:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new token by editing the value of a previous token in Simple XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215796#M63292</link>
      <description>&lt;P&gt;Hi, sundareshr&lt;BR /&gt;
As I understand the only way is to somehow manipulate with inherited token values in a new window before further operations.&lt;BR /&gt;
So that I need to click on Not_Active\Active zone &lt;IMG src="https://community.splunk.com/storage/temp/125177-splunk1.png" alt="alt text" /&gt;&lt;BR /&gt;
and in new window the prefix with numbers should be cut-off  before query will be activated. The resulting static values (Active\Not_Active) will just populate new searches ( $state$) &lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/125178-splunk2.png" alt="alt text" /&gt;&lt;BR /&gt;
Is it possible?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:27:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215796#M63292</guid>
      <dc:creator>evelenke</dc:creator>
      <dc:date>2020-09-29T09:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new token by editing the value of a previous token in Simple XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215797#M63293</link>
      <description>&lt;P&gt;In you dashboard you have two panels. 1 with the pie chart. The other with a, lets say a table. The &lt;CODE&gt;query&lt;/CODE&gt; for a the table will look something like this (this is psuedo code, will not work as-is).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | eval x=$state$ | rex field=x "(?&amp;lt;state&amp;gt;Active|Not_Active)" | ... 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Apr 2016 13:52:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215797#M63293</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-04-19T13:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new token by editing the value of a previous token in Simple XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215798#M63294</link>
      <description>&lt;P&gt;The token from pie goes to different destination dashboard and it plays there only 1 role - name for a token value (like in picture from my previous post). This two values (Active|Not_Active) contains two different operations with lookup tables (| inputlookup..) . So the idea is that a search query in destinations dashboard is just $state$ and depending of a state clicked it must call search related to one of these states. Unfortunately there is no way to equalize something with (Active|Not_Active) or perfrom any eval like() function.  In other words I need to click "Active 300(80%)" --&amp;gt; form.state=$click.value$ --&amp;gt; drilldown --&amp;gt; somewhere in the middle cut dynamic tail ) -- &amp;gt; in new dashboard the &lt;EM&gt;dropdown input&lt;/EM&gt; with token $state$ and 2 choices Active=somesearch1, Not_Active=somesearch2. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:30:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215798#M63294</guid>
      <dc:creator>evelenke</dc:creator>
      <dc:date>2020-09-29T09:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new token by editing the value of a previous token in Simple XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215799#M63295</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;drilldown&amp;gt;
          &amp;lt;eval token="state"&amp;gt;if(match($click.value$, "Not_Active"), "InActive", "Active")&amp;lt;/eval&amp;gt;
        &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Apr 2016 20:07:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215799#M63295</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-04-19T20:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new token by editing the value of a previous token in Simple XML?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215800#M63296</link>
      <description>&lt;P&gt;So here's actual part &lt;BR /&gt;
    &lt;DRILLDOWN target="My New Window"&gt;&lt;BR /&gt;
              &lt;EVAL token="state"&gt;if(match('click.value', "Not_Active.*"), "Not_Active", "Active")&lt;/EVAL&gt;&lt;BR /&gt;
             &lt;LINK /&gt;&lt;BR /&gt;
                &amp;lt;![CDATA[&lt;BR /&gt;
                    /app/myapp/nextpage?form.state=$state$&lt;BR /&gt;
                ]]&amp;gt;&lt;BR /&gt;
             &lt;BR /&gt;
     &lt;/DRILLDOWN&gt;&lt;BR /&gt;
Thank you , sundareshr!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:28:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-new-token-by-editing-the-value-of-a-previous/m-p/215800#M63296</guid>
      <dc:creator>evelenke</dc:creator>
      <dc:date>2020-09-29T09:28:26Z</dc:date>
    </item>
  </channel>
</rss>

