<?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: Time Comparison of Unique Service Start/Stop Pairs in Security</title>
    <link>https://community.splunk.com/t5/Security/Time-Comparison-of-Unique-Service-Start-Stop-Pairs/m-p/627907#M16545</link>
    <description>&lt;P&gt;Replace the last line with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=Message "The (?&amp;lt;service&amp;gt;.*?) service.^ (?&amp;lt;state&amp;gt;\w+) state"
| eval starttime=if(state="running", latestTimeStamp, null())
| eval stoptime=if(state="stopped", latestTimeStamp, null())
| stats values(starttime) as starttime values(stoptime) as stoptime by ComputerName service
| eval downtime=starttime - stoptime
| where downtime &amp;gt; 3600&lt;/LI-CODE&gt;</description>
    <pubDate>Sun, 22 Jan 2023 11:27:36 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-01-22T11:27:36Z</dc:date>
    <item>
      <title>Time Comparison of Unique Service Start/Stop Pairs</title>
      <link>https://community.splunk.com/t5/Security/Time-Comparison-of-Unique-Service-Start-Stop-Pairs/m-p/627897#M16542</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Krafter_0-1674343647298.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23490i4A062DCA634C6FAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Krafter_0-1674343647298.png" alt="Krafter_0-1674343647298.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hey all, requiring some assistance in tuning an out-of-box Splunk detection rule.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Volume Shadow Copy services frequently enters the running/stopped state by itself.&amp;nbsp;&lt;BR /&gt;I wish to compare the lastTimeStamp of the running/stopped state of a unique service.&amp;nbsp;&lt;BR /&gt;Ideally, if the comparison is more than one hour, a field stoppedForMoreThanAnHour equals to True.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How can I achieve this?&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 23:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Time-Comparison-of-Unique-Service-Start-Stop-Pairs/m-p/627897#M16542</guid>
      <dc:creator>Krafter</dc:creator>
      <dc:date>2023-01-21T23:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Time Comparison of Unique Service Start/Stop Pairs</title>
      <link>https://community.splunk.com/t5/Security/Time-Comparison-of-Unique-Service-Start-Stop-Pairs/m-p/627898#M16543</link>
      <description>&lt;P&gt;Replace the last two lines of the existing query with these.&amp;nbsp; They keep the most recent event for each computer only if it's a "stopped" event.&amp;nbsp; Then the timestamp is checked to see if it's more than an hour old.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| dedup computerName
| where match(_raw, "stopped") AND _time &amp;lt; relative_time(now(), "-1h")&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 22 Jan 2023 01:21:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Time-Comparison-of-Unique-Service-Start-Stop-Pairs/m-p/627898#M16543</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-01-22T01:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Time Comparison of Unique Service Start/Stop Pairs</title>
      <link>https://community.splunk.com/t5/Security/Time-Comparison-of-Unique-Service-Start-Stop-Pairs/m-p/627899#M16544</link>
      <description>&lt;P&gt;Hey richgalloway! Thanks for the assistance.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I don't think what you're proposing quite achieves what I wish to do, I likely explained it badly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not looking for events where the stopped message was more than an hour ago.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm looking for events where the difference in time between the "last stopped message" and "last started message" is more than an hour.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 01:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Time-Comparison-of-Unique-Service-Start-Stop-Pairs/m-p/627899#M16544</guid>
      <dc:creator>Krafter</dc:creator>
      <dc:date>2023-01-22T01:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Time Comparison of Unique Service Start/Stop Pairs</title>
      <link>https://community.splunk.com/t5/Security/Time-Comparison-of-Unique-Service-Start-Stop-Pairs/m-p/627907#M16545</link>
      <description>&lt;P&gt;Replace the last line with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=Message "The (?&amp;lt;service&amp;gt;.*?) service.^ (?&amp;lt;state&amp;gt;\w+) state"
| eval starttime=if(state="running", latestTimeStamp, null())
| eval stoptime=if(state="stopped", latestTimeStamp, null())
| stats values(starttime) as starttime values(stoptime) as stoptime by ComputerName service
| eval downtime=starttime - stoptime
| where downtime &amp;gt; 3600&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 22 Jan 2023 11:27:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Time-Comparison-of-Unique-Service-Start-Stop-Pairs/m-p/627907#M16545</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-22T11:27:36Z</dc:date>
    </item>
  </channel>
</rss>

