<?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: Are Lookups appropriate here? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Are-Lookups-appropriate-here/m-p/62974#M15542</link>
    <description>&lt;P&gt;hmmm... i must be doing something wrong.  I'm not sure it's accessing Brands.csv should a simple search of inputlookup Brands.csv  return something?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Dec 2012 20:09:57 GMT</pubDate>
    <dc:creator>marquiselee</dc:creator>
    <dc:date>2012-12-13T20:09:57Z</dc:date>
    <item>
      <title>Are Lookups appropriate here?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-Lookups-appropriate-here/m-p/62972#M15540</link>
      <description>&lt;P&gt;I work with a bunch of media companies and on monthly basis licensing for the content they provide changes.  So this week I may have rights to display the BRANDS 'NBC' 'HBO' and 'CNN' video content on mobile devices but next week that list may look like 'CBS' NBC' 'AMC' and 'ABC'.&lt;/P&gt;

&lt;P&gt;Right now I have many searches that look like this but with nearly 100 brands... &lt;/P&gt;

&lt;P&gt;search AND (BRAND="HBO" OR BRAND="CBS" OR BRAND="SHOWTIME") | Table ...&lt;/P&gt;

&lt;P&gt;Obviously I'd rather not change each search every time licensing agreements change.  I've created a csv listing each of the Brands I have licensing for and added it as a lookup table.  that looks like this.&lt;/P&gt;

&lt;P&gt;TYPE, VALUE&lt;BR /&gt;
Brand,HBO &lt;BR /&gt;
Brand,CBS&lt;BR /&gt;
Brand,SHOWTIME&lt;BR /&gt;
Brand,NBC&lt;BR /&gt;
etc...&lt;/P&gt;

&lt;P&gt;Is this a proper use for lookups and how do I implement this in my searches?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 18:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-Lookups-appropriate-here/m-p/62972#M15540</guid>
      <dc:creator>marquiselee</dc:creator>
      <dc:date>2012-12-13T18:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Are Lookups appropriate here?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-Lookups-appropriate-here/m-p/62973#M15541</link>
      <description>&lt;P&gt;If you place that csv file in the &lt;CODE&gt;$APP_HOME/lookups&lt;/CODE&gt; (as Brands.csv), you can then combine that with this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;search [ |inputlookup Brands.csv|rename VALUE as Brand|table Brand|format "(" "" "" "" "OR" ")" ]| Table...&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 19:12:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-Lookups-appropriate-here/m-p/62973#M15541</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-12-13T19:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Are Lookups appropriate here?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-Lookups-appropriate-here/m-p/62974#M15542</link>
      <description>&lt;P&gt;hmmm... i must be doing something wrong.  I'm not sure it's accessing Brands.csv should a simple search of inputlookup Brands.csv  return something?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 20:09:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-Lookups-appropriate-here/m-p/62974#M15542</guid>
      <dc:creator>marquiselee</dc:creator>
      <dc:date>2012-12-13T20:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Are Lookups appropriate here?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-Lookups-appropriate-here/m-p/62975#M15543</link>
      <description>&lt;P&gt;This should return the contents of your CSV: &lt;CODE&gt;|inputlookup Brands.csv|rename VALUE as Brand|table Brand|format "(" "" "" "" "OR" ")"&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 20:12:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-Lookups-appropriate-here/m-p/62975#M15543</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-12-13T20:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Are Lookups appropriate here?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-Lookups-appropriate-here/m-p/62976#M15544</link>
      <description>&lt;P&gt;thanks much!  I got it working eventually...  I had to reformat my csv and remove the 'table Brand' from the subsearch.  woot!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2012 00:21:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-Lookups-appropriate-here/m-p/62976#M15544</guid>
      <dc:creator>marquiselee</dc:creator>
      <dc:date>2012-12-14T00:21:34Z</dc:date>
    </item>
  </channel>
</rss>

