<?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: Search for users who have triggered multiple Windows Event Codes in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-users-who-have-triggered-multiple-Windows-Event-Codes/m-p/261767#M50266</link>
    <description>&lt;P&gt;You could do it this way:&lt;/P&gt;

&lt;P&gt;sourcetype=wineventlog* |stats values(EventCode) by ComputerName |rename values(EventCode) AS eventCodeList |search (eventCodeList=1002 AND eventCodeList=1004 AND eventCodeList=1006)&lt;/P&gt;

&lt;P&gt;Basically I am pulling the values in the EventCode and grouping by ComputerName, I rename that field and then I do a subsearch for those 3 values in my initial result set.  Depending on what you want the final result to look like, you may want to think about time frame, sequence of event codes and if you want to narrow your initial search to a smaller event code population to streamline the initial search.  That said, hopefully this gets you on your way.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2016 20:40:19 GMT</pubDate>
    <dc:creator>jstoner_splunk</dc:creator>
    <dc:date>2016-08-30T20:40:19Z</dc:date>
    <item>
      <title>Search for users who have triggered multiple Windows Event Codes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-users-who-have-triggered-multiple-Windows-Event-Codes/m-p/261765#M50264</link>
      <description>&lt;P&gt;I am looking for a way to show users who have matched three separate Windows Security Event Codes&lt;/P&gt;

&lt;P&gt;IE user X has (EventCode 1 AND EventCode 2 AND EventCode 3) OR ( EventCode 4 AND EventCode 5 AND EventCode 6)-&amp;gt; output the three event codes + username to a table. &lt;/P&gt;

&lt;P&gt;When I try to just use AND between EventCode, it looks for both of the EventCode numbers in the single field and doesn't find any of the results. &lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 20:13:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-for-users-who-have-triggered-multiple-Windows-Event-Codes/m-p/261765#M50264</guid>
      <dc:creator>trevorQmulos</dc:creator>
      <dc:date>2016-08-30T20:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search for users who have triggered multiple Windows Event Codes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-users-who-have-triggered-multiple-Windows-Event-Codes/m-p/261766#M50265</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=eventlogs (EventCode=1 OR EventCode=2 OR EventCode=3 OR EventCode=4 OR  EventCode=5 OR EventCode=6 | eval grp=if(EventCode=1 OR EventCode=2 OR EventCode=3, "Grp1", "Grp2") | chart values(EventCode) as ec by user grp | where (mvfilter(grp1, "1")&amp;gt;=0 AND mvfilter(grp1, "2")&amp;gt;=0 AND mvfilter(grp1, "3")&amp;gt;=0) OR (mvfilter(grp2, "4")&amp;gt;=0 AND mvfilter(grp2, "5")&amp;gt;=0 AND mvfilter(grp2, "6")&amp;gt;=0)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Aug 2016 20:22:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-for-users-who-have-triggered-multiple-Windows-Event-Codes/m-p/261766#M50265</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-30T20:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Search for users who have triggered multiple Windows Event Codes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-users-who-have-triggered-multiple-Windows-Event-Codes/m-p/261767#M50266</link>
      <description>&lt;P&gt;You could do it this way:&lt;/P&gt;

&lt;P&gt;sourcetype=wineventlog* |stats values(EventCode) by ComputerName |rename values(EventCode) AS eventCodeList |search (eventCodeList=1002 AND eventCodeList=1004 AND eventCodeList=1006)&lt;/P&gt;

&lt;P&gt;Basically I am pulling the values in the EventCode and grouping by ComputerName, I rename that field and then I do a subsearch for those 3 values in my initial result set.  Depending on what you want the final result to look like, you may want to think about time frame, sequence of event codes and if you want to narrow your initial search to a smaller event code population to streamline the initial search.  That said, hopefully this gets you on your way.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 20:40:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-for-users-who-have-triggered-multiple-Windows-Event-Codes/m-p/261767#M50266</guid>
      <dc:creator>jstoner_splunk</dc:creator>
      <dc:date>2016-08-30T20:40:19Z</dc:date>
    </item>
  </channel>
</rss>

