<?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: Retrieve neighbouring events around a specific event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Retrieve-neighbouring-events-around-a-specific-event/m-p/108882#M183495</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="WinEventLog:Application" Message="An unhandled exception occurred and the process was terminated" Application_ID="0002"* | eval starttime=_time-600 | eval endtime=_time+600 | map search="earliest=$starttime$ latest=$endtime$ Your Broader Search String Here"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 03 Jun 2015 23:55:43 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-06-03T23:55:43Z</dc:date>
    <item>
      <title>Retrieve neighbouring events around a specific event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieve-neighbouring-events-around-a-specific-event/m-p/108881#M183494</link>
      <description>&lt;P&gt;We are using Splunk 4.1.6, build 89596&lt;/P&gt;

&lt;P&gt;We are trying to mine the IIS logs for multiple crashes occurring within a span of 15 minutes of a particular crash.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Query A&lt;/STRONG&gt; : &lt;EM&gt;sourcetype="WinEventLog:Application" Message="An unhandled exception occurred and the process was terminated&lt;/EM&gt;" Application_ID="*0002*"* &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Query A&lt;/STRONG&gt; singles out one specific kind of crash (with the unique identifier Application_ID = *0002*). Now we want to find out if any other crashes happened in the neighbourhood of 10 minutes of every crash retrieved by Query A&lt;/P&gt;

&lt;P&gt;We tried the solution given below but it did not give us the result.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/2602/can-splunk-filtermatch-events-and-bring-back-neighbouring-events-like-gnu-grep"&gt;http://splunk-base.splunk.com/answers/2602/can-splunk-filtermatch-events-and-bring-back-neighbouring-events-like-gnu-grep&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2011 22:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieve-neighbouring-events-around-a-specific-event/m-p/108881#M183494</guid>
      <dc:creator>zsars4412</dc:creator>
      <dc:date>2011-05-25T22:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve neighbouring events around a specific event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieve-neighbouring-events-around-a-specific-event/m-p/108882#M183495</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="WinEventLog:Application" Message="An unhandled exception occurred and the process was terminated" Application_ID="0002"* | eval starttime=_time-600 | eval endtime=_time+600 | map search="earliest=$starttime$ latest=$endtime$ Your Broader Search String Here"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jun 2015 23:55:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieve-neighbouring-events-around-a-specific-event/m-p/108882#M183495</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-03T23:55:43Z</dc:date>
    </item>
  </channel>
</rss>

