<?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: If Then?  Can this be done with Splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/If-Then-Can-this-be-done-with-Splunk/m-p/91478#M23546</link>
    <description>&lt;P&gt;If What &amp;gt; What Then.  You need something in the logs that links the two events.  Your example of events does not show a link.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2013 02:20:48 GMT</pubDate>
    <dc:creator>lukejadamec</dc:creator>
    <dc:date>2013-10-10T02:20:48Z</dc:date>
    <item>
      <title>If Then?  Can this be done with Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/If-Then-Can-this-be-done-with-Splunk/m-p/91475#M23543</link>
      <description>&lt;P&gt;First off, I’m not very strong in the scripting so If Then might not even be what I need to use.  I thought Splunk just searched for errors, but I’ve been told to search for this.&lt;/P&gt;

&lt;P&gt;I have a process that spits out a log with this entry&lt;BR /&gt;
ApprovalExecutionJob:22 - BEGIN::Processing Approval Requests&lt;BR /&gt;
It runs ever 15 min (0,15,30,45).&lt;/P&gt;

&lt;P&gt;It takes about 5 min and then spit out this:&lt;BR /&gt;
ApprovalExecutionJob:37 - END::Processing Approval Requests&lt;/P&gt;

&lt;P&gt;If it does not produce this END process notice then we need to be notified.  Can this be done in Splunk? &lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 20:22:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/If-Then-Can-this-be-done-with-Splunk/m-p/91475#M23543</guid>
      <dc:creator>pwjohnston79</dc:creator>
      <dc:date>2013-10-09T20:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: If Then?  Can this be done with Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/If-Then-Can-this-be-done-with-Splunk/m-p/91476#M23544</link>
      <description>&lt;P&gt;Yes, it can probably be performed in some way or another. Is the '22' and '37' some unique job ID's (or at least unique enough for the purpose of the search, e.g. do not repeat more than daily)? Then you can search like this;&lt;/P&gt;

&lt;P&gt;sourcetype=your_sourcetype | rex "ApprovalExecutionJob:(?&lt;JOBID&gt;\d+)" | stats count by JobID | where count &amp;lt; 2&lt;/JOBID&gt;&lt;/P&gt;

&lt;P&gt;There are other options like e.g. &lt;CODE&gt;transaction&lt;/CODE&gt; which may also be useful. &lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 22:10:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/If-Then-Can-this-be-done-with-Splunk/m-p/91476#M23544</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-09T22:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: If Then?  Can this be done with Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/If-Then-Can-this-be-done-with-Splunk/m-p/91477#M23545</link>
      <description>&lt;P&gt;I have asked a question like this one. This might be of use.&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/84271/transaction-two-logs-alert-if-orphaned-for-30-mins"&gt;http://answers.splunk.com/answers/84271/transaction-two-logs-alert-if-orphaned-for-30-mins&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 01:48:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/If-Then-Can-this-be-done-with-Splunk/m-p/91477#M23545</guid>
      <dc:creator>kphillipson</dc:creator>
      <dc:date>2013-10-10T01:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: If Then?  Can this be done with Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/If-Then-Can-this-be-done-with-Splunk/m-p/91478#M23546</link>
      <description>&lt;P&gt;If What &amp;gt; What Then.  You need something in the logs that links the two events.  Your example of events does not show a link.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 02:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/If-Then-Can-this-be-done-with-Splunk/m-p/91478#M23546</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-10-10T02:20:48Z</dc:date>
    </item>
  </channel>
</rss>

