<?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 How do you filter by Host and Account_Name with inputlookup and display only differences? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-filter-by-Host-and-Account-Name-with-inputlookup-and/m-p/313851#M93932</link>
    <description>&lt;P&gt;I have currently a lookup table that consists of Account_Name and Host.  This was created from Windows Event 4624 (An Account was successfully logged on) from a search parameter of the last 30 days.  I am wanting to use the lookup table to filter the Account_Name and Hosts, and display in the new query the differences that the new search brings.  For example,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Lookup Table:
Account_Name,Host
Alpha, comp1
Bravo, comp1,comp3
Charlie, comp5,comp6
Delta, comp4,comp8

New Logons Data:
Alpha, comp1,comp2
Bravo, comp2,comp3
Charlie, comp4,comp5,comp6
Delta, comp4,comp8
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So the new results should provide me with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Alpha, comp2
Bravo, comp2
Charlie, comp4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So far my query is as follow:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main EventCode=4624 NOT  [ | inputlookup lookuptable.csv ] | Table Account_Name Host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is how I set up lookup tables with one field for filtering, but trying to filter from two fields has got me stuck.&lt;/P&gt;

&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:12:45 GMT</pubDate>
    <dc:creator>chanthongphiob</dc:creator>
    <dc:date>2020-09-29T18:12:45Z</dc:date>
    <item>
      <title>How do you filter by Host and Account_Name with inputlookup and display only differences?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-filter-by-Host-and-Account-Name-with-inputlookup-and/m-p/313851#M93932</link>
      <description>&lt;P&gt;I have currently a lookup table that consists of Account_Name and Host.  This was created from Windows Event 4624 (An Account was successfully logged on) from a search parameter of the last 30 days.  I am wanting to use the lookup table to filter the Account_Name and Hosts, and display in the new query the differences that the new search brings.  For example,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Lookup Table:
Account_Name,Host
Alpha, comp1
Bravo, comp1,comp3
Charlie, comp5,comp6
Delta, comp4,comp8

New Logons Data:
Alpha, comp1,comp2
Bravo, comp2,comp3
Charlie, comp4,comp5,comp6
Delta, comp4,comp8
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So the new results should provide me with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Alpha, comp2
Bravo, comp2
Charlie, comp4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So far my query is as follow:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main EventCode=4624 NOT  [ | inputlookup lookuptable.csv ] | Table Account_Name Host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is how I set up lookup tables with one field for filtering, but trying to filter from two fields has got me stuck.&lt;/P&gt;

&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:12:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-filter-by-Host-and-Account-Name-with-inputlookup-and/m-p/313851#M93932</guid>
      <dc:creator>chanthongphiob</dc:creator>
      <dc:date>2020-09-29T18:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter by Host and Account_Name with inputlookup and display only differences?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-filter-by-Host-and-Account-Name-with-inputlookup-and/m-p/313852#M93933</link>
      <description>&lt;P&gt;Assuming an event of EventCode 4624 has single Account_Name and Host mapping and your lookup has multiple Host entries separated by comma, try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main EventCode=4624 NOT [ | inputlookup lookuptable.csv | table Account_Name Host |  makemv Host delim="," | mvexpand Host] | Table Account_Name Host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Feb 2018 17:04:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-filter-by-Host-and-Account-Name-with-inputlookup-and/m-p/313852#M93933</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-02-27T17:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter by Host and Account_Name with inputlookup and display only differences?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-filter-by-Host-and-Account-Name-with-inputlookup-and/m-p/313853#M93934</link>
      <description>&lt;P&gt;The lookup table is delimited by a space.  &lt;/P&gt;

&lt;P&gt;However, I was mistaken about the table function.  I used...&lt;/P&gt;

&lt;P&gt;index=main EventCode=4624 | stats count values(ComputerName) AS Host by Account_Name | outputlookup lookuptable.csv&lt;/P&gt;

&lt;P&gt;The results from the above query gave me my original lookup table.  Now I want to produce another query to filter with the differences from Account_Name and Host.  &lt;/P&gt;

&lt;P&gt;The first solution did not filter anything.  I ran the search without "NOT | inputlookup lookuptable.csv" and the results are the exact same with the "NOT | inputlookup lookuptable.csv" added to the query.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 21:21:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-filter-by-Host-and-Account-Name-with-inputlookup-and/m-p/313853#M93934</guid>
      <dc:creator>chanthongphiob</dc:creator>
      <dc:date>2018-02-27T21:21:03Z</dc:date>
    </item>
  </channel>
</rss>

