<?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: Is it possible to use a search value or a token in the outputlookup name? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-search-value-or-a-token-in-the/m-p/246537#M73491</link>
    <description>&lt;P&gt;The map command should be able to handle this. For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* host=sample_host | dedup host  | map search="search * | outputlookup $host$.csv"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Jul 2016 17:06:46 GMT</pubDate>
    <dc:creator>ryanoconnor</dc:creator>
    <dc:date>2016-07-07T17:06:46Z</dc:date>
    <item>
      <title>Is it possible to use a search value or a token in the outputlookup name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-search-value-or-a-token-in-the/m-p/246536#M73490</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;Is it possible to pass into lookup's name created by outputlookup command a token or a search value?&lt;/P&gt;

&lt;P&gt;Smth like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo 
| eval week=&amp;lt;here comes some evaluation, e.g. number of week&amp;gt;
| outputlookup dataset_$week$.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried to write it differently, but outputlookup eats all sorts of symbols and just creates files with &lt;CODE&gt;$ ' "&lt;/CODE&gt; ` in its name while I wanted &lt;EM&gt;dataset_15.csv&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 16:55:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-search-value-or-a-token-in-the/m-p/246536#M73490</guid>
      <dc:creator>iKate</dc:creator>
      <dc:date>2016-07-07T16:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use a search value or a token in the outputlookup name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-search-value-or-a-token-in-the/m-p/246537#M73491</link>
      <description>&lt;P&gt;The map command should be able to handle this. For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* host=sample_host | dedup host  | map search="search * | outputlookup $host$.csv"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jul 2016 17:06:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-search-value-or-a-token-in-the/m-p/246537#M73491</guid>
      <dc:creator>ryanoconnor</dc:creator>
      <dc:date>2016-07-07T17:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use a search value or a token in the outputlookup name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-search-value-or-a-token-in-the/m-p/246538#M73492</link>
      <description>&lt;P&gt;Wow! It works, thank you! &lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 19:15:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-a-search-value-or-a-token-in-the/m-p/246538#M73492</guid>
      <dc:creator>iKate</dc:creator>
      <dc:date>2016-07-07T19:15:17Z</dc:date>
    </item>
  </channel>
</rss>

