<?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: Track growth on new items within a time range using a timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497576#M138592</link>
    <description>&lt;P&gt;when you table it like that.. it drops all the zeros (0s)... same problem I've run into with various attempts. &lt;/P&gt;

&lt;P&gt;Its like when you use fillnull that they are all fake 0's. &lt;/P&gt;

&lt;P&gt;but I'd like a chart that outputs for time picker ranges from 11/5 to 11/20&lt;BR /&gt;
VM, capacity growth&lt;BR /&gt;
vm1  13389&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2019 19:41:09 GMT</pubDate>
    <dc:creator>clintla</dc:creator>
    <dc:date>2019-12-05T19:41:09Z</dc:date>
    <item>
      <title>Track growth on new items within a time range using a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497574#M138590</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8031i3E69F5EF6E37B802/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I've tried various attempts at this with no joy. I'm simply trying to create a chart where I can specify w/ the time picker a time range &amp;amp; I can track growth of 1000 or more VMs. &lt;/P&gt;

&lt;P&gt;If a VM was at the start and end of the time range, it works fantastic. &lt;/P&gt;

&lt;P&gt;The problem is per the screenshot where if a new VM is created (this one created on 11/16) &amp;amp; you compare earliest w/ latest, it doesnt take in consideration that the beginning of the time picker (11/5) that the VM was not present &amp;amp; the capacity used is ZERO (0). &lt;/P&gt;

&lt;P&gt;If I use the time picker to choose a range of 11/5 through 11/20, All I can get is a growth of (-84) but the growth should show 13504 because it started with 0 on 11/5&lt;/P&gt;

&lt;P&gt;Is there a simple solution for this? I plan on removing just searching for VM1 &amp;amp; want to be able to compare all our VMs to see what VMs grew/shrank the most over whatever time period (using the time picker) I choose. &lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 18:19:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497574#M138590</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2019-12-05T18:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Track growth on new items within a time range using a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497575#M138591</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;Could you please try the below solution.&lt;BR /&gt;
It is also recommended to look into "trendline" command based on your requirement.&lt;/P&gt;

&lt;P&gt;Please try the below option and let us know.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; |your_search
 |table _time,disk_space_used,name
 |fillnull value=0 disk_space_used
 |timechart span=1d values(disk_space_used) AS CapacityUsed BY name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Dec 2019 19:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497575#M138591</guid>
      <dc:creator>dindu</dc:creator>
      <dc:date>2019-12-05T19:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Track growth on new items within a time range using a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497576#M138592</link>
      <description>&lt;P&gt;when you table it like that.. it drops all the zeros (0s)... same problem I've run into with various attempts. &lt;/P&gt;

&lt;P&gt;Its like when you use fillnull that they are all fake 0's. &lt;/P&gt;

&lt;P&gt;but I'd like a chart that outputs for time picker ranges from 11/5 to 11/20&lt;BR /&gt;
VM, capacity growth&lt;BR /&gt;
vm1  13389&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 19:41:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497576#M138592</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2019-12-05T19:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Track growth on new items within a time range using a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497577#M138593</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| table _time,disk_space_used,name
| fillnull value=0 disk_space_used
| timechart span=1d values(disk_space_used) AS Capacity BY name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Output&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   vm1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;1   2019-11-05&lt;BR /&gt;&lt;BR /&gt;
2   2019-11-06&lt;BR /&gt;&lt;BR /&gt;
3   2019-11-07&lt;BR /&gt;&lt;BR /&gt;
4   2019-11-08&lt;BR /&gt;&lt;BR /&gt;
5   2019-11-09&lt;BR /&gt;&lt;BR /&gt;
6   2019-11-10&lt;BR /&gt;&lt;BR /&gt;
7   2019-11-11&lt;BR /&gt;&lt;BR /&gt;
8   2019-11-12&lt;BR /&gt;&lt;BR /&gt;
9   2019-11-13&lt;BR /&gt;&lt;BR /&gt;
10  2019-11-14&lt;BR /&gt;&lt;BR /&gt;
11  2019-11-15&lt;BR /&gt;&lt;BR /&gt;
12  2019-11-16  13588&lt;BR /&gt;
13  2019-11-17  13618&lt;BR /&gt;
14  2019-11-18  13622&lt;BR /&gt;
15  2019-11-19  13428&lt;BR /&gt;
16  2019-11-20  13389&lt;BR /&gt;
17  2019-11-21  13457&lt;BR /&gt;
18  2019-11-22  13478&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 19:43:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497577#M138593</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2019-12-05T19:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Track growth on new items within a time range using a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497578#M138594</link>
      <description>&lt;P&gt;When I try this&lt;BR /&gt;
