<?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 Report on how log a user was logged on? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Report-on-how-log-a-user-was-logged-on/m-p/267176#M80379</link>
    <description>&lt;P&gt;I am trying to generate a report that show how long users stayed logged on. I can do a search and find the users and event codes I am interested in but is there a way of comparing event times and generating a timeframe between events? In other words, is the a way to subtract the time that event code 4624 happened from event code 4634 for Account_Name=XXXX? &lt;/P&gt;

&lt;P&gt;Using Splunk 6.3 on Lynx getting events from Wineventlog_security.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Oct 2015 14:46:22 GMT</pubDate>
    <dc:creator>neiowe</dc:creator>
    <dc:date>2015-10-08T14:46:22Z</dc:date>
    <item>
      <title>Report on how log a user was logged on?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Report-on-how-log-a-user-was-logged-on/m-p/267176#M80379</link>
      <description>&lt;P&gt;I am trying to generate a report that show how long users stayed logged on. I can do a search and find the users and event codes I am interested in but is there a way of comparing event times and generating a timeframe between events? In other words, is the a way to subtract the time that event code 4624 happened from event code 4634 for Account_Name=XXXX? &lt;/P&gt;

&lt;P&gt;Using Splunk 6.3 on Lynx getting events from Wineventlog_security.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 14:46:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Report-on-how-log-a-user-was-logged-on/m-p/267176#M80379</guid>
      <dc:creator>neiowe</dc:creator>
      <dc:date>2015-10-08T14:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Report on how log a user was logged on?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Report-on-how-log-a-user-was-logged-on/m-p/267177#M80380</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=YourIndex source="WinEventLog:Security" EventCode=4624 OR EventCode=4634 | transaction Account_Name startswith=EventCode=4624 endswith=EventCode=4634  maxevents=2 | table _time Account_Name duration 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Oct 2015 19:49:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Report-on-how-log-a-user-was-logged-on/m-p/267177#M80380</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-08T19:49:50Z</dc:date>
    </item>
  </channel>
</rss>

