<?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 set up an alert if an ack message is not available for a particular req? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353014#M104491</link>
    <description>&lt;P&gt;ohh Np woodcock.  thanks for helping.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2017 18:59:31 GMT</pubDate>
    <dc:creator>prashanthberam</dc:creator>
    <dc:date>2017-03-13T18:59:31Z</dc:date>
    <item>
      <title>How to set up an alert if an ack message is not available for a particular req?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353009#M104486</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
       i have messages like this how to setup an alert if ack message is not available in the logs for particular req.&lt;BR /&gt;
and between req and rsp is more than 30 sec  i need to setup an one more alert.&lt;/P&gt;

&lt;P&gt;my logs like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2017-03-10 15:56:42.056 [WMQJCAResourceAdapter : 1] [INFO ] [DCN 0201706380692310C] SplunkLog - CorrelationID=000001806003698150190841, DCN=0201706380692310C, TransactionTimestamp=2017-03-10 15:56:37.742, GroupNumber =000Y69HB3, ServiceLinecount=4, SectionNumber=0008, CorporateEntityCode=OK1, ClaimType=0, VendorName=VERSCEND, VendorCode=CVP, TransactionCode=RSP, UtilizationAmount=3.75

2017-03-10 15:56:39.003 [WMQJCAResourceAdapter : 6] [INFO ] [DCN 0201706380692310C] SplunkLog - CorrelationID=000001806003698150190841, DCN=0201706380692310C, TransactionTimestamp=2017-03-10 15:56:39.002, GroupNumber =000Y69HB3, ServiceLinecount=4, SectionNumber=0008, CorporateEntityCode=OK1, ClaimType=0, VendorName=VERSCEND, VendorCode=CVP, TransactionCode=ACK, OutCome=C, Messagetext=ACCEPTED

2017-03-10 15:56:36.939 [WMQJCAResourceAdapter : 1] [INFO ] [DCN 0201706380692310C] SplunkLog - CorrelationID=000001806003698150190841, DCN=0201706380692310C, TransactionTimestamp=2017-03-10 15:56:36.939, GroupNumber =000Y69HB3, ServiceLinecount=4, SectionNumber=0008, CorporateEntityCode=OK1, ClaimType=0, VendorName=VERSCEND, VendorCode=CVP, TransactionCode=REQ
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Mar 2017 18:24:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353009#M104486</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2017-03-13T18:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up an alert if an ack message is not available for a particular req?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353010#M104487</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your Base Search Here | stats count list(_time) AS times range(_time) AS duration list(TransactionCode) AS TransactionCode BY  CorrelationID | search TransactionCode="REQ" AND NOT TransactionCode="ACK"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your Base Search Here | stats count list(_time) AS times range(_time) AS duration list(TransactionCode) AS TransactionCode BY CorrelationID | search duration &amp;gt; 30 AND TransactionCode="REQ" AND TransactionCode="RSP"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Mar 2017 18:33:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353010#M104487</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-13T18:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up an alert if an ack message is not available for a particular req?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353011#M104488</link>
      <description>&lt;P&gt;Assuming there is a unique transaction ID available in log for each req-ack-rsp combination, you could do like this (assuming CorrelationID is the unique identifier, if there are multiple columns add them to stats's by clause)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Updated mv funtion&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Alert when there is no ACK event for a transaction&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search fetching all records
| stats min(_time) as StartTime  max(_time) as EndTime values(TransactionCode) as TransactionCodes by CorrelationID
| eval _time=StartTime | where isnull(mvfilter(match(TransactionCodes,"ACK")))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alert when transaction duration is more than 30 sec&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search fetching all records
| stats min(_time) as StartTime  max(_time) as EndTime values(TransactionCode) as TransactionCodes by CorrelationID
| eval _time=StartTime  | eval duration=EndTime-StartTime | where mvcount(TransactionCodes)=3 AND duration&amp;gt;30
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Mar 2017 18:36:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353011#M104488</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-13T18:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up an alert if an ack message is not available for a particular req?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353012#M104489</link>
      <description>&lt;P&gt;while am searching first query am getting this Error in 'where' command: The arguments to the 'mvfind' function are invalid. what it means. may i know the reason.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 18:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353012#M104489</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2017-03-13T18:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up an alert if an ack message is not available for a particular req?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353013#M104490</link>
      <description>&lt;P&gt;I am done editing; sorry for the churn; I did not notice the 2nd part of the question.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 18:55:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353013#M104490</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-13T18:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up an alert if an ack message is not available for a particular req?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353014#M104491</link>
      <description>&lt;P&gt;ohh Np woodcock.  thanks for helping.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 18:59:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353014#M104491</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2017-03-13T18:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up an alert if an ack message is not available for a particular req?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353015#M104492</link>
      <description>&lt;P&gt;Oops. Used wrong function. Just updated the query to use correct function.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 19:03:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353015#M104492</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-13T19:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up an alert if an ack message is not available for a particular req?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353016#M104493</link>
      <description>&lt;P&gt;I lied; I had an extra &lt;CODE&gt;NOT&lt;/CODE&gt; in my 2nd answer.  It is all good now.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 19:06:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353016#M104493</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-13T19:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up an alert if an ack message is not available for a particular req?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353017#M104494</link>
      <description>&lt;P&gt;Thanks for the help Somesoni2 . Now it's working ..&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 19:13:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353017#M104494</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2017-03-13T19:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to set up an alert if an ack message is not available for a particular req?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353018#M104495</link>
      <description>&lt;P&gt;ya i haven't noticed that one. thanks woodcock&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 19:14:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-up-an-alert-if-an-ack-message-is-not-available-for-a/m-p/353018#M104495</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2017-03-13T19:14:31Z</dc:date>
    </item>
  </channel>
</rss>

