<?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: Transaction duration in Splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transaction-duration-in-Splunk/m-p/257215#M77022</link>
    <description>&lt;P&gt;Hi Sundar,&lt;/P&gt;

&lt;P&gt;I tried to execute the above it is trying to fetch data but I am unable to understand the duration logic&lt;/P&gt;

&lt;P&gt;Is this in mill sec? The response can't be 0.0. I want &lt;STRONG&gt;request&lt;/STRONG&gt; followed by &lt;STRONG&gt;response&lt;/STRONG&gt;&lt;BR /&gt;
I felt it pick anything with request and response. Please check &lt;STRONG&gt;jmsListenerA-10&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;thread                       direction         duration
jmsListenerA-7      response    
jmsListenerB-16     request             0.000  
jmsListenerB-16     response    1.280  
jmsListenerA-12     request     2.802  
jmsListenerA-12     response    3.521  
jmsListenerB-7      request             4.361  
jmsListenerB-7      response    4.795  
jmsListenerB-27     request             5.579  
jmsListenerB-27     response    47.066  
jmsListenerA-10     request             48.289  
jmsListenerA-27     request             54.968  
jmsListenerA-10     response    55.055  
jmsListenerA-27     response    56.150  
jmsListenerA-12     request    
jmsListenerA-12     response    0.000  
jmsListenerB-12     request             56.273  
jmsListenerB-18     request             66.584  
jmsListenerB-18     response    67.584  
jmsListenerB-12     response    68.249  
jmsListenerA-12     request    
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Jul 2016 05:14:26 GMT</pubDate>
    <dc:creator>saradachelluboy</dc:creator>
    <dc:date>2016-07-12T05:14:26Z</dc:date>
    <item>
      <title>Transaction duration in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-duration-in-Splunk/m-p/257212#M77019</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Transaction duration based on thread name. I wrote the below search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="p" sourcetype="x" | transaction host startswith="LoggingMessageConverter | request:" endswith="LoggingMessageConverter | response:"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It is picking up the duration from  &lt;STRONG&gt;jmsListenerA-10&lt;/STRONG&gt;  request and &lt;STRONG&gt;jmsListenerA-11&lt;/STRONG&gt; response which is not valid. Could some one pls help?&lt;/P&gt;

&lt;P&gt;This is multi threaded and data is not sequential, only identification is thread name i.e. jmsListenerA-10. once the response ends the thread will be reused again.&lt;/P&gt;

&lt;P&gt;Log Data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;INFO  | 2016-07-12 02:05:03,556 | jmsListenerA-10 | au.com.xxx.LoggingMessageConverter | request: &amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;urn:CorrelationId&amp;gt;11111&amp;lt;/urn:CorrelationId&amp;gt;
INFO  | 2016-07-12 02:05:03,589 | jmsListenerA-10 | au.com.xxx.PGService | Number of transaction builder errors: 0
INFO  | 2016-07-12 02:05:03,757 | jmsListenerA-10 | au.com.xxx.PGService | This Transaction is of type: 
INFO  | 2016-07-12 02:05:04,297 | jmsListenerA-11| au.com.xxx.LoggingMessageConverter | response: &amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;&amp;lt;ns11:CorrelationId&amp;gt;22222&amp;lt;/ns11:CorrelationId&amp;gt;
INFO  | 2016-07-12 02:05:03,820 | jmsListenerA-10 | au.com.xxx.ProviderResponseJpa | Executing findProviderResponse 
INFO  | 2016-07-12 02:05:03,919 | jmsListenerA-10 | au.com.xxx.creditcard.provider.webpay.WebpayApiProviderImpl | request:  Transaction Bundle
INFO  | 2016-07-12 02:05:04,199 | jmsListenerA-10 | au.com.xxx.creditcard.provider.webpay.WebpayApiProviderImpl | response:  Transaction Bundle
INFO  | 2016-07-12 02:05:04,216 | jmsListenerA-10 | au.com.xxx.ProviderResponseJpa | Executing findProviderResponse 
INFO  | 2016-07-12 02:05:04,297 | jmsListenerA-10 | au.com.xxx.LoggingMessageConverter | response: &amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;&amp;lt;ns11:CorrelationId&amp;gt;11111&amp;lt;/ns11:CorrelationId&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jul 2016 23:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-duration-in-Splunk/m-p/257212#M77019</guid>
      <dc:creator>saradachelluboy</dc:creator>
      <dc:date>2016-07-11T23:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction duration in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-duration-in-Splunk/m-p/257213#M77020</link>
      <description>&lt;P&gt;Transaction is not the best command for this. Try this approach instead&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="p" sourcetype="x" | rex "(?&amp;lt;thread&amp;gt;jmsListener-\d+)"  | rex "(?&amp;lt;direction&amp;gt;request|response)" | reverse | streamstats count as txn by host thread direction | streamstats current=f range(_time) as duration by txn | table host thread direction duration 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jul 2016 23:46:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-duration-in-Splunk/m-p/257213#M77020</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-11T23:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction duration in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-duration-in-Splunk/m-p/257214#M77021</link>
      <description>&lt;P&gt;It seems that you need to extract the values of &lt;CODE&gt;jmsListenerA-NN&lt;/CODE&gt; into a field such as &lt;CODE&gt;jmsListener&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;Your command can then be - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="p" sourcetype="x" | transaction jmsListener startswith="LoggingMessageConverter | request:" endswith="LoggingMessageConverter | response:"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jul 2016 23:49:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-duration-in-Splunk/m-p/257214#M77021</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-07-11T23:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction duration in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-duration-in-Splunk/m-p/257215#M77022</link>
      <description>&lt;P&gt;Hi Sundar,&lt;/P&gt;

