<?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: Finding uncompleted transactions in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Finding-uncompleted-transactions/m-p/9793#M265</link>
    <description>&lt;P&gt;did this change for splunk 4.1? The evicted field doesn't seem to be part of the result. I had success with "… | transaction … | where closed_txn=0" though.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Feb 2010 23:12:59 GMT</pubDate>
    <dc:creator>ziegfried</dc:creator>
    <dc:date>2010-02-19T23:12:59Z</dc:date>
    <item>
      <title>Finding uncompleted transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-uncompleted-transactions/m-p/9791#M263</link>
      <description>&lt;P&gt;I have application logs that will create a log when a user makes a request like:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
  &lt;P&gt;2010-02-17 16:13:28.515 host1:1111:application DBG User made a requst[99999-1]: FOO (12345)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;It then creates another log when the request is acknowledged like:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
  &lt;P&gt;2010-02-17 16:13:29.118 host1:1111:application DBG reply for user 12345: request acknowledged&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I am able to do a search and group both logs into pairs with transaction:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="host1" source="C:\\logs\app*" ("DBG User made a request" OR "request acknowledged") | rex "DBG User made a requst: Foo \((?&amp;lt;ID&amp;gt;\d+)\) \[" | rex "DBG reply for user (?&amp;lt;ID&amp;gt;\d+): " | transaction ID maxspan=60s startswith="DBG User made a request" endswith="request acknowledged"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and I get a nice list of all the request/acknowledge pairs grouped together.  What I need is to find (and alert) when I get a request, but not a matching acknowledge.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2010 05:04:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-uncompleted-transactions/m-p/9791#M263</guid>
      <dc:creator>GratefulDude</dc:creator>
      <dc:date>2010-02-18T05:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Finding uncompleted transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-uncompleted-transactions/m-p/9792#M264</link>
      <description>&lt;P&gt;You should just be able to add &lt;CODE&gt;keepevicted=true&lt;/CODE&gt; to the &lt;CODE&gt;transaction&lt;/CODE&gt; command options, then search on &lt;CODE&gt;evicted=1&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | transaction keepevicted=true ... | where evicted=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/Transaction" rel="nofollow"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/Transaction&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2010 09:27:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-uncompleted-transactions/m-p/9792#M264</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-02-18T09:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Finding uncompleted transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-uncompleted-transactions/m-p/9793#M265</link>
      <description>&lt;P&gt;did this change for splunk 4.1? The evicted field doesn't seem to be part of the result. I had success with "… | transaction … | where closed_txn=0" though.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2010 23:12:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-uncompleted-transactions/m-p/9793#M265</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-02-19T23:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Finding uncompleted transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-uncompleted-transactions/m-p/9794#M266</link>
      <description>&lt;P&gt;Hmm, looks like it changed at some point, you're right that in 4.0.9 the field is "closed_txn" and is the inverse of evicted, i.e., it's 1 for completed transactions.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2010 13:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-uncompleted-transactions/m-p/9794#M266</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-02-20T13:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Finding uncompleted transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-uncompleted-transactions/m-p/9795#M267</link>
      <description>&lt;P&gt;The startswith and endswith are "eventtype=A" and "eventtype=B" in my definition. But I just get those transactions just have end event (eventtype=B), and it can not display those just have start event(eventtype=A). &lt;/P&gt;

&lt;P&gt;For example, if i do the search 
"eventtype=A | transaction router ip startswith="eventtype=A" endswith="eventtype=B" keepevicted=true", i should get many uncompleted transactions, but i get none.&lt;/P&gt;

&lt;P&gt;Any ideas? &lt;/P&gt;

&lt;P&gt;Thanks, 
Dianbo.&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2010 09:29:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-uncompleted-transactions/m-p/9795#M267</guid>
      <dc:creator>dianbo_1</dc:creator>
      <dc:date>2010-05-25T09:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Finding uncompleted transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-uncompleted-transactions/m-p/9796#M268</link>
      <description>&lt;P&gt;This is an outstanding issue (SPL-31786) scheduled to be fixed in out next maintenance release (4.1.4)&lt;/P&gt;

&lt;P&gt;The following search might do what you want (if ID is a unique id at least within the 60 seconds that the transactions are supposed to last):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="host1" source="C:\\logs\app*" ("DBG User made a request" OR "request acknowledged") | rex "DBG User made a requst: Foo \((?&amp;lt;ID&amp;gt;\d+)\) \[" | rex "DBG reply for user (?&amp;lt;ID&amp;gt;\d+): " | transaction ID maxspan=60s startswith="DBG User made a request" | search NOT "request acknowledged"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 12 Jun 2010 04:51:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-uncompleted-transactions/m-p/9796#M268</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2010-06-12T04:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Finding uncompleted transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-uncompleted-transactions/m-p/9797#M269</link>
      <description>&lt;P&gt;Thanks.  What worked for me was doing a |search linecount&amp;lt;2 from my results.  That matches all of my "requests" and "answers" up into transactions that should always be 2 lines.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2010 02:23:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-uncompleted-transactions/m-p/9797#M269</guid>
      <dc:creator>GratefulDude</dc:creator>
      <dc:date>2010-06-15T02:23:28Z</dc:date>
    </item>
  </channel>
</rss>

