<?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 shows incomplete statistics in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448515#M127078</link>
    <description>&lt;P&gt;awesome ! good work &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2019 09:32:58 GMT</pubDate>
    <dc:creator>DavidHourani</dc:creator>
    <dc:date>2019-06-27T09:32:58Z</dc:date>
    <item>
      <title>Transaction shows incomplete statistics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448509#M127072</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;
I am trying to group the events using transaction command but looks like some of the data is not visible in the statistics.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Are there any limit kind of a thing which we can set? &lt;/LI&gt;
&lt;LI&gt;If I run below search for lets say a day or two it works fine, but if I run this search for 7 days it shows the result just for 5 days.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Sample search: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=test1 logpoint="request-in") OR (index=test1 logpoint="response-in")
| transaction transaction-id startswith="request-in" endswith="response-in" maxevents=2 keeporphans=true 
| eval epoch_time=strptime('timestamp-in',"%Y-%m-%dT%H:%M:%S.%N")
| eventstats range(epoch_time) as response_time by transaction-id
| timechart span=1d avg(response_time) as average_duration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7261iC52A434637007BD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Any help would be highly appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Sunny&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 12:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448509#M127072</guid>
      <dc:creator>sunnyb147</dc:creator>
      <dc:date>2019-06-25T12:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction shows incomplete statistics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448510#M127073</link>
      <description>&lt;P&gt;Ques -&lt;BR /&gt;
Have you made sure you have relevant data events available on the dates of 18, 19, 20 ?&lt;BR /&gt;
Is this the same behavior if you run your search over a different set of 7 days ?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 10:03:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448510#M127073</guid>
      <dc:creator>amitm05</dc:creator>
      <dc:date>2019-06-26T10:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction shows incomplete statistics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448511#M127074</link>
      <description>&lt;P&gt;I think I found the solution, instead of eventstats I used stats and it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Another small question: I cannot mark this question as closed.. could you please guide me on this.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 07:49:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448511#M127074</guid>
      <dc:creator>sunnyb147</dc:creator>
      <dc:date>2019-06-27T07:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction shows incomplete statistics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448512#M127075</link>
      <description>&lt;P&gt;to close the question, simply answer it if you have the answer and accept your answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 08:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448512#M127075</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-27T08:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction shows incomplete statistics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448513#M127076</link>
      <description>&lt;P&gt;Hi @sunnyb147,&lt;/P&gt;

&lt;P&gt;Using transactions is resource intensive you can replace it with this which runs only on &lt;CODE&gt;stats&lt;/CODE&gt; as it will run way faster:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=test1 logpoint="request-in" OR logpoint="response-in"
 | stats first(_time) as start last(_time) as end first(timestamp-in) as timestamp-in by transaction-id 
 | eval _time=strptime('timestamp-in',"%Y-%m-%dT%H:%M:%S.%N")
 | eval duration=tostring(end-start,"duration")
 | timechart span=1d avg(duration) as average_duration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 08:18:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448513#M127076</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-27T08:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction shows incomplete statistics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448514#M127077</link>
      <description>&lt;P&gt;Thanks David for the feedback &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  Today morning I realized the same thing and it worked like a charm.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 09:30:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448514#M127077</guid>
      <dc:creator>sunnyb147</dc:creator>
      <dc:date>2019-06-27T09:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction shows incomplete statistics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448515#M127078</link>
      <description>&lt;P&gt;awesome ! good work &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 09:32:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448515#M127078</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-27T09:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction shows incomplete statistics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448516#M127079</link>
      <description>&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Done !&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 09:33:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-shows-incomplete-statistics/m-p/448516#M127079</guid>
      <dc:creator>sunnyb147</dc:creator>
      <dc:date>2019-06-27T09:33:32Z</dc:date>
    </item>
  </channel>
</rss>

