<?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: How to correlate Windows security logs in indexA with IN/OUT status of users in indexB and alert if a user logs in to their workstation with an OUT status? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-correlate-Windows-security-logs-in-indexA-with-IN-OUT/m-p/203076#M3528</link>
    <description>&lt;P&gt;thank you. Let me try to get this working. I will report back&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2015 13:13:35 GMT</pubDate>
    <dc:creator>cbr654</dc:creator>
    <dc:date>2015-10-22T13:13:35Z</dc:date>
    <item>
      <title>How to correlate Windows security logs in indexA with IN/OUT status of users in indexB and alert if a user logs in to their workstation with an OUT status?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-correlate-Windows-security-logs-in-indexA-with-IN-OUT/m-p/203074#M3526</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I ready thru some documentation, but I need a nudge in the right direction. I  have an index that has information on when a user is IN or OUT of the office. I would like to be alerted when someone logs into their workstation when the are OUT of the office.  My Windows security logs are in a different index than my logs that contain IN/OUT status.  I am a bit confused on if I should begin with "transaction" or subsearches. Any help will be appreciated. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 20:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-correlate-Windows-security-logs-in-indexA-with-IN-OUT/m-p/203074#M3526</guid>
      <dc:creator>cbr654</dc:creator>
      <dc:date>2015-10-21T20:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to correlate Windows security logs in indexA with IN/OUT status of users in indexB and alert if a user logs in to their workstation with an OUT status?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-correlate-Windows-security-logs-in-indexA-with-IN-OUT/m-p/203075#M3527</link>
      <description>&lt;P&gt;See the transaction command herer &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/Transaction"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/Transaction&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What you need (IMO) is that find events grouping (transactions) which will start when user is out of office and ends when someone logs in the work station. You can correlate both the logs (in different index) like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=A other filters to get IN/OUT time) OR (index=B other filter to get Windows sercurity logs) | transaction YourCommondField startswith="condition for OUT" endswith="condition for someone logged in"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Oct 2015 21:25:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-correlate-Windows-security-logs-in-indexA-with-IN-OUT/m-p/203075#M3527</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-21T21:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to correlate Windows security logs in indexA with IN/OUT status of users in indexB and alert if a user logs in to their workstation with an OUT status?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-correlate-Windows-security-logs-in-indexA-with-IN-OUT/m-p/203076#M3528</link>
      <description>&lt;P&gt;thank you. Let me try to get this working. I will report back&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 13:13:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-correlate-Windows-security-logs-in-indexA-with-IN-OUT/m-p/203076#M3528</guid>
      <dc:creator>cbr654</dc:creator>
      <dc:date>2015-10-22T13:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to correlate Windows security logs in indexA with IN/OUT status of users in indexB and alert if a user logs in to their workstation with an OUT status?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-correlate-Windows-security-logs-in-indexA-with-IN-OUT/m-p/203077#M3529</link>
      <description>&lt;P&gt;I would use streamstats like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=A other filters to get IN/OUT time) OR (index=B other filter to get Windows sercurity logs) | reverse | streamstats current=t latest(userStatusFieldThatIsEitherInOrOut) AS lastStatus by userIdField | where lastStatus="Out" AND EventCode="LoginCode"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Oct 2015 14:06:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-correlate-Windows-security-logs-in-indexA-with-IN-OUT/m-p/203077#M3529</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-22T14:06:34Z</dc:date>
    </item>
  </channel>
</rss>

