<?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: Calculating throughput in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Calculating-throughput/m-p/511143#M143166</link>
    <description>&lt;P&gt;index=testIndex namespace=testNameSpace host=\*testHost* log=\*EVENT_PROCESSED* | eventstats count as "TotalCount" | eval throughput=TotalCount/3600 | timechart span=1h values(throughput)&lt;/P&gt;&lt;P&gt;Your query might look like this.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jul 2020 15:04:44 GMT</pubDate>
    <dc:creator>spitchika</dc:creator>
    <dc:date>2020-07-27T15:04:44Z</dc:date>
    <item>
      <title>Calculating throughput</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculating-throughput/m-p/511131#M143160</link>
      <description>&lt;P&gt;In splunk logs, I have to monitor some specific events. The identifier I use to target for those events is a text 'EVENT_PROCESSED'. So my search query is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=testIndex namespace=testNameSpace host=\*testHost* log=\*EVENT_PROCESSED*&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It fetches me ll of my target events. Please note that&amp;nbsp;EVENT_PROCESSED is not an extracted field and is just a text in the event logs.&lt;/P&gt;&lt;P&gt;Now my aim is to find throughput for these events. So I do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=testIndex namespace=testNameSpace host=\*testHost* log=\*EVENT_PROCESSED* | timechart span=1s count as throughtput&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this correct way of determining throughput rate? If I change span to some other value, say 1h, then I change to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=testIndex namespace=testNameSpace host=\*testHost* log=\*EVENT_PROCESSED* | timechart span=1h count/3600 as throughtput&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this correct way?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 14:17:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculating-throughput/m-p/511131#M143160</guid>
      <dc:creator>ghildiya</dc:creator>
      <dc:date>2020-07-27T14:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating throughput</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculating-throughput/m-p/511141#M143165</link>
      <description>&lt;P&gt;When you use your first query, you need to say throughput in "per sec" unit. With span=1h, you can still use "count" only say throughput in "Per hour" unit. If you still want to calculation then store count into another variable like | eventstats count as "Totalcount" then do calculation using eval&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 14:59:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculating-throughput/m-p/511141#M143165</guid>
      <dc:creator>spitchika</dc:creator>
      <dc:date>2020-07-27T14:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating throughput</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculating-throughput/m-p/511143#M143166</link>
      <description>&lt;P&gt;index=testIndex namespace=testNameSpace host=\*testHost* log=\*EVENT_PROCESSED* | eventstats count as "TotalCount" | eval throughput=TotalCount/3600 | timechart span=1h values(throughput)&lt;/P&gt;&lt;P&gt;Your query might look like this.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 15:04:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculating-throughput/m-p/511143#M143166</guid>
      <dc:creator>spitchika</dc:creator>
      <dc:date>2020-07-27T15:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating throughput</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculating-throughput/m-p/511178#M143178</link>
      <description>&lt;P&gt;This displays graphs with dots, even for line chart while Line chart is expected to show continuous curves.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 16:26:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculating-throughput/m-p/511178#M143178</guid>
      <dc:creator>ghildiya</dc:creator>
      <dc:date>2020-07-27T16:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating throughput</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculating-throughput/m-p/511183#M143179</link>
      <description>&lt;DIV&gt;Let me check&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Jul 2020 16:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculating-throughput/m-p/511183#M143179</guid>
      <dc:creator>spitchika</dc:creator>
      <dc:date>2020-07-27T16:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating throughput</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculating-throughput/m-p/511187#M143182</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spitchika_0-1595869228904.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9890i486A4FEE0DFDAF24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="spitchika_0-1595869228904.png" alt="spitchika_0-1595869228904.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works perfectly for your requirement.&lt;/P&gt;&lt;P&gt;index=abc host=* source=/var/opt/appworkr/logs/logname "item"&lt;BR /&gt;| timechart span=1h count&lt;BR /&gt;| eval Throughput=round(count/3600,0)&lt;BR /&gt;| timechart span=1h values(Throughput)&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 17:13:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculating-throughput/m-p/511187#M143182</guid>
      <dc:creator>spitchika</dc:creator>
      <dc:date>2020-07-27T17:13:42Z</dc:date>
    </item>
  </channel>
</rss>

