<?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 Is it possible to set a token using a field found in a lookup without drilldown? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-set-a-token-using-a-field-found-in-a-lookup/m-p/237269#M70515</link>
    <description>&lt;P&gt;Can I set a token using a field found in a lookup table? I've been researching online, but I haven't found a real solution. Thanks in advanced for any help &lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2015 01:52:20 GMT</pubDate>
    <dc:creator>jamesmarlowww</dc:creator>
    <dc:date>2015-11-17T01:52:20Z</dc:date>
    <item>
      <title>Is it possible to set a token using a field found in a lookup without drilldown?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-set-a-token-using-a-field-found-in-a-lookup/m-p/237269#M70515</link>
      <description>&lt;P&gt;Can I set a token using a field found in a lookup table? I've been researching online, but I haven't found a real solution. Thanks in advanced for any help &lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 01:52:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-set-a-token-using-a-field-found-in-a-lookup/m-p/237269#M70515</guid>
      <dc:creator>jamesmarlowww</dc:creator>
      <dc:date>2015-11-17T01:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set a token using a field found in a lookup without drilldown?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-set-a-token-using-a-field-found-in-a-lookup/m-p/237270#M70516</link>
      <description>&lt;P&gt;Yes you can. The online documentation has a few examples showing use of token for things other than drill-down. There's one on dynamic display of elements. What specifically are you looking for?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1/Viz/tokens"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1/Viz/tokens&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 03:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-set-a-token-using-a-field-found-in-a-lookup/m-p/237270#M70516</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-11-17T03:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set a token using a field found in a lookup without drilldown?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-set-a-token-using-a-field-found-in-a-lookup/m-p/237271#M70517</link>
      <description>&lt;P&gt;Thanks that's helpful. I was looking to set the outputed ID to the token $ID$&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;title&amp;gt;Lookup customer&amp;lt;/title&amp;gt;
    &amp;lt;searchString&amp;gt;index = foo | head 1 | eval $search_type$="$search_value$"  | fields - _* |lookup probe.csv $search_type$ OUTPUT ID&amp;lt;/searchString&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Nov 2015 03:28:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-set-a-token-using-a-field-found-in-a-lookup/m-p/237271#M70517</guid>
      <dc:creator>jamesmarlowww</dc:creator>
      <dc:date>2015-11-17T03:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set a token using a field found in a lookup without drilldown?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-set-a-token-using-a-field-found-in-a-lookup/m-p/237272#M70518</link>
      <description>&lt;P&gt;Do you not see the value of the token pass in?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 04:03:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-set-a-token-using-a-field-found-in-a-lookup/m-p/237272#M70518</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-11-17T04:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set a token using a field found in a lookup without drilldown?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-set-a-token-using-a-field-found-in-a-lookup/m-p/237273#M70519</link>
      <description>&lt;P&gt;Yes I can see the value. But I don't know how to pass a value to a token inside a search. &lt;/P&gt;

&lt;P&gt;I've tried to implement your example like this, but it isn't working.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;searchString&amp;gt;index = foo| head 1 | eval $search_type$="$search_value$"  | fields - _* |lookup probe.csv $search_type$ OUTPUT  ID ect ect ect | rename ect as "blah"| transpose&amp;lt;/searchString&amp;gt;
    &amp;lt;earliestTime&amp;gt;-60m@m&amp;lt;/earliestTime&amp;gt;
    &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
    &amp;lt;progress&amp;gt;
      &amp;lt;condition match="'job.resultCount' ==*"&amp;gt;
        &amp;lt;set token="ID"&amp;gt;$row.ID$&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
      &amp;lt;condition match="'job.resultCount' !=*"&amp;gt;
        &amp;lt;set token="ID"&amp;gt;$row.ID$&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
      &amp;lt;change&amp;gt;
         &amp;lt;set token="ID"&amp;gt;$row.ID$&amp;lt;/set&amp;gt;
      &amp;lt;/change&amp;gt;
   &amp;lt;/progress&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Nov 2015 23:02:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-set-a-token-using-a-field-found-in-a-lookup/m-p/237273#M70519</guid>
      <dc:creator>jamesmarlowww</dc:creator>
      <dc:date>2015-11-17T23:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set a token using a field found in a lookup without drilldown?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-set-a-token-using-a-field-found-in-a-lookup/m-p/237274#M70520</link>
      <description>&lt;P&gt;I've come to the conclusin that this isn't possbile in my version of splunk (6.1). I think it's possible in 6.2 or later. You need to put the progress or change options inside search and query objects like in by sundareshr's answer  &lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 22:39:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-set-a-token-using-a-field-found-in-a-lookup/m-p/237274#M70520</guid>
      <dc:creator>jamesmarlowww</dc:creator>
      <dc:date>2015-11-18T22:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set a token using a field found in a lookup without drilldown?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-set-a-token-using-a-field-found-in-a-lookup/m-p/237275#M70521</link>
      <description>&lt;P&gt;Just to clarify, there are a few things that will not work in the above xml code:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;searchString/earliestTime/latestTime is legacy syntax for search&lt;/LI&gt;
&lt;LI&gt; is a new event handler introduced in Splunk 6.3&lt;/LI&gt;
&lt;LI&gt; event handler is only supported within form inputs&lt;/LI&gt;
&lt;LI&gt; is only available for drilldown&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;So based on the above, here's what it should really look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt;

   &amp;lt;query&amp;gt;index = foo| head 1 | eval $search_type$="$search_value$"  | fields - _* |lookup probe.csv $search_type$ OUTPUT  ID ect ect ect | rename ect as "blah"| transpose&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;progress&amp;gt; 
      &amp;lt;set token="ID"&amp;gt;$result.ID$&amp;lt;/set&amp;gt;
   &amp;lt;/progress&amp;gt;

&amp;lt;search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Nov 2015 23:18:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-set-a-token-using-a-field-found-in-a-lookup/m-p/237275#M70521</guid>
      <dc:creator>nfilippi_splunk</dc:creator>
      <dc:date>2015-11-18T23:18:44Z</dc:date>
    </item>
  </channel>
</rss>

