<?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: Questions on Variable Manipulation. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68399#M17133</link>
    <description>&lt;P&gt;| stats sum(Logical_CapacityBlocks) as sumconf, sum(Free_CapacityBlocks) as sumfree by _time| eval Configured_Capacity=sumconf/2047752704 | eval Free_Space=sumfree/2047752704 | eval Used_Space=Configured_Capacity-Free_Space | chart values(Used_Space) as Used_Space, values(Free_Space) as Free_Space over _time&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:51:56 GMT</pubDate>
    <dc:creator>eelisio2</dc:creator>
    <dc:date>2020-09-28T09:51:56Z</dc:date>
    <item>
      <title>Questions on Variable Manipulation.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68392#M17126</link>
      <description>&lt;P&gt;I've got a chart that works great but just wanting to re-arrange the result. &lt;/P&gt;

&lt;P&gt;timechart eval(sum(Logical_Capacity_&lt;EM&gt;Blocks&lt;/EM&gt;)/ 2047752704) as Configured_Capacity,  eval(sum(Free_Capacity_&lt;EM&gt;Blocks_non_contiguous&lt;/EM&gt;)/ 2047752704) as Free_Space,&lt;/P&gt;

&lt;P&gt;So this gives me 2 working variables&lt;BR /&gt;
Configured_Capacity&lt;BR /&gt;
Free_Space&lt;/P&gt;

&lt;P&gt;Seems reasonable to be able to subtract the 2 at the end of the search. &lt;/P&gt;

&lt;P&gt;Wanting to end with a Graph where I can stack Used &amp;amp; Free Space&lt;BR /&gt;
to show my capacity but many variations per below just dont work. &lt;/P&gt;

&lt;P&gt;timechart eval(sum(Logical_Capacity_&lt;EM&gt;Blocks&lt;/EM&gt;)/ 2047752704) as Configured_Capacity,  eval(sum(Free_Capacity_&lt;EM&gt;Blocks_non_contiguous&lt;/EM&gt;)/ 2047752704) as Free_Space, eval(Configured_Capacity - Free_Space)&lt;/P&gt;

&lt;P&gt;Seems like it should be an easy process but so far- its been tougher than expected. &lt;BR /&gt;
 Hoping I can get someone to show me some other ways to do this. &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Clint&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:51:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68392#M17126</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2020-09-28T09:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Questions on Variable Manipulation.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68393#M17127</link>
      <description>&lt;P&gt;Using your timechart syntax above in the Advanced Charting View, &lt;BR /&gt;
timechart eval(sum(Logical_CapacityBlocks_)/ 2047752704) as Configured_Capacity, eval(sum(Free_CapacityBlocks_non_contiguous_)/ 2047752704) as Free_Space&lt;BR /&gt;
| eval Used_Space=(Configured_Capacity - Free_Space)&lt;/P&gt;

&lt;P&gt;should chart all 3 values (Configured_Capacity, Free_Space, Used_Space)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:51:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68393#M17127</guid>
      <dc:creator>eelisio2</dc:creator>
      <dc:date>2020-09-28T09:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Questions on Variable Manipulation.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68394#M17128</link>
      <description>&lt;P&gt;Thanks for the reply,&lt;/P&gt;

&lt;P&gt;So I dont get an error with the changes per above. &lt;BR /&gt;
Should something like below added to the end work?&lt;/P&gt;

&lt;P&gt;| timechart values(Used_Space),values(Free_Space)&lt;/P&gt;

&lt;P&gt;(only have 1 entry &amp;amp; that doesnt show any info). &lt;BR /&gt;
Is there a better way to chart it?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:51:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68394#M17128</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2020-09-28T09:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Questions on Variable Manipulation.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68395#M17129</link>
      <description>&lt;P&gt;The following results in 3 values being charted over time.&lt;BR /&gt;
| timechart eval(sum(pctCPU)*5) as sumcpu, eval(sum(pctMEM)*5) as summem | eval mydiff=(sumcpu+summem)/10&lt;BR /&gt;
The calculations are not meaningful. Just an example for form.&lt;BR /&gt;
I ran this search in the Splunk Search App - Advanced Charting View. &lt;BR /&gt;
My chart shows sumcpu, summem and mydiff charted over time without adding anything after the last eval command.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:51:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68395#M17129</guid>
      <dc:creator>eelisio2</dc:creator>
      <dc:date>2020-09-28T09:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Questions on Variable Manipulation.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68396#M17130</link>
      <description>&lt;P&gt;With the "timechart eval(sum(Logical_CapacityBlocks_)/ 2047752704) as Configured_Capacity, eval(sum(Free_CapacityBlocks_non_contiguous_)/ 2047752704) as Free_Space | eval Used_Space=(Configured_Capacity - Free_Space)" search- &lt;/P&gt;

&lt;P&gt;It does not add a column for Used_Space, nor does it &lt;BR /&gt;
list any values. (although it does not give an error &amp;amp; &lt;BR /&gt;
does find all the values with the green checked matching events) Not sure why your sample w/ CPU does, not sure whats different.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:51:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68396#M17130</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2020-09-28T09:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Questions on Variable Manipulation.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68397#M17131</link>
      <description>&lt;P&gt;Are you running the timechart search in the Advanced Charting View?&lt;/P&gt;

&lt;P&gt;If you add "| table Used_Space Configured_Capacity Free_Space" to the end of the search and run in the regular search tab, do you see results?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:51:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68397#M17131</guid>
      <dc:creator>eelisio2</dc:creator>
      <dc:date>2020-09-28T09:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Questions on Variable Manipulation.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68398#M17132</link>
      <description>&lt;P&gt;Thanks, One of the Auto-Fields changed. I changed it back &amp;amp; now I get all 3 lists correctly. &lt;/P&gt;

&lt;P&gt;So I guess what is left is now that I have my 3 columns. I only wanted capacity for calculations. How do I tell it only graph used &amp;amp; free?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2011 21:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68398#M17132</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2011-09-01T21:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Questions on Variable Manipulation.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68399#M17133</link>
      <description>&lt;P&gt;| stats sum(Logical_CapacityBlocks) as sumconf, sum(Free_CapacityBlocks) as sumfree by _time| eval Configured_Capacity=sumconf/2047752704 | eval Free_Space=sumfree/2047752704 | eval Used_Space=Configured_Capacity-Free_Space | chart values(Used_Space) as Used_Space, values(Free_Space) as Free_Space over _time&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:51:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Questions-on-Variable-Manipulation/m-p/68399#M17133</guid>
      <dc:creator>eelisio2</dc:creator>
      <dc:date>2020-09-28T09:51:56Z</dc:date>
    </item>
  </channel>
</rss>