&lt;P&gt;I tried to execute the above it is trying to fetch data but I am unable to understand the duration logic&lt;/P&gt;

&lt;P&gt;Is this in mill sec? The response can't be 0.0. I want &lt;STRONG&gt;request&lt;/STRONG&gt; followed by &lt;STRONG&gt;response&lt;/STRONG&gt;&lt;BR /&gt;
I felt it pick anything with request and response. Please check &lt;STRONG&gt;jmsListenerA-10&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;thread                       direction         duration
jmsListenerA-7      response    
jmsListenerB-16     request             0.000  
jmsListenerB-16     response    1.280  
jmsListenerA-12     request     2.802  
jmsListenerA-12     response    3.521  
jmsListenerB-7      request             4.361  
jmsListenerB-7      response    4.795  
jmsListenerB-27     request             5.579  
jmsListenerB-27     response    47.066  
jmsListenerA-10     request             48.289  
jmsListenerA-27     request             54.968  
jmsListenerA-10     response    55.055  
jmsListenerA-27     response    56.150  
jmsListenerA-12     request    
jmsListenerA-12     response    0.000  
jmsListenerB-12     request             56.273  
jmsListenerB-18     request             66.584  
jmsListenerB-18     response    67.584  
jmsListenerB-12     response    68.249  
jmsListenerA-12     request    
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jul 2016 05:14:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-duration-in-Splunk/m-p/257215#M77022</guid>
      <dc:creator>saradachelluboy</dc:creator>
      <dc:date>2016-07-12T05:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction duration in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-duration-in-Splunk/m-p/257216#M77023</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index="p" sourcetype=x  | rex "(?&amp;lt;thread&amp;gt;jmsListener\w-\d+)"  | transaction thread startswith="LoggingMessageConverter | request:" endswith="LoggingMessageConverter | response:"  | table thread duration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Working fine mixed sundareshr  regular expression with transaction works perfect&lt;/P&gt;

&lt;P&gt;Thanks to both&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 06:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-duration-in-Splunk/m-p/257216#M77023</guid>
      <dc:creator>saradachelluboy</dc:creator>
      <dc:date>2016-07-12T06:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction duration in Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-duration-in-Splunk/m-p/257217#M77024</link>
      <description>&lt;P&gt;Beautiful thing!!! &lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 10:45:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-duration-in-Splunk/m-p/257217#M77024</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-07-12T10:45:16Z</dc:date>
    </item>
  </channel>
</rss>

