<?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 write a search to check the amount of data indexed by my app each day for a certain time range? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-check-the-amount-of-data-indexed-by-my/m-p/136083#M37226</link>
    <description>&lt;P&gt;@Iguinn &lt;BR /&gt;
I have a doubt... When I added the query "index=_internal sourcetype=splunkd group=per_host_thruput | timechart per_second(kb) by series" to the dashboard made a default time range of 365 days, I get a different graph and when I run it for All time it is different. Although the data is only there starting march. Any idea why? &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 19:29:29 GMT</pubDate>
    <dc:creator>sushmitha_mj</dc:creator>
    <dc:date>2020-09-28T19:29:29Z</dc:date>
    <item>
      <title>How to write a search to check the amount of data indexed by my app each day for a certain time range?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-check-the-amount-of-data-indexed-by-my/m-p/136080#M37223</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I want to a graph to check the amount of data indexed by my app on each day for a certain time period. I have multiple csv files in the source, one host and an index ( not default, I created this ). I used &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="abc" | eval MB=kb/1024 | search group="per_sourcetype_thruput" | timechart span=1d sum(MB) by series 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="abc" group="per_index_thruput" | timechart per_second(kb) as " kbps" by series 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but they seem to return no results. &lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2015 18:04:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-check-the-amount-of-data-indexed-by-my/m-p/136080#M37223</guid>
      <dc:creator>sushmitha_mj</dc:creator>
      <dc:date>2015-04-06T18:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to check the amount of data indexed by my app each day for a certain time range?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-check-the-amount-of-data-indexed-by-my/m-p/136081#M37224</link>
      <description>&lt;P&gt;The groups that you are looking for are not in the "abc" index - they are in the &lt;CODE&gt;_internal&lt;/CODE&gt; index.  Also, you can get the "per index" through-put by index, or the "per sourcetype" through-put by sourcetype - but you can't get the "per index" through-put by sourcetype!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd group=per_sourcetype_thruput
| eval MB=kb/1024 | timechart span=1d sum(MB) by series

index=_internal sourcetype=splunkd group=per_index_thruput series="abc"
|timechart per_second(kb) as " kbps"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2015 19:28:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-check-the-amount-of-data-indexed-by-my/m-p/136081#M37224</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-04-06T19:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to check the amount of data indexed by my app each day for a certain time range?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-check-the-amount-of-data-indexed-by-my/m-p/136082#M37225</link>
      <description>&lt;P&gt;@Iguinn&lt;BR /&gt;
Thank you... &lt;BR /&gt;
Both worked,  and I had an option of entering the series on the first one as well. As the graph itself was multiple series lines. &lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2015 20:52:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-check-the-amount-of-data-indexed-by-my/m-p/136082#M37225</guid>
      <dc:creator>sushmitha_mj</dc:creator>
      <dc:date>2015-04-06T20:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to check the amount of data indexed by my app each day for a certain time range?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-check-the-amount-of-data-indexed-by-my/m-p/136083#M37226</link>
      <description>&lt;P&gt;@Iguinn &lt;BR /&gt;
I have a doubt... When I added the query "index=_internal sourcetype=splunkd group=per_host_thruput | timechart per_second(kb) by series" to the dashboard made a default time range of 365 days, I get a different graph and when I run it for All time it is different. Although the data is only there starting march. Any idea why? &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:29:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-check-the-amount-of-data-indexed-by-my/m-p/136083#M37226</guid>
      <dc:creator>sushmitha_mj</dc:creator>
      <dc:date>2020-09-28T19:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to check the amount of data indexed by my app each day for a certain time range?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-check-the-amount-of-data-indexed-by-my/m-p/136084#M37227</link>
      <description>&lt;P&gt;Well, if you run the same search twice, you will get different results usually, as the data is always changing.&lt;BR /&gt;
But, there is also the problem of the first/final "grouping" of the data - if the data is only partial days, it can look weird. And different timeranges can certainly make the graph look different.&lt;/P&gt;

&lt;P&gt;I would probably set the search time range explicitly to something like earliest=-30d@d latest=@d to avoid the problem of partial buckets. Or, if you want to be able to pick the timerange each time you run the report, do this in the timechart command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;timechart fixedrange=f partial=f per_second(kb) as " kbps"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will restrict the graph to only the part of the timerange with valid data and also remove any partial buckets.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2015 20:17:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-check-the-amount-of-data-indexed-by-my/m-p/136084#M37227</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-04-09T20:17:07Z</dc:date>
    </item>
  </channel>
</rss>

