<?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 lookup based on 2 fields not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/lookup-based-on-2-fields-not-working/m-p/106456#M27678</link>
    <description>&lt;P&gt;i have created a lookup.csv file as below and uploaded the file.&lt;BR /&gt;
then i have created lookup definition with this particular file.&lt;BR /&gt;
then i have created a automatic lookup where the lookup input fields are hostname and technology and the lookup output fields is gold.&lt;/P&gt;

&lt;P&gt;Gold.csv&lt;BR /&gt;
technology  hostname    gold&lt;BR /&gt;
OS  stc08a00    sts08a00&lt;BR /&gt;
OS  std08a00    sts08a00&lt;BR /&gt;
OS  std08a01    sts08a00&lt;BR /&gt;
OS  sts08a00    sts08a00&lt;BR /&gt;
SAP stc08a00    sts08a00&lt;BR /&gt;
SAP std08a00    sts08a00&lt;BR /&gt;
SAP std08a01    sts08a00&lt;BR /&gt;
SAP sts08a00    sts08a00&lt;/P&gt;

&lt;P&gt;now when i write a search to get the gold of SAP, its not returning any gold value but when i search for OS it works.&lt;BR /&gt;
query and results:&lt;BR /&gt;
index="abc" technology=OS |  table hostname,gold&lt;BR /&gt;
    host    gold&lt;BR /&gt;
1   std08a01    sts08a00&lt;BR /&gt;
2   stc08a00    sts08a00&lt;BR /&gt;
3   std08a01    sts08a00&lt;BR /&gt;
4   stc08a00    sts08a00&lt;BR /&gt;
5   std08a00    sts08a00&lt;BR /&gt;
6   sts08a00&lt;BR /&gt;&lt;BR /&gt;
7   std08a00    sts08a00&lt;BR /&gt;
8   sts08a00&lt;BR /&gt;&lt;BR /&gt;
index="abc" technology=SAP|  table hostname,gold&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host    gold
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;1   std08a01&lt;BR /&gt;&lt;BR /&gt;
2   stc08a00&lt;BR /&gt;&lt;BR /&gt;
3   std08a00&lt;BR /&gt;&lt;BR /&gt;
4   stc08a00&lt;BR /&gt;&lt;BR /&gt;
5   sts08a00&lt;BR /&gt;&lt;BR /&gt;
6   std08a00&lt;BR /&gt;&lt;BR /&gt;
7   std08a01&lt;BR /&gt;&lt;BR /&gt;
8   sts08a00    &lt;/P&gt;

&lt;P&gt;please let me know where i am going wrong. doesnt lookup work when we use 2 fields as input?&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2013 18:46:19 GMT</pubDate>
    <dc:creator>spyme72</dc:creator>
    <dc:date>2013-10-18T18:46:19Z</dc:date>
    <item>
      <title>lookup based on 2 fields not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-based-on-2-fields-not-working/m-p/106456#M27678</link>
      <description>&lt;P&gt;i have created a lookup.csv file as below and uploaded the file.&lt;BR /&gt;
then i have created lookup definition with this particular file.&lt;BR /&gt;
then i have created a automatic lookup where the lookup input fields are hostname and technology and the lookup output fields is gold.&lt;/P&gt;

&lt;P&gt;Gold.csv&lt;BR /&gt;
technology  hostname    gold&lt;BR /&gt;
OS  stc08a00    sts08a00&lt;BR /&gt;
OS  std08a00    sts08a00&lt;BR /&gt;
OS  std08a01    sts08a00&lt;BR /&gt;
OS  sts08a00    sts08a00&lt;BR /&gt;
SAP stc08a00    sts08a00&lt;BR /&gt;
SAP std08a00    sts08a00&lt;BR /&gt;
SAP std08a01    sts08a00&lt;BR /&gt;
SAP sts08a00    sts08a00&lt;/P&gt;

&lt;P&gt;now when i write a search to get the gold of SAP, its not returning any gold value but when i search for OS it works.&lt;BR /&gt;
query and results:&lt;BR /&gt;
index="abc" technology=OS |  table hostname,gold&lt;BR /&gt;
    host    gold&lt;BR /&gt;
1   std08a01    sts08a00&lt;BR /&gt;
2   stc08a00    sts08a00&lt;BR /&gt;
3   std08a01    sts08a00&lt;BR /&gt;
4   stc08a00    sts08a00&lt;BR /&gt;
5   std08a00    sts08a00&lt;BR /&gt;
6   sts08a00&lt;BR /&gt;&lt;BR /&gt;
7   std08a00    sts08a00&lt;BR /&gt;
8   sts08a00&lt;BR /&gt;&lt;BR /&gt;
index="abc" technology=SAP|  table hostname,gold&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host    gold
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;1   std08a01&lt;BR /&gt;&lt;BR /&gt;
2   stc08a00&lt;BR /&gt;&lt;BR /&gt;
3   std08a00&lt;BR /&gt;&lt;BR /&gt;
4   stc08a00&lt;BR /&gt;&lt;BR /&gt;
5   sts08a00&lt;BR /&gt;&lt;BR /&gt;
6   std08a00&lt;BR /&gt;&lt;BR /&gt;
7   std08a01&lt;BR /&gt;&lt;BR /&gt;
8   sts08a00    &lt;/P&gt;

&lt;P&gt;please let me know where i am going wrong. doesnt lookup work when we use 2 fields as input?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 18:46:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-based-on-2-fields-not-working/m-p/106456#M27678</guid>
      <dc:creator>spyme72</dc:creator>
      <dc:date>2013-10-18T18:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: lookup based on 2 fields not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-based-on-2-fields-not-working/m-p/106457#M27679</link>
      <description>&lt;P&gt;it worked, the issue was in the data where i had the field name as host instead of hostname. fixing that fixed the lookup&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 20:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-based-on-2-fields-not-working/m-p/106457#M27679</guid>
      <dc:creator>spyme72</dc:creator>
      <dc:date>2013-10-18T20:44:39Z</dc:date>
    </item>
  </channel>
</rss>

