<?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 very slow in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452917#M128230</link>
    <description>&lt;P&gt;@renjith.nair&lt;BR /&gt;
It errors trying to run the search.&lt;/P&gt;

&lt;P&gt;Error in 'stats' command: The aggregation specifier 'dc(PERF_TYPE) no_of_perf_type' is invalid. The aggregation specifier must be in &lt;A href="https://community.splunk.com/%5Bkey%5D" target="_blank"&gt;func_name&lt;/A&gt; format.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 20:33:51 GMT</pubDate>
    <dc:creator>iberecamara</dc:creator>
    <dc:date>2020-09-29T20:33:51Z</dc:date>
    <item>
      <title>Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452911#M128224</link>
      <description>&lt;P&gt;I have to calculate the response time from an application that depends on the response of another application. For that, I need to get the response times from both and calculate. The response time from Application1 and Application2 are in different places, but they share a couple of unique fields. I'm using a transaction for this right now, but its being very very slow, can someone help me refactor this? The search string is below, thanks!&lt;/P&gt;

&lt;P&gt;index=myindex source=mysource sourcetype=mysourcetype host=myhost CLASS=PERFORMANCE_LOG (PERF_TYPE=App1PerformanceMetrics OR PERF_TYPE=App2PerformanceMetrics)&lt;BR /&gt;&lt;BR /&gt;
| transaction TXN_ID COR_ID connected=true &lt;BR /&gt;
| search eventcount=2 status=SUCCESS &lt;BR /&gt;
| eval responseTime = app1ResponseTime - app2ResponseTime&lt;BR /&gt;&lt;BR /&gt;
| timechart  avg(responseTime)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:33:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452911#M128224</guid>
      <dc:creator>iberecamara</dc:creator>
      <dc:date>2020-09-29T20:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452912#M128225</link>
      <description>&lt;P&gt;Can you move the search eventcount=2 status=SUCCESS into the main query or is that info dictated by the transaction?&lt;/P&gt;

&lt;P&gt;That should help speed due to the fact you'll be transacting more logs, then performing a search on that.&lt;/P&gt;

&lt;P&gt;Searching is a lot less resource intensive than transaction, so if you limit the amount of results prior it should help the transaction speed as well.&lt;/P&gt;

&lt;P&gt;Does that make sense?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 12:36:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452912#M128225</guid>
      <dc:creator>auraria1</dc:creator>
      <dc:date>2018-07-20T12:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452913#M128226</link>
      <description>&lt;P&gt;I know that I should narrow as much as possible before doing the transaction, but unfortunately no. The eventcount is a direct effect of the transaction, and the status=SUCCESS is only present in App1PerformanceMetrics.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 12:59:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452913#M128226</guid>
      <dc:creator>iberecamara</dc:creator>
      <dc:date>2018-07-20T12:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452914#M128227</link>
      <description>&lt;P&gt;gotcha, is there anything else that you can filter on that you're specifically looking for in the main search?&lt;/P&gt;

&lt;P&gt;Also you can remove the parens around the PERF_TYPE OR search. Don't think that'll make a difference though.&lt;/P&gt;

&lt;P&gt;Are these going to a specific index you can filter on? Generally doing index and sourcetype/host is faster.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 13:05:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452914#M128227</guid>
      <dc:creator>auraria1</dc:creator>
      <dc:date>2018-07-20T13:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452915#M128228</link>
      <description>&lt;P&gt;I'm looking for response times from App1PerformanceMetrics and App2PerformanceMetrics, so I can eval them later for the real response time I want (app1ResponseTime - app2ResponseTime). I know the parens don't help at all, I like to use them as a visual aid.&lt;BR /&gt;
I'm already using an index, I updated the search here.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 13:12:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452915#M128228</guid>
      <dc:creator>iberecamara</dc:creator>
      <dc:date>2018-07-20T13:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452916#M128229</link>
      <description>&lt;P&gt;@iberecamara,&lt;/P&gt;

&lt;P&gt;Please try this and lets know if it gives same result and where's the difference.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex source=mysource sourcetype=mysourcetype host=myhost CLASS=PERFORMANCE_LOG (PERF_TYPE=App1PerformanceMetrics OR PERF_TYPE=App2PerformanceMetrics) 
|stats values(app1ResponseTime) as app1ResponseTime,dc(PERF_TYPE) no_of_perf_type,latest(status) as status by TXN_ID,COR_ID
|where no_of_perf_type&amp;gt;1 AND status="SUCCESS"
|eval app1ResponseTime=mvindex(app1ResponseTime,0), app2ResponseTime=mvindex(app2ResponseTime,1)|eval responseTime = app1ResponseTime - app2ResponseTime 
|timechart avg(responseTime)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Jul 2018 13:43:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452916#M128229</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-07-20T13:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452917#M128230</link>
      <description>&lt;P&gt;@renjith.nair&lt;BR /&gt;
