<?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: output transaction events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/output-transaction-events/m-p/249963#M74609</link>
    <description>&lt;P&gt;New date column appears but no time.  This should be pulled from the event itself right?&lt;BR /&gt;
This is the format of one event:&lt;BR /&gt;
03/16/2016 11:03:09 AM&lt;BR /&gt;
LogName=Security&lt;BR /&gt;
SourceName=Microsoft Windows Security Auditing&lt;BR /&gt;
EventCode=4624&lt;BR /&gt;
EventType=0&lt;BR /&gt;
...&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2016 16:07:02 GMT</pubDate>
    <dc:creator>smudge797</dc:creator>
    <dc:date>2016-03-16T16:07:02Z</dc:date>
    <item>
      <title>output transaction events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/output-transaction-events/m-p/249961#M74607</link>
      <description>&lt;P&gt;Im using this search for monitoring security events:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="WinEventLog:Security" EventCode=4624 OR EventCode=4634  Account_Name=*  action=success 
| eval User=if(mvcount(Account_Name)&amp;gt;1, mvindex(Account_Name,1), mvindex(Account_Name, 0))  
|eval User=lower(User)| search NOT User=*$
| transaction User maxevents=2 startswith="EventCode=4624" endswith="EventCode=4634" maxspan=-1
|stats sum(duration) As Duration by User, ComputerName
|eval Duration(M)=round((Duration/60), 0) 
|table  User,Duration(M),ComputerName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want the output to be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;date, user, Duration, ComputerName
day1 user1 10 comp1.com
day2 user1 17 comp1.com
day3 user1 5 comp1.com
day1 user2 17 comp2.com
day2 user2 11 comp2.com
day3 user2 13 comp2.com
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas?&lt;BR /&gt;
Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 14:36:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/output-transaction-events/m-p/249961#M74607</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-03-16T14:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: output transaction events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/output-transaction-events/m-p/249962#M74608</link>
      <description>&lt;P&gt;I haven't looked into your logic, but I suppose your question is to include Date also into the grouping? Please try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype="WinEventLog:Security" EventCode=4624 OR EventCode=4634  Account_Name=*  action=success 
  | eval User=if(mvcount(Account_Name)&amp;gt;1, mvindex(Account_Name,1), mvindex(Account_Name, 0))  
  | eval User=lower(User)| search NOT User=*$
  | transaction User maxevents=2 startswith="EventCode=4624" endswith="EventCode=4634" maxspan=-1
  | convert timeformat="%Y-%m-%d" ctime(_time) AS date
  | stats sum(duration) As Duration by date, User, ComputerName
  | eval Duration(M)=round((Duration/60), 0) 
  | table  date,User,Duration(M),ComputerName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Mar 2016 15:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/output-transaction-events/m-p/249962#M74608</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2016-03-16T15:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: output transaction events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/output-transaction-events/m-p/249963#M74609</link>
      <description>&lt;P&gt;New date column appears but no time.  This should be pulled from the event itself right?&lt;BR /&gt;
This is the format of one event:&lt;BR /&gt;
03/16/2016 11:03:09 AM&lt;BR /&gt;
LogName=Security&lt;BR /&gt;
SourceName=Microsoft Windows Security Auditing&lt;BR /&gt;
EventCode=4624&lt;BR /&gt;
EventType=0&lt;BR /&gt;
...&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 16:07:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/output-transaction-events/m-p/249963#M74609</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-03-16T16:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: output transaction events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/output-transaction-events/m-p/249964#M74610</link>
      <description>&lt;P&gt;can you please try sourcetype instead of  source .. (amended the above query). Are you getting some data at all?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 16:35:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/output-transaction-events/m-p/249964#M74610</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2016-03-16T16:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: output transaction events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/output-transaction-events/m-p/249965#M74611</link>
      <description>&lt;P&gt;Awesome!  looking good now.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Could the results be consolidated into a single entry per day?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 16:49:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/output-transaction-events/m-p/249965#M74611</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-03-16T16:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: output transaction events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/output-transaction-events/m-p/249966#M74612</link>
      <description>&lt;P&gt;definitely. But you are asking it to Split  by date, then by user, then by computerName..&lt;BR /&gt;
So it will do splitting on each of them&lt;/P&gt;

&lt;P&gt;if you are thinking to have non-relational data output, you have many other commands to have a single date entry for multiple users,computerName etc..&lt;/P&gt;

&lt;P&gt;(Please vote/mark answer if the solution helped) Cheers.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 16:55:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/output-transaction-events/m-p/249966#M74612</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2016-03-16T16:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: output transaction events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/output-transaction-events/m-p/249967#M74613</link>
      <description>&lt;P&gt;Yeah cool thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 17:03:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/output-transaction-events/m-p/249967#M74613</guid>
      <dc:creator>smudge797</dc:creator>
      <dc:date>2016-03-16T17:03:30Z</dc:date>
    </item>
  </channel>
</rss>

