<?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: Why are my search results are not matching the lookup table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-are-my-search-results-are-not-matching-the-lookup-table/m-p/205541#M59759</link>
    <description>&lt;P&gt;If I'm understanding you correctly, you would like to remove all events that do not have a matching ip from the lookup? The purpose of a lookup is to enrich your data with extra information that is contained within fields in your lookup. It will not filter your events if they do not match. In order to do this you could simply append "| search oe=&lt;EM&gt;" to the end of your search. Then only events with the field *oe&lt;/EM&gt;, which has come from your lookup, will be retained.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2016 04:54:32 GMT</pubDate>
    <dc:creator>lquinn</dc:creator>
    <dc:date>2016-11-04T04:54:32Z</dc:date>
    <item>
      <title>Why are my search results are not matching the lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-my-search-results-are-not-matching-the-lookup-table/m-p/205540#M59758</link>
      <description>&lt;P&gt;I am performing a search where I am making use of a CSV lookup and only get those results that match one of the fields in the lookup. Here's my scrubbed out search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="logs"|regex url = "..."|stats sum(bytes),count(uri) by url ip|lookup csv_lookup ip OUTPUT oe|sort -sum(bytes)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This gives out results with the unmatched events along with the matched events. Any idea what's going wrong? &lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 02:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-my-search-results-are-not-matching-the-lookup-table/m-p/205540#M59758</guid>
      <dc:creator>raghav130593</dc:creator>
      <dc:date>2016-11-04T02:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my search results are not matching the lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-my-search-results-are-not-matching-the-lookup-table/m-p/205541#M59759</link>
      <description>&lt;P&gt;If I'm understanding you correctly, you would like to remove all events that do not have a matching ip from the lookup? The purpose of a lookup is to enrich your data with extra information that is contained within fields in your lookup. It will not filter your events if they do not match. In order to do this you could simply append "| search oe=&lt;EM&gt;" to the end of your search. Then only events with the field *oe&lt;/EM&gt;, which has come from your lookup, will be retained.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 04:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-my-search-results-are-not-matching-the-lookup-table/m-p/205541#M59759</guid>
      <dc:creator>lquinn</dc:creator>
      <dc:date>2016-11-04T04:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my search results are not matching the lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-my-search-results-are-not-matching-the-lookup-table/m-p/205542#M59760</link>
      <description>&lt;P&gt;Great. Sorry I have very limited experience with Splunk hence wasn't aware  of that. But, I was able to achieve my result through what you suggested. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 07:15:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-my-search-results-are-not-matching-the-lookup-table/m-p/205542#M59760</guid>
      <dc:creator>raghav130593</dc:creator>
      <dc:date>2016-11-04T07:15:42Z</dc:date>
    </item>
  </channel>
</rss>

