<?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: Variable storage in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Variable-storage/m-p/93377#M24049</link>
    <description>&lt;P&gt;Use the &lt;A href="http://www.splunk.com/base/Documentation/4.1.5/SearchReference/Fields" rel="nofollow"&gt;&lt;CODE&gt;fields&lt;/CODE&gt;&lt;/A&gt; command to limit the display to just those you want to keep:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| fields percentANR, percentENR, percentHNR
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 23 Nov 2010 06:45:27 GMT</pubDate>
    <dc:creator>southeringtonp</dc:creator>
    <dc:date>2010-11-23T06:45:27Z</dc:date>
    <item>
      <title>Variable storage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Variable-storage/m-p/93376#M24048</link>
      <description>&lt;P&gt;I am performing some math functions in splunk.I am doing a search that will calculate the percentage of each data type. What variable can I use to store values without them having to be charted until the end of my search.&lt;/P&gt;

&lt;P&gt;For example:  &lt;/P&gt;

&lt;P&gt;chart avg(db_abc_p) as anr, avg(db_efg) as enr, avg(db_hij) as hnr, avg(db_total) as Total | eval percentANR=(anr/Total)*100 | eval percentENR (enr/Total)*100 | eval percentHNR=hnr/Total)*100&lt;/P&gt;

&lt;P&gt;what I end up with is valueS outputed for all seven variables, when all I really want is to display the values for : percentANR, percentENR, percentHNR&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2010 05:36:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Variable-storage/m-p/93376#M24048</guid>
      <dc:creator>Kendrick33</dc:creator>
      <dc:date>2010-11-23T05:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variable storage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Variable-storage/m-p/93377#M24049</link>
      <description>&lt;P&gt;Use the &lt;A href="http://www.splunk.com/base/Documentation/4.1.5/SearchReference/Fields" rel="nofollow"&gt;&lt;CODE&gt;fields&lt;/CODE&gt;&lt;/A&gt; command to limit the display to just those you want to keep:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| fields percentANR, percentENR, percentHNR
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Nov 2010 06:45:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Variable-storage/m-p/93377#M24049</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-11-23T06:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Variable storage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Variable-storage/m-p/93378#M24050</link>
      <description>&lt;P&gt;Or &lt;CODE&gt;... | fields - unwantedfield&lt;/CODE&gt; to remove specific fields.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2010 07:00:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Variable-storage/m-p/93378#M24050</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-11-23T07:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Variable storage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Variable-storage/m-p/93379#M24051</link>
      <description>&lt;P&gt;or... for a simple table display, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | table percentANR, percentENR, percentHNR
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The table command will output the columns in the order you specify.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2010 08:57:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Variable-storage/m-p/93379#M24051</guid>
      <dc:creator>sfleming</dc:creator>
      <dc:date>2010-11-23T08:57:50Z</dc:date>
    </item>
  </channel>
</rss>

