<?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: lookup file not queried? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/lookup-file-not-queried/m-p/198706#M57504</link>
    <description>&lt;P&gt;Did you try all this with lookups without double quotes? I don't remember 100% but I &lt;EM&gt;think&lt;/EM&gt; that Splunk will try to match on everything including the quotes unless you have quotes in the corresponding header as well.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jun 2014 14:14:41 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2014-06-16T14:14:41Z</dc:date>
    <item>
      <title>lookup file not queried?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-file-not-queried/m-p/198705#M57503</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I have a search which reports a field N_os (a string indicating an Operating System). I wanted values from this field to be grouped together via a specific logic, the best I could find was a lookup. &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.1/Knowledge/Addfieldsfromexternaldatasources"&gt;Follwing the docs&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I created my lookup file &lt;CODE&gt;OSGroup.csv&lt;/CODE&gt; in &lt;CODE&gt;/opt/splunk/etc/apps/MYAPP/lookups&lt;/CODE&gt; (tried both with double quotes and without):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;N_os,OSGroup
"Microsoft Windows Server","Windows Server"
"Microsoft Windows 7","Windows Client"
"Microsoft Windows XP","Windows Client"
"AIX 5.1","AIX"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This file is referenced in &lt;CODE&gt;/opt/splunk/etc/apps/MYAPP/local/transforms.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[OSGroup]
filename = OSGroup.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I restarted splunk.&lt;/P&gt;

&lt;P&gt;I then expected that a search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | lookup OSGroup N_os OUTPUT OSGroup as N_osgroup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;creates a field &lt;CODE&gt;N_osgroup&lt;/CODE&gt;. I do not know how the match is done (by substring, only if there is an exact match, ...) so I added one line to the csv file which contains a sample of the exact value of &lt;CODE&gt;N_os&lt;/CODE&gt; (so that it matches - this is the "AIX" one). Unfortunaty the search proceeds as usual (no errors) but &lt;CODE&gt;N_osgroup&lt;/CODE&gt; is not created on the left-side fields bar.&lt;/P&gt;

&lt;P&gt;Thank you in advance for any pointers!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2014 14:10:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-file-not-queried/m-p/198705#M57503</guid>
      <dc:creator>wsw70</dc:creator>
      <dc:date>2014-06-16T14:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: lookup file not queried?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-file-not-queried/m-p/198706#M57504</link>
      <description>&lt;P&gt;Did you try all this with lookups without double quotes? I don't remember 100% but I &lt;EM&gt;think&lt;/EM&gt; that Splunk will try to match on everything including the quotes unless you have quotes in the corresponding header as well.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2014 14:14:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-file-not-queried/m-p/198706#M57504</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-06-16T14:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: lookup file not queried?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-file-not-queried/m-p/198707#M57505</link>
      <description>&lt;P&gt;Yes, I did try with and without the double quotes&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2014 14:29:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-file-not-queried/m-p/198707#M57505</guid>
      <dc:creator>wsw70</dc:creator>
      <dc:date>2014-06-16T14:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: lookup file not queried?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-file-not-queried/m-p/198708#M57506</link>
      <description>&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;You definitely don't need double quotes in the csv file, and it has to be an exact match.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Your search as described in your question should work. However, just because you mention the field in your search doesn't mean it will show up on the left. Splunk may have decided in its infinite wisdom that it is not an "interesting" field, and you will have to either (Splunk 5) click on the "View all 327 fields" link at the bottom or (Splunk 6) click on the "All Fields" link at the top, to see it show up. (You can then add it to the list of selected fields so you don't have to do that each time.)&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 16 Jun 2014 15:08:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-file-not-queried/m-p/198708#M57506</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-06-16T15:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: lookup file not queried?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-file-not-queried/m-p/198709#M57507</link>
      <description>&lt;P&gt;@aweitzman: this is it! I did look at all fields but now realized that Splunk 6 does not show all fields even when one chooses this option. It is only after I selected "All  fields" on teh top, then &lt;EM&gt;again&lt;/EM&gt; "all fields" in the chooser (which only shows fields &amp;gt; 1%) than it appeared. Thank you (could you please copy your comment into an answer so that I can accept it?). I will open a new question on wildcard fields in the .csv lookup file (it would be a shame if it was not possible)&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2014 15:14:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-file-not-queried/m-p/198709#M57507</guid>
      <dc:creator>wsw70</dc:creator>
      <dc:date>2014-06-16T15:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: lookup file not queried?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-file-not-queried/m-p/198710#M57508</link>
      <description>&lt;P&gt;You're welcome. Comment is copied to answer.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2014 15:19:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-file-not-queried/m-p/198710#M57508</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-06-16T15:19:08Z</dc:date>
    </item>
  </channel>
</rss>

