<?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: Problem with Lookup table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-Lookup-table/m-p/20254#M3142</link>
    <description>&lt;P&gt;Issue was in the lookup tables itself. Rectified it. Thanks for the help/&lt;/P&gt;</description>
    <pubDate>Fri, 02 Nov 2012 13:04:14 GMT</pubDate>
    <dc:creator>theouhuios</dc:creator>
    <dc:date>2012-11-02T13:04:14Z</dc:date>
    <item>
      <title>Problem with Lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-Lookup-table/m-p/20250#M3138</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;While using lookup table there are multiple entries coming up even when in the lookup table they have distinct values stored.&lt;/P&gt;

&lt;P&gt;Here is a gist of data in the lookup file&lt;/P&gt;

&lt;P&gt;threshold CI&lt;BR /&gt;
"1.00",AN100489&lt;BR /&gt;
"1.00",WASBFBLV&lt;BR /&gt;
"1.00",AN100369&lt;BR /&gt;
"1.00",AN100357&lt;BR /&gt;
"1.00",AN100399&lt;BR /&gt;
"1.00",AN100281&lt;BR /&gt;
"1.00",AN100090&lt;BR /&gt;
"1.00",AN100570&lt;BR /&gt;
"1.00",WASBHJ8B&lt;/P&gt;

&lt;P&gt;Now when I use it in search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="incident"| rename record.affectedCI as CI | lookup threshold-Lookup CI AS CI OUTPUT threshold AS threshold | table CI threshold| 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the data comes as &lt;BR /&gt;
    1   WTSDK3LD&lt;BR /&gt;&lt;BR /&gt;
2   WTSDHFTB    1.00&lt;BR /&gt;
3   WTSDHFTB    1.00&lt;BR /&gt;
4   WTSDHFTB    1.00&lt;BR /&gt;
5   WTSDHFS4    1.00&lt;BR /&gt;
6   WTSDHFS4    1.00&lt;BR /&gt;
7   WTSDC4NQ    1.00&lt;BR /&gt;
8   WTSDC4NQ    1.00&lt;BR /&gt;
9   WTSDC4NQ    1.00&lt;BR /&gt;
10  WTSDC4NQ    1.00&lt;BR /&gt;
11  WTSDC4NQ    1.00&lt;BR /&gt;
12  WTSDC4NQ    1.00&lt;BR /&gt;
13  WTSDB9JG    1.00&lt;/P&gt;

&lt;P&gt;Any idea on how can I make it distinct so that it lists it only once? I need it to be uniq as I will be comparing the threshold to other fields to generate emails.&lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;theou&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2012 14:31:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-Lookup-table/m-p/20250#M3138</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2012-11-01T14:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-Lookup-table/m-p/20251#M3139</link>
      <description>&lt;P&gt;I believe you want the dedup command. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype="incident"| rename record.affectedCI as CI | lookup threshold-Lookup CI AS CI OUTPUT threshold AS threshold | dedup CI| table CI threshold&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;A href="http://www.splunk.com/base/Documentation/5.0/SearchReference/Dedup" target="test_blank"&gt;http://www.splunk.com/base/Documentation/5.0/SearchReference/Dedup&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2012 14:37:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-Lookup-table/m-p/20251#M3139</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-11-01T14:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-Lookup-table/m-p/20252#M3140</link>
      <description>&lt;P&gt;I tried with dedup too. But it's still the same.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;WASDQYMK    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;1.00&lt;BR /&gt;
1.00&lt;BR /&gt;
1.00&lt;BR /&gt;
1.00&lt;/P&gt;

&lt;P&gt;Would this be an issue with the lookup table?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2012 15:02:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-Lookup-table/m-p/20252#M3140</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2012-11-01T15:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-Lookup-table/m-p/20253#M3141</link>
      <description>&lt;P&gt;How about: &lt;CODE&gt;sourcetype="incident" | lookup threshold-Lookup record.affectedCI AS CI OUTPUT threshold|dedup CI |stats values(threshold) as threshold by CI&lt;/CODE&gt; ? If not, could you provide a table of the information you'd like to see? (please use backticks to preserve formatting)&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2012 15:05:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-Lookup-table/m-p/20253#M3141</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-11-01T15:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-Lookup-table/m-p/20254#M3142</link>
      <description>&lt;P&gt;Issue was in the lookup tables itself. Rectified it. Thanks for the help/&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2012 13:04:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-Lookup-table/m-p/20254#M3142</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2012-11-02T13:04:14Z</dc:date>
    </item>
  </channel>
</rss>

