{"id":48445,"date":"2021-12-06T18:32:18","date_gmt":"2021-12-06T18:32:18","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=48445"},"modified":"2021-12-06T18:32:18","modified_gmt":"2021-12-06T18:32:18","slug":"answer-by-warren-for-splunk-getting-average-tps-for-each-service","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=48445","title":{"rendered":"Answer by warren for Splunk getting average TPS for each service"},"content":{"rendered":"<p>You may find a solution similar to one <a href=\"https:\/\/antipaucity.com\/2020\/08\/18\/how-to-timechart-possibly-better-than-timechart-in-splunk\/#.Ya5TYlNOlAc\" rel=\"nofollow noreferrer\">I needed a while back<\/a> to be helpful &#8211; <code>timechart<\/code> without using <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/SearchReference\/timechart\" rel=\"nofollow noreferrer\"><code>timechart<\/code><\/a><\/p>\n<pre><code>index=ndx sourcetype=srctp correlationId=* service=* earliest=-60m\n| eval secs=strftime(_time, &quot;%S&quot;)\n| stats dc(correlationId) as TPS by secs service\n| stats avg(TPS) as avgTPS by service\n<\/code><\/pre>\n<p>Or <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/SearchReference\/chart\" rel=\"nofollow noreferrer\"><code>chart<\/code><\/a> instead of <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/SearchReference\/stats\" rel=\"nofollow noreferrer\"><code>stats<\/code><\/a>:<\/p>\n<pre><code>| chart avg(TPS) as avgTPS by service\n<\/code><\/pre>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/70245098\/splunk-getting-average-tps-for-each-service\/70250170#70250170<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may find a solution similar to one I needed a while back to be helpful &#8211; timechart without using timechart index=ndx sourcetype=srctp correlationId=* service=* earliest=-60m | eval secs=strftime(_time, &quot;%S&quot;) | stats dc(correlationId) as TPS by secs service | stats avg(TPS) as avgTPS by service Or chart instead of stats: | chart avg(TPS) as avgTPS &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=48445\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for Splunk getting average TPS for each service<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[991],"keyring_services":[],"class_list":["post-48445","post","type-post","status-publish","format-standard","hentry","category-blih","tag-stackexchange"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/48445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=48445"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/48445\/revisions"}],"predecessor-version":[{"id":48446,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/48445\/revisions\/48446"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=48445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=48445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=48445"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=48445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}