<?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 What does connected do in transaction command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-does-connected-do-in-transaction-command/m-p/658083#M227319</link>
    <description>&lt;P&gt;I am working to create a use case to detect account created and deleted within short period of time&lt;/P&gt;&lt;P&gt;Could you please give a simple example how connected true/false will affect results of transaction command.&lt;/P&gt;&lt;P&gt;I already referred previous answer but didnt understand the explanation.&lt;/P&gt;&lt;P&gt;Addionally also explain what is the affect of connected=true/false in the below query and also what is the best practice.&lt;/P&gt;&lt;P&gt;sourcetype=wineventlog (EventCode=4726 OR EventCode=4720)&amp;nbsp; | transaction user maxspan=240m startswith="EventCode=4720" endswith="EventCode=4726" connected=false| table Time, dest, EventCode, user, src_user, Account_Domain&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/22"&gt;@Ledion_Bitincka&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2023 06:32:06 GMT</pubDate>
    <dc:creator>mohammadsharukh</dc:creator>
    <dc:date>2023-09-20T06:32:06Z</dc:date>
    <item>
      <title>What does connected do in transaction command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-does-connected-do-in-transaction-command/m-p/658083#M227319</link>
      <description>&lt;P&gt;I am working to create a use case to detect account created and deleted within short period of time&lt;/P&gt;&lt;P&gt;Could you please give a simple example how connected true/false will affect results of transaction command.&lt;/P&gt;&lt;P&gt;I already referred previous answer but didnt understand the explanation.&lt;/P&gt;&lt;P&gt;Addionally also explain what is the affect of connected=true/false in the below query and also what is the best practice.&lt;/P&gt;&lt;P&gt;sourcetype=wineventlog (EventCode=4726 OR EventCode=4720)&amp;nbsp; | transaction user maxspan=240m startswith="EventCode=4720" endswith="EventCode=4726" connected=false| table Time, dest, EventCode, user, src_user, Account_Domain&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/22"&gt;@Ledion_Bitincka&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 06:32:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-does-connected-do-in-transaction-command/m-p/658083#M227319</guid>
      <dc:creator>mohammadsharukh</dc:creator>
      <dc:date>2023-09-20T06:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: What does connected do in transaction command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-does-connected-do-in-transaction-command/m-p/658085#M227320</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/107856"&gt;@mohammadsharukh&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if I correctly remember, there's a sample of a shourt living account in the Splunk Security Essential App, that I hint.&lt;/P&gt;&lt;P&gt;Anyway, don't use the transaction command because it's very slow, please try this search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=wineventlog (EventCode=4726 OR EventCode=4720)  
| stats 
   earliest(eval(EventCode=4720)) AS earliest
   latest(eval(EventCode=4726)) AS latest
   values(dest) AS dest
   values(src_user) AS src_user
   values(Account_Domain) AS Account_Domain
   BY user 
| eval 
   diff=latest-earliest,
   creation_time=strftime(earliest,"%Y-%m-%d %H:%M:%S"),
   deletion_time=strftime(latest,"%Y-%m-%d %H:%M:%S")
| where diff&amp;lt;240*60
| table 
   creation_time 
   deletion_time 
   dest 
   EventCode 
   user 
   src_user 
   Account_Domain&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 06:44:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-does-connected-do-in-transaction-command/m-p/658085#M227320</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-09-20T06:44:57Z</dc:date>
    </item>
  </channel>
</rss>

