<?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 to filter two different actions events based on a common field in both in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-two-different-actions-events-based-on-a-common/m-p/451384#M171291</link>
    <description>&lt;P&gt;if an action 1 triggers one event of common field=A  and action 2 triggers ten events of common field= A, B or C. How do i identify and filter the Acton 1 and 2 separately? &lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2019 19:10:44 GMT</pubDate>
    <dc:creator>massumtaqi</dc:creator>
    <dc:date>2019-05-10T19:10:44Z</dc:date>
    <item>
      <title>How to filter two different actions events based on a common field in both</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-two-different-actions-events-based-on-a-common/m-p/451384#M171291</link>
      <description>&lt;P&gt;if an action 1 triggers one event of common field=A  and action 2 triggers ten events of common field= A, B or C. How do i identify and filter the Acton 1 and 2 separately? &lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 19:10:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-two-different-actions-events-based-on-a-common/m-p/451384#M171291</guid>
      <dc:creator>massumtaqi</dc:creator>
      <dc:date>2019-05-10T19:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter two different actions events based on a common field in both</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-two-different-actions-events-based-on-a-common/m-p/451385#M171292</link>
      <description>&lt;P&gt;Show sample events and mockup of desired final output.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 20:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-two-different-actions-events-based-on-a-common/m-p/451385#M171292</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-05-10T20:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter two different actions events based on a common field in both</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-two-different-actions-events-based-on-a-common/m-p/451386#M171293</link>
      <description>&lt;P&gt;Action one triggers 1 event : &lt;/P&gt;

&lt;P&gt;Logon_Type&lt;BR /&gt;
3&lt;BR /&gt;
_time&lt;BR /&gt;
2019-05-10T14:38:12.000-0400&lt;/P&gt;

&lt;P&gt;Action two triggers 12 concurrent events :&lt;/P&gt;

&lt;P&gt;Logon_Type&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
10&lt;BR /&gt;
3&lt;/P&gt;

&lt;P&gt;_time&lt;BR /&gt;
2019-05-10T14:32:13.000-0400&lt;BR /&gt;
2019-05-10T14:32:12.000-0400&lt;BR /&gt;
2019-05-10T14:32:12.000-0400&lt;BR /&gt;
2019-05-10T14:32:12.000-0400&lt;BR /&gt;
2019-05-10T14:32:12.000-0400&lt;BR /&gt;
2019-05-10T14:32:12.000-0400&lt;BR /&gt;
2019-05-10T14:32:12.000-0400&lt;BR /&gt;
2019-05-10T14:32:12.000-0400&lt;BR /&gt;
2019-05-10T14:32:11.000-0400&lt;BR /&gt;
2019-05-10T14:32:11.000-0400&lt;BR /&gt;
2019-05-10T14:32:10.000-0400&lt;/P&gt;

&lt;P&gt;I want to see first one only&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 20:34:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-two-different-actions-events-based-on-a-common/m-p/451386#M171293</guid>
      <dc:creator>massumtaqi</dc:creator>
      <dc:date>2019-05-10T20:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter two different actions events based on a common field in both</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-two-different-actions-events-based-on-a-common/m-p/451387#M171294</link>
      <description>&lt;P&gt;Like this (or similar):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;((index="YouShouldAlwaysSpecifyAnIndex" AND sourcetype="AndSourcetypeToo") OR (index="YouShouldAlwaysSpecifyOtherIndex" AND sourcetype="AndOtherSourcetypeToo")) AND Logon_Type="*"
| stats latest(_raw) AS _raw count dc(sourcetype) AS sourcetypeCount BY host
| where count&amp;gt;1 OR sourcetypeCount&amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 May 2019 05:15:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-two-different-actions-events-based-on-a-common/m-p/451387#M171294</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-05-11T05:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter two different actions events based on a common field in both</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-two-different-actions-events-based-on-a-common/m-p/451388#M171295</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;EventCode=4624
| rex "(?ms)Logon Type:...(?&amp;lt;Logon_Type&amp;gt;\w+)"
| rex "(?ms)New Logon:\s+Security ID:..(?&amp;lt;Login_Security_ID&amp;gt;[AEW]+.\w+.\w+)"
| where (like (Login_Security_ID,"%mtaqi.a%"))
| where Logon_GUID!="{00000000-0000-0000-0000-000000000000}"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is my code above that shows all 13 events for both actions . what do i do to see only event 1 of logon_type 3 caused by first action ?&lt;/P&gt;

&lt;P&gt;The code you provided also show all 13 events&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2019 21:24:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-two-different-actions-events-based-on-a-common/m-p/451388#M171295</guid>
      <dc:creator>massumtaqi</dc:creator>
      <dc:date>2019-05-11T21:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter two different actions events based on a common field in both</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-two-different-actions-events-based-on-a-common/m-p/451389#M171296</link>
      <description>&lt;P&gt;First of all, your sample events don't make sense: your "first event" has a timestamp &lt;EM&gt;after&lt;/EM&gt; all of the other events that "it caused" and your 12 events only have 11 timestamps listed (worst of all, the one that is not there is the most important one, the one that you desire).  You should install the Windows TA so that your field extractions are automatic.  I say this all the time: sow us your sample events (you were close but not all the way there), and a mockup of your desired final output.  Then we can help.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2019 20:11:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-two-different-actions-events-based-on-a-common/m-p/451389#M171296</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-06T20:11:42Z</dc:date>
    </item>
  </channel>
</rss>

