<?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 How can I calculate in real-time the data rate (kbps) of events being indexed? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-calculate-in-real-time-the-data-rate-kbps-of-events/m-p/80855#M16677</link>
    <description>&lt;P&gt;I would like to find out how much data per second (let's say in kilobytes per second) my indexer is receiving and indexing.&lt;/P&gt;

&lt;P&gt;What search could help me find this out?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2011 15:45:51 GMT</pubDate>
    <dc:creator>hexx</dc:creator>
    <dc:date>2011-09-23T15:45:51Z</dc:date>
    <item>
      <title>How can I calculate in real-time the data rate (kbps) of events being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-calculate-in-real-time-the-data-rate-kbps-of-events/m-p/80855#M16677</link>
      <description>&lt;P&gt;I would like to find out how much data per second (let's say in kilobytes per second) my indexer is receiving and indexing.&lt;/P&gt;

&lt;P&gt;What search could help me find this out?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2011 15:45:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-calculate-in-real-time-the-data-rate-kbps-of-events/m-p/80855#M16677</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2011-09-23T15:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I calculate in real-time the data rate (kbps) of events being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-calculate-in-real-time-the-data-rate-kbps-of-events/m-p/80856#M16678</link>
      <description>&lt;P&gt;Run the following search over the time range &lt;STRONG&gt;real-time(all time)&lt;/STRONG&gt; and you will be able to see what the incoming data rate (in kilobytes of rawdata per second) for a given subset of event looks like :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host=hypodermic_noodle | eval search_time=now() | eval seconds_elapsed=(time() - search_time) | eval secs=if(seconds_elapsed&amp;lt;0,"1",seconds_elapsed) | eval esize=((len(_raw)/1024)) | stats sum(esize) as sum_esize, last(secs) AS seconds | stats last(sum_esize) AS "event rawdata indexed (kb)", last(seconds) AS "search seconds elapsed", last(eval(sum_esize/seconds)) AS kbps&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This example targets a specific host, but feel free to change the first search terms to better suit your needs.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-calculate-in-real-time-the-data-rate-kbps-of-events/m-p/80856#M16678</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2020-09-28T09:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I calculate in real-time the data rate (kbps) of events being indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-calculate-in-real-time-the-data-rate-kbps-of-events/m-p/80857#M16679</link>
      <description>&lt;P&gt;better:&lt;BR /&gt;
&lt;CODE&gt;| rest splunk_server_group=dmc_group_indexer splunk_server_group="dmc_group_indexer" /services/server/introspection/queues&lt;BR /&gt;
        | search title=parsingQueue* OR title=aggQueue* OR title=typingQueue* OR title=indexQueue*&lt;BR /&gt;
        | eval fill_perc=round(current_size_bytes / max_size_bytes * 100,2)&lt;BR /&gt;
        | fields splunk_server, title, fill_perc&lt;BR /&gt;
        | rex field=title "(?&amp;lt;queue_name&amp;gt;^\w+)(?:\.(?&amp;lt;pipeline_number&amp;gt;\d+))?"&lt;BR /&gt;
        | eval fill_perc = if(isnotnull(pipeline_number), "pset".pipeline_number.": ".fill_perc, fill_perc)&lt;BR /&gt;
        | chart values(fill_perc) over splunk_server by queue_name&lt;BR /&gt;
        | eval pset_count = mvcount(parsingQueue)&lt;BR /&gt;
        | join type=outer splunk_server [&lt;BR /&gt;
          | rest splunk_server_group=dmc_group_indexer splunk_server_group="dmc_group_indexer" /services/server/introspection/indexer&lt;BR /&gt;
          | eval average_KBps = round(average_KBps, 0)&lt;BR /&gt;
          | eval status = if((reason == ".") OR (reason == "") OR isnull(reason), status, status.": ".reason)&lt;BR /&gt;
          | fields splunk_server, average_KBps, status]&lt;BR /&gt;
        | fields splunk_server pset_count average_KBps status parsingQueue aggQueue typingQueue indexQueue&lt;BR /&gt;
        | sort -average_KBps &lt;BR /&gt;
        | stats sum(average_KBps) AS "average_KBps" &lt;BR /&gt;
        | eval "average_MBs"=round(average_KBps/1024, 2)&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 16:20:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-calculate-in-real-time-the-data-rate-kbps-of-events/m-p/80857#M16679</guid>
      <dc:creator>mattlucas719</dc:creator>
      <dc:date>2017-03-29T16:20:49Z</dc:date>
    </item>
  </channel>
</rss>