&lt;CODE&gt;| table _time,disk_space_used,name&lt;BR /&gt;
| timechart span=1d values(name), values(disk_space_used) AS Capacity&lt;BR /&gt;
| fillnull value=0 Capacity&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The problem is that the name isnt continued.. maybe thats why it never assigned a prevalue of 0&lt;/P&gt;

&lt;P&gt;5   2019-11-09      0&lt;BR /&gt;
6   2019-11-10      0&lt;BR /&gt;
7   2019-11-11      0&lt;BR /&gt;
8   2019-11-12      0&lt;BR /&gt;
9   2019-11-13      0&lt;BR /&gt;
10  2019-11-14      0&lt;BR /&gt;
11  2019-11-15      0&lt;BR /&gt;
12  2019-11-16  vm1 13588&lt;BR /&gt;
13  2019-11-17  vm1 13618&lt;BR /&gt;
14  2019-11-18  vm1 13622&lt;BR /&gt;
15  2019-11-19  vm1 13428&lt;BR /&gt;
16  2019-11-20  vm1 13389&lt;BR /&gt;
17  2019-11-21  vm1 13457&lt;BR /&gt;
18  2019-11-22  vm1 13478&lt;BR /&gt;
19  2019-11-23  vm1 13519&lt;BR /&gt;
20  2019-11-24  vm1 13504&lt;BR /&gt;
21  2019-11-25  vm1 13505&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 19:57:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497578#M138594</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2019-12-05T19:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Track growth on new items within a time range using a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497579#M138595</link>
      <description>&lt;P&gt;You can use the &lt;CODE&gt;accum&lt;/CODE&gt; command with &lt;CODE&gt;bin&lt;/CODE&gt; to build the bits that you need:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Accum"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Accum&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 21:24:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497579#M138595</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-05T21:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Track growth on new items within a time range using a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497580#M138596</link>
      <description>&lt;P&gt;But if the server didnt exist in the beginning of the time frame &amp;amp; you ping for the earliest value of a VM.. even if you use accum.. the first value will still not be 0 right? All accum does is take existing values.. the problem is the VM doesnt exist at the beginning of the selected time so its just going to have no values &amp;amp; it will still chose the first value which is not 0 &amp;amp; therefore incorrect.. right?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 21:34:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497580#M138596</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2019-12-05T21:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Track growth on new items within a time range using a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497581#M138597</link>
      <description>&lt;P&gt;This is the &lt;CODE&gt;Sentinel Search&lt;/CODE&gt; problem discussed (with solution) here:&lt;BR /&gt;
&lt;A href="https://conf.splunk.com/session/2015/conf2015-LookupTalk.pdf"&gt;https://conf.splunk.com/session/2015/conf2015-LookupTalk.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 23:26:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497581#M138597</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-05T23:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Track growth on new items within a time range using a timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497582#M138598</link>
      <description>&lt;P&gt;How does this create 0's? I have a lookup (YearVM) that creates a list of all VM's existing for a year (which Is what I think you are doing ad-hoc for the append command per below)&lt;/P&gt;

&lt;P&gt;Let’s use our lookup to add in the missing items&lt;BR /&gt;
sourcetype=access_combined action=purchase&lt;BR /&gt;
| stats sum(price) as revenue by productID&lt;BR /&gt;
&lt;STRONG&gt;| inputlookup append=true productIDs&lt;/STRONG&gt;&lt;BR /&gt;
| chart sum(revenue) as revenue by productID &lt;/P&gt;

&lt;P&gt;When I try it on a "Year to Date" on a VM that was created in July it simply lists all the values, no 0's.&lt;/P&gt;

&lt;P&gt;| lookup YearVM NAME1 as name OUTPUT NAME1 as lookupname&lt;BR /&gt;
| stats values(disk_space_used) as Start by lookupname&lt;BR /&gt;
| chart min(Start) by lookupname &lt;/P&gt;

&lt;P&gt;lookupname  min(Start)&lt;BR /&gt;
vm1                3&lt;/P&gt;

&lt;P&gt;vm1 should have a minimum of 0 since Jan 1, it was not created yet. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:21:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Track-growth-on-new-items-within-a-time-range-using-a-timechart/m-p/497582#M138598</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2020-09-30T03:21:02Z</dc:date>
    </item>
  </channel>
</rss>

