<?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 Transactioned Orphaned Events in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Transactioned-Orphaned-Events/m-p/380627#M3856</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;I'm building / improving one of the alerts which we use to detect when a event log has been turned off from logging.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog tag=Reboot OR tag=Clear
| transaction endswith=tag=Clear startswith=tag=Reboot maxevents=2 maxspan=30m keeporphans=t
| stats list(duration) as Duration by dest
| mvexpand Duration
| where Duration&amp;gt;300 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The code above works great, although I'm struggling to finish it off. &lt;/P&gt;

&lt;P&gt;I'm trying to find if a log has been cleared without a corresponding reboot has taken place. I'm guessing that I need to use keeporphans, but I can't get it to be placed in the stats field for that specific event.&lt;/P&gt;

&lt;P&gt;Any help is appreciated.&lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;

&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2019 15:56:23 GMT</pubDate>
    <dc:creator>swright_rl</dc:creator>
    <dc:date>2019-03-26T15:56:23Z</dc:date>
    <item>
      <title>Transactioned Orphaned Events</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Transactioned-Orphaned-Events/m-p/380627#M3856</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;I'm building / improving one of the alerts which we use to detect when a event log has been turned off from logging.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog tag=Reboot OR tag=Clear
| transaction endswith=tag=Clear startswith=tag=Reboot maxevents=2 maxspan=30m keeporphans=t
| stats list(duration) as Duration by dest
| mvexpand Duration
| where Duration&amp;gt;300 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The code above works great, although I'm struggling to finish it off. &lt;/P&gt;

&lt;P&gt;I'm trying to find if a log has been cleared without a corresponding reboot has taken place. I'm guessing that I need to use keeporphans, but I can't get it to be placed in the stats field for that specific event.&lt;/P&gt;

&lt;P&gt;Any help is appreciated.&lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;

&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 15:56:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Transactioned-Orphaned-Events/m-p/380627#M3856</guid>
      <dc:creator>swright_rl</dc:creator>
      <dc:date>2019-03-26T15:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Transactioned Orphaned Events</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Transactioned-Orphaned-Events/m-p/380628#M3857</link>
      <description>&lt;P&gt;Answered my own question&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog tag=Reboot OR tag=Clear 
| transaction endswith=tag=Clear startswith=tag=Reboot maxevents=2 maxspan=40m  keepevicted=true 
| stats list(duration) as Duration by dest 
| mvexpand Duration 
| append  
    [ search index=wineventlog tag=Reboot OR tag=Clear 
    | transaction endswith=tag=Clear startswith=tag=Reboot maxevents=2 maxspan=40m  keepevicted=true
    | search closed_txn=0 
    | eval Lone=if(closed_txn=0 AND EventCode=1100,"1","0") 
    | stats list(Lone) as Lone_Clear by dest 
    | mvexpand Lone_Clear 
    | where Lone_Clear=1] 
| where Duration&amp;gt;1800 OR Lone_Clear=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Mar 2019 11:52:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Transactioned-Orphaned-Events/m-p/380628#M3857</guid>
      <dc:creator>swright_rl</dc:creator>
      <dc:date>2019-03-27T11:52:50Z</dc:date>
    </item>
  </channel>
</rss>

