<?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 is Splunk search returning additional results not specified in Lookup table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-search-returning-additional-results-not-specified/m-p/592003#M206076</link>
    <description>&lt;P&gt;Give this a try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=&amp;lt;index name&amp;gt; EventID IN (4728,4729) TargetUserName IN
[| inputlookup Test_Splunk_Lookup_Table_v2.csv
| head 200 | rename Group_Name as search | table search | format "(" "" "" "" "" ")" ]
| eval EventID=case(EventID=="4728","Added",EventID=="4729","Removed")| rename Computer AS "Domain Controller",TargetUserName AS "Group",EventID AS "Action"| table "_time","SubjectUserName","Action","MemberName","Group","Domain Controller"
&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 01 Apr 2022 18:57:29 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2022-04-01T18:57:29Z</dc:date>
    <item>
      <title>Why is Splunk search returning additional results not specified in Lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-search-returning-additional-results-not-specified/m-p/591979#M206063</link>
      <description>&lt;P&gt;I have a query to search particular event id's from Active Directory and see what Targets these apply to.&amp;nbsp; Instead of listing 100 different AD groups, I chose to use a lookup table.&amp;nbsp; My query is as follows:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=&amp;lt;index name&amp;gt; EventID IN (4728,4729) TargetUserName IN
[| inputlookup Test_Splunk_Lookup_Table_v2.csv
| return 200 "$Group_Name"]
| eval EventID=case(EventID=="4728","Added",EventID=="4729","Removed")| rename Computer AS "Domain Controller",TargetUserName AS "Group",EventID AS "Action"| table "_time","SubjectUserName","Action","MemberName","Group","Domain Controller"&lt;/LI-CODE&gt;
&lt;P&gt;The search works well as long as the Group Names in the lookup tables are unique.&amp;nbsp; But if there is an entry in the lookup table that has derivatives(i.e. AD_Group), it returns all the derivatives also instead of what is in the lookup table only.&lt;/P&gt;
&lt;P&gt;EX. Lookup Table&lt;/P&gt;
&lt;P&gt;Group_Name column contains "AD_Group", "AD_Group_1", "AD_Group_2"&lt;/P&gt;
&lt;P&gt;The search returns all the above groups plus additional groups not in the lookup table; AD_Group_3, AD_Group_4, etc...&lt;/P&gt;
&lt;P&gt;I need to know how I can just return the entries in the list and not the derivatives of AD_Group.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 18:06:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-search-returning-additional-results-not-specified/m-p/591979#M206063</guid>
      <dc:creator>hillsmtb7</dc:creator>
      <dc:date>2022-04-01T18:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search returning additional results not specified in Lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-search-returning-additional-results-not-specified/m-p/591991#M206068</link>
      <description>&lt;P&gt;Does your lookup table data has any wildcard "*" in them? An actual example would be better.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 18:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-search-returning-additional-results-not-specified/m-p/591991#M206068</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-04-01T18:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search returning additional results not specified in Lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-search-returning-additional-results-not-specified/m-p/592000#M206073</link>
      <description>&lt;TABLE width="114"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="114"&gt;Group_Name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AD_Group&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AD_Group_2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AD_Group_3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AD_Group_Addon&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AD_Group_Test&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AD_Group_Watch&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the lookup table example.&amp;nbsp; The issue is with the first group since it brings back results for row 2 and 3 correctly, but also other groups that meet the beginning criterion "AD_Group" but are not part of the list.&lt;/P&gt;&lt;P&gt;My search without the first group produce 29 entries for the past 30 days; and correctly so.&amp;nbsp; But if I were to add the first line to the Lookup table, 800+ entries return because of the derivatives of the first part AD_Group.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 18:38:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-search-returning-additional-results-not-specified/m-p/592000#M206073</guid>
      <dc:creator>hillsmtb7</dc:creator>
      <dc:date>2022-04-01T18:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search returning additional results not specified in Lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-search-returning-additional-results-not-specified/m-p/592001#M206074</link>
      <description>&lt;P&gt;AD_Group_4, AD_Group_5, AD_Group_6, are not part of the list but show up because AD_Group is part of the lookup table.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 18:40:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-search-returning-additional-results-not-specified/m-p/592001#M206074</guid>
      <dc:creator>hillsmtb7</dc:creator>
      <dc:date>2022-04-01T18:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk search returning additional results not specified in Lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-search-returning-additional-results-not-specified/m-p/592003#M206076</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=&amp;lt;index name&amp;gt; EventID IN (4728,4729) TargetUserName IN
[| inputlookup Test_Splunk_Lookup_Table_v2.csv
| head 200 | rename Group_Name as search | table search | format "(" "" "" "" "" ")" ]
| eval EventID=case(EventID=="4728","Added",EventID=="4729","Removed")| rename Computer AS "Domain Controller",TargetUserName AS "Group",EventID AS "Action"| table "_time","SubjectUserName","Action","MemberName","Group","Domain Controller"
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 01 Apr 2022 18:57:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-search-returning-additional-results-not-specified/m-p/592003#M206076</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-04-01T18:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk search returning additional results not specified in Lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-search-returning-additional-results-not-specified/m-p/592014#M206081</link>
      <description>&lt;P&gt;somesoni2 - Great Job....This worked.&amp;nbsp; Thank you!!!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 19:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Splunk-search-returning-additional-results-not-specified/m-p/592014#M206081</guid>
      <dc:creator>hillsmtb7</dc:creator>
      <dc:date>2022-04-01T19:47:25Z</dc:date>
    </item>
  </channel>
</rss>