It errors trying to run the search.&lt;/P&gt;

&lt;P&gt;Error in 'stats' command: The aggregation specifier 'dc(PERF_TYPE) no_of_perf_type' is invalid. The aggregation specifier must be in &lt;A href="https://community.splunk.com/%5Bkey%5D" target="_blank"&gt;func_name&lt;/A&gt; format.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:33:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452917#M128230</guid>
      <dc:creator>iberecamara</dc:creator>
      <dc:date>2020-09-29T20:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452918#M128231</link>
      <description>&lt;P&gt;sorry, missed &lt;CODE&gt;as&lt;/CODE&gt; between them . Replace it by &lt;CODE&gt;dc(PERF_TYPE) as no_of_perf_type&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 14:23:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452918#M128231</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-07-20T14:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452919#M128232</link>
      <description>&lt;P&gt;The results are different from mine. My search is returning a couple matches and generating a line chart as intended, but this search returns "No results found."&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 14:31:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452919#M128232</guid>
      <dc:creator>iberecamara</dc:creator>
      <dc:date>2018-07-20T14:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452920#M128233</link>
      <description>&lt;P&gt;do you get some results for this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=myindex source=mysource sourcetype=mysourcetype host=myhost CLASS=PERFORMANCE_LOG (PERF_TYPE=App1PerformanceMetrics OR PERF_TYPE=App2PerformanceMetrics) 
 |stats values(app1ResponseTime) as app1ResponseTime,dc(PERF_TYPE) no_of_perf_type,latest(status) as status by TXN_ID,COR_ID
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Jul 2018 14:35:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452920#M128233</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-07-20T14:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452921#M128234</link>
      <description>&lt;P&gt;Yes, I do. It gives me the app1ResponseTime, no_of_perf_type and status for the matches in TXN_ID and COR_ID&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452921#M128234</guid>
      <dc:creator>iberecamara</dc:creator>
      <dc:date>2020-09-29T20:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452922#M128235</link>
      <description>&lt;P&gt;Is combination of TXN_ID COR_ID unique for all transactions or they may overlap (there multiple records with combination of TXN_ID COR_ID that may exist at different time)?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:31:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452922#M128235</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T20:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452923#M128236</link>
      <description>&lt;P&gt;They are unique, or at least should be&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 15:39:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452923#M128236</guid>
      <dc:creator>iberecamara</dc:creator>
      <dc:date>2018-07-20T15:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452924#M128237</link>
      <description>&lt;P&gt;Give thisa try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex source=mysource sourcetype=mysourcetype host=myhost CLASS=PERFORMANCE_LOG (PERF_TYPE=App1PerformanceMetrics OR PERF_TYPE=App2PerformanceMetrics) 
| stats min(_time) as _time count as eventcount values(status) as status values(app1ResponseTime) as app1ResponseTime values(app2ResponseTime) as app2ResponseTime by TXN_ID COR_ID connected=true 
| search eventcount=2 status=SUCCESS 
| eval responseTime = app1ResponseTime - app2ResponseTime 
| timechart avg(responseTime)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Jul 2018 16:01:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452924#M128237</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-07-20T16:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452925#M128238</link>
      <description>&lt;P&gt;I just had to remove the connected=true, but it seems that it works. I'm in the middle of a meeting right now, but I'll make some tests when I can, and if it doesn't break for different time ranges, I'll accept this as the answer, thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 16:47:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452925#M128238</guid>
      <dc:creator>iberecamara</dc:creator>
      <dc:date>2018-07-20T16:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction very slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452926#M128239</link>
      <description>&lt;P&gt;sorry missed one field,&lt;BR /&gt;
     index=myindex source=mysource sourcetype=mysourcetype host=myhost CLASS=PERFORMANCE_LOG (PERF_TYPE=App1PerformanceMetrics OR PERF_TYPE=App2PerformanceMetrics) &lt;BR /&gt;
     |stats values(app1ResponseTime) as app1ResponseTime,values(app2ResponseTime) as app2ResponseTime,dc(PERF_TYPE) no_of_perf_type,latest(status) as status by TXN_ID,COR_ID&lt;BR /&gt;
     |where no_of_perf_type&amp;gt;1 AND status="SUCCESS"&lt;BR /&gt;
     |eval responseTime = app1ResponseTime - app2ResponseTime &lt;BR /&gt;
     |timechart avg(responseTime)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:34:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-very-slow/m-p/452926#M128239</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-09-29T20:34:11Z</dc:date>
    </item>
  </channel>
</rss>

