<?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: Unable to get the open transactions whose events match the startsWith clause only in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15305#M1842</link>
    <description>&lt;P&gt;Have you tried letting off the &lt;CODE&gt;endswith&lt;/CODE&gt; message then building your own complete/not-complete field with an eval.&lt;/P&gt;

&lt;P&gt;Try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=message " function (?&amp;lt;repFunction&amp;gt;.[a-zA-Z]+)" | transaction thread_name repFunction startswith=(message="Calling function*") keepevicted=t | eval my_close_txn=searchmatch("Completed",1,0)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 11 Jun 2010 21:28:45 GMT</pubDate>
    <dc:creator>Lowell</dc:creator>
    <dc:date>2010-06-11T21:28:45Z</dc:date>
    <item>
      <title>Unable to get the open transactions whose events match the startsWith clause only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15303#M1840</link>
      <description>&lt;P&gt;I'm unable to list the transactions that have events matching with startWith clause but no events for endsWith clause (I'm using the keepevicted=t option aswell). I have a simplified file with only one event to test this:&lt;/P&gt;

&lt;P&gt;2010-05-21 09:25:00 : (2314) : Calling function fetchTask&lt;/P&gt;

&lt;P&gt;The query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=message "Calling function (?&amp;lt;repFunction&amp;gt;.[a-zA-Z]+)" | rex field=message "Completed calling function (?&amp;lt;repFunction&amp;gt;.[a-zA-Z]+)"  | transaction thread_name repFunction startsWith=(message="Calling function*") endsWith=(message="Completed calling function*") keepevicted=t
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Results:0&lt;/P&gt;

&lt;P&gt;If I add the endsWith event as below, then I get the closed transaction result as expected.&lt;/P&gt;

&lt;P&gt;2010-05-21 09:25:03 : (2314) : Completed calling function fetchTask&lt;/P&gt;

&lt;P&gt;I'm not sure if I've missed anything here. Any pointers to list the open transaction would be appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,
Krishna R&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-serviceLog2 = \s:\s\((?P&amp;lt;thread_name&amp;gt;[^ ]*)\)\s:\s(?P&amp;lt;message&amp;gt;[^\r\n]*)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Jun 2010 04:45:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15303#M1840</guid>
      <dc:creator>Krishna_R</dc:creator>
      <dc:date>2010-06-11T04:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get the open transactions whose events match the startsWith clause only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15304#M1841</link>
      <description>&lt;P&gt;Have you tried using &lt;CODE&gt;startswith&lt;/CODE&gt; and &lt;CODE&gt;endswith&lt;/CODE&gt; (all lowercase)? I'm not sure if that matters, but it's worth a try.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2010 21:17:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15304#M1841</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-06-11T21:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get the open transactions whose events match the startsWith clause only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15305#M1842</link>
      <description>&lt;P&gt;Have you tried letting off the &lt;CODE&gt;endswith&lt;/CODE&gt; message then building your own complete/not-complete field with an eval.&lt;/P&gt;

&lt;P&gt;Try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=message " function (?&amp;lt;repFunction&amp;gt;.[a-zA-Z]+)" | transaction thread_name repFunction startswith=(message="Calling function*") keepevicted=t | eval my_close_txn=searchmatch("Completed",1,0)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Jun 2010 21:28:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15305#M1842</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-06-11T21:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get the open transactions whose events match the startsWith clause only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15306#M1843</link>
      <description>&lt;P&gt;Hi Lowell,&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;dropping endswith didn't help (I tried the exact one you pasted) resulted 0 transactions.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;i added keepevicted=t, it returned 1 transaction but closed_txn was 1. (I expected it to be 0 - to mark the transaction as open)&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Sat, 12 Jun 2010 00:27:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15306#M1843</guid>
      <dc:creator>Krishna_R</dc:creator>
      <dc:date>2010-06-12T00:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get the open transactions whose events match the startsWith clause only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15307#M1844</link>
      <description>&lt;P&gt;Yes. I tried lowercase but there is no difference &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2010 00:28:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15307#M1844</guid>
      <dc:creator>Krishna_R</dc:creator>
      <dc:date>2010-06-12T00:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get the open transactions whose events match the startsWith clause only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15308#M1845</link>
      <description>&lt;P&gt;btw, those open transactions that match the endswith clause only (no events to match with startswith cluase) are shown in results as expected - in my original query.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2010 01:15:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15308#M1845</guid>
      <dc:creator>Krishna_R</dc:creator>
      <dc:date>2010-06-12T01:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get the open transactions whose events match the startsWith clause only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15309#M1846</link>
      <description>&lt;P&gt;This is an outstanding issue (SPL-31786) scheduled to be fixed in our next maintenance release (4.1.4)&lt;/P&gt;

&lt;P&gt;In the meantime the following search will identify incomplete transactions: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=message " function (?&amp;lt;repFunction&amp;gt;.[a-zA-Z]+)" | transaction thread_name repFunction startswith=(message="Calling function*") keepevicted=t | search NOT message="Completed calling function*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 12 Jun 2010 05:01:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15309#M1846</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2010-06-12T05:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get the open transactions whose events match the startsWith clause only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15310#M1847</link>
      <description>&lt;P&gt;Thanks for this info! I will try other ways like you have adviced.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2010 22:27:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15310#M1847</guid>
      <dc:creator>Krishna_R</dc:creator>
      <dc:date>2010-06-13T22:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get the open transactions whose events match the startsWith clause only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15311#M1848</link>
      <description>&lt;P&gt;This search "kind of" works.  How would you report on a given period of time's open transactions?  Using timechart with a span=1 and looking for eventcount=1 doens't seem to match.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2010 01:06:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15311#M1848</guid>
      <dc:creator>dskillman</dc:creator>
      <dc:date>2010-06-19T01:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get the open transactions whose events match the startsWith clause only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15312#M1849</link>
      <description>&lt;P&gt;I'm not sure I understand what you're trying to do, can you please elaborate a bit more ?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2010 00:58:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-get-the-open-transactions-whose-events-match-the/m-p/15312#M1849</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2010-07-02T00:58:45Z</dc:date>
    </item>
  </channel>
</rss>

