<?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: How to edit my search to find events that did not occur right before a machine restart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-events-that-did-not-occur-right/m-p/309489#M92842</link>
    <description>&lt;P&gt;Thanks very much! This looks like it works perfectly. Didn't realize you could keep the other results with keeporphans.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2017 14:31:24 GMT</pubDate>
    <dc:creator>jpolcari</dc:creator>
    <dc:date>2017-02-17T14:31:24Z</dc:date>
    <item>
      <title>How to edit my search to find events that did not occur right before a machine restart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-events-that-did-not-occur-right/m-p/309486#M92839</link>
      <description>&lt;P&gt;I'd like to look for events of a Windows service stopping but ONLY if it did not occur while the machine was being rebooted. So far I have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog  sourcetype=wineventlog:system (EventCode=7036 "Service Name" stopped) OR EventCode=6009
| transaction ComputerName startswith="EventCode=7036" endswith="EventCode=6009" maxspan=10m
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EventCode 7036 is the service stopping while an EventCode 6009 occurs when the machine has just rebooted. This currently shows all the stops WITH a restart but I would like to find event 7036 when there was not a 6009 within about 10 minutes.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 14:13:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-events-that-did-not-occur-right/m-p/309486#M92839</guid>
      <dc:creator>jpolcari</dc:creator>
      <dc:date>2017-02-17T14:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to find events that did not occur right before a machine restart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-events-that-did-not-occur-right/m-p/309487#M92840</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog  sourcetype=wineventlog:system (EventCode=7036 "Service Name" stopped) OR EventCode=6009
| transaction ComputerName startswith="EventCode=7036" endswith="EventCode=6009" maxspan=10m keeporphan=t
| where duration&amp;gt;600 OR (mvcount(EventCode)=1 AND EventCode="7036")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Feb 2017 14:24:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-events-that-did-not-occur-right/m-p/309487#M92840</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-17T14:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to find events that did not occur right before a machine restart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-events-that-did-not-occur-right/m-p/309488#M92841</link>
      <description>&lt;P&gt;try &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=wineventlog  sourcetype=wineventlog:system (EventCode=7036 "Service Name" stopped) OR EventCode=6009 | transaction ComputerName startswith="EventCode=7036" endswith="EventCode=6009" maxspan=10m keeporphans=true|search _txn_orphan=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Feb 2017 14:25:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-events-that-did-not-occur-right/m-p/309488#M92841</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-02-17T14:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to find events that did not occur right before a machine restart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-events-that-did-not-occur-right/m-p/309489#M92842</link>
      <description>&lt;P&gt;Thanks very much! This looks like it works perfectly. Didn't realize you could keep the other results with keeporphans.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 14:31:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-find-events-that-did-not-occur-right/m-p/309489#M92842</guid>
      <dc:creator>jpolcari</dc:creator>
      <dc:date>2017-02-17T14:31:24Z</dc:date>
    </item>
  </channel>
</rss>

