<?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: how to get Transactions per second based on average values for each instance in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274963#M190265</link>
    <description>&lt;P&gt;If you are using &lt;CODE&gt;All-time&lt;/CODE&gt; the other answer won't work so try this one:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=cams component=uas sourcetype="forgerock:auth" o=sco message_desc = "Authentication Failed"
| chart count min(_time) AS info_min_time max(_time) AS info_max_time BY Instance
| eval TransactionsPerSecond = count/(info_max_time - info_min_time)
| rename count AS "Number of transactions"
| fields - info_*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 30 May 2016 16:34:29 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2016-05-30T16:34:29Z</dc:date>
    <item>
      <title>how to get Transactions per second based on average values for each instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274956#M190258</link>
      <description>&lt;P&gt;How to get Transactions per second from the following table(table 1). I also have a table which gets me the per second transactions and avg. How can I use the table with average values (table 2)&lt;BR /&gt;
 The following search gives me the Table 1&lt;BR /&gt;
&lt;STRONG&gt;index=cams component=uas sourcetype="forgerock:auth" o=sco | where message_desc = "Authentication Failed"| chart count over instance by message_desc | rename "Authentication Failed" as "Number of transactions"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Table 1:&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/134206-1.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Following is the table 2 which I have which has the average of field values for each transaction type(Authentication failed) by instance viz., 11,12,21,22&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/134207-2.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:49:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274956#M190258</guid>
      <dc:creator>jkalra</dc:creator>
      <dc:date>2020-09-29T09:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to get Transactions per second based on average values for each instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274957#M190259</link>
      <description>&lt;P&gt;Your requirement is unclear. What exactly you're trying to do? Could you share your expect result/format?&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 19:08:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274957#M190259</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-27T19:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to get Transactions per second based on average values for each instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274958#M190260</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=cams component=uas sourcetype="forgerock:auth" o=sco | where message_desc = "Authentication Failed"| chart count over instance by message_desc | rename "Authentication Failed" as "Number of transactions" | addinfo | eval TransactionsPerSecond = $Number of transactions$/(info_max_time - info_min_time) | fields - info_*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 May 2016 20:10:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274958#M190260</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-27T20:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to get Transactions per second based on average values for each instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274959#M190261</link>
      <description>&lt;P&gt;Thanks Gregg...&lt;BR /&gt;
not sure what I should be using duration for.? it gives me an error at "duration"&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 14:50:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274959#M190261</guid>
      <dc:creator>jkalra</dc:creator>
      <dc:date>2016-05-30T14:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to get Transactions per second based on average values for each instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274960#M190262</link>
      <description>&lt;P&gt;All I am trying to do is get a TPS(transactions per second) for the following table ( link below). I already have the "NUmber of transactions per instance namely 11, 12, 21, 21 and I am looking to get the TPS for 11,12,21,22 over any time range.&lt;/P&gt;

&lt;P&gt;I managed to get a table ( second table) which averages the Transactions by instance, but how do i get the TPS out of this. I would prefer to use the first table and get the TPS or the second table can also be used to derive TPS out of the average for each instance&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/storage/temp/134206-1.png"&gt;https://answers.splunk.com/storage/temp/134206-1.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 14:56:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274960#M190262</guid>
      <dc:creator>jkalra</dc:creator>
      <dc:date>2016-05-30T14:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to get Transactions per second based on average values for each instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274961#M190263</link>
      <description>&lt;P&gt;Sorry, that was a typo.  I have fixed it in the original answer; try it again.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 15:45:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274961#M190263</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-30T15:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to get Transactions per second based on average values for each instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274962#M190264</link>
      <description>&lt;P&gt;Ok...thanks ...but I get info- max time as Infinity and info min time -0.00&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 16:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274962#M190264</guid>
      <dc:creator>jkalra</dc:creator>
      <dc:date>2016-05-30T16:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to get Transactions per second based on average values for each instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274963#M190265</link>
      <description>&lt;P&gt;If you are using &lt;CODE&gt;All-time&lt;/CODE&gt; the other answer won't work so try this one:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=cams component=uas sourcetype="forgerock:auth" o=sco message_desc = "Authentication Failed"
| chart count min(_time) AS info_min_time max(_time) AS info_max_time BY Instance
| eval TransactionsPerSecond = count/(info_max_time - info_min_time)
| rename count AS "Number of transactions"
| fields - info_*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 May 2016 16:34:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274963#M190265</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-30T16:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to get Transactions per second based on average values for each instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274964#M190266</link>
      <description>&lt;P&gt;Gregg....I see no difference in the output...I still get just the  Instance and Number of Transactions. no luck with the TPS.&lt;BR /&gt;
Also, I was able to get the Avg number of transactions per second/instance. How do I get the TPS over any time range?&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 13:38:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274964#M190266</guid>
      <dc:creator>jkalra</dc:creator>
      <dc:date>2016-05-31T13:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to get Transactions per second based on average values for each instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274965#M190267</link>
      <description>&lt;P&gt;The eventstats was in the wrong place.  I edited my answer (and made your stuff more efficient).  Try it again.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 14:22:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274965#M190267</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-31T14:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to get Transactions per second based on average values for each instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274966#M190268</link>
      <description>&lt;P&gt;Thanks Gregg...Unfortunately I get "No results" for any time range I select&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 17:41:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274966#M190268</guid>
      <dc:creator>jkalra</dc:creator>
      <dc:date>2016-05-31T17:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to get Transactions per second based on average values for each instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274967#M190269</link>
      <description>&lt;P&gt;Gregg...sorry ..my bad..... i guess the "BY" command had to be a lower case...I changed that and it worked.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 18:25:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-Transactions-per-second-based-on-average-values-for/m-p/274967#M190269</guid>
      <dc:creator>jkalra</dc:creator>
      <dc:date>2016-05-31T18:25:29Z</dc:date>
    </item>
  </channel>
</rss>

