<?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: &amp;quot;eval UsedMemory=(Avg_Memory/Total_Memory)&amp;quot; How do I know where the Avg_Memory and Total_Memory fields are coming from? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/quot-eval-UsedMemory-Avg-Memory-Total-Memory-quot-How-do-I-know/m-p/208451#M187789</link>
    <description>&lt;P&gt;Thank you for your time. I got to figure this out after digging a little more with the help of a colleague. I appreciate your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2016 07:35:51 GMT</pubDate>
    <dc:creator>PreetiKa</dc:creator>
    <dc:date>2016-04-21T07:35:51Z</dc:date>
    <item>
      <title>"eval UsedMemory=(Avg_Memory/Total_Memory)" How do I know where the Avg_Memory and Total_Memory fields are coming from?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-eval-UsedMemory-Avg-Memory-Total-Memory-quot-How-do-I-know/m-p/208447#M187785</link>
      <description>&lt;P&gt;I have a search which uses an eval expression for a calculation.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval UsedMemory= (Avg_Memory/Total_Memory) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to know where this &lt;STRONG&gt;Avg_Memory&lt;/STRONG&gt; and &lt;STRONG&gt;Total_Memory&lt;/STRONG&gt; fields are coming from or how are they are calculated.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:50:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-eval-UsedMemory-Avg-Memory-Total-Memory-quot-How-do-I-know/m-p/208447#M187785</guid>
      <dc:creator>PreetiKa</dc:creator>
      <dc:date>2016-04-18T15:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: "eval UsedMemory=(Avg_Memory/Total_Memory)" How do I know where the Avg_Memory and Total_Memory fields are coming from?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-eval-UsedMemory-Avg-Memory-Total-Memory-quot-How-do-I-know/m-p/208448#M187786</link>
      <description>&lt;P&gt;Check the events that have those fields. Those might be fields extracted directly from whats already available in your raw data. Can you give more information about what you looking at (e.g. sourcetype, etc)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 17:53:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-eval-UsedMemory-Avg-Memory-Total-Memory-quot-How-do-I-know/m-p/208448#M187786</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2016-04-18T17:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: "eval UsedMemory=(Avg_Memory/Total_Memory)" How do I know where the Avg_Memory and Total_Memory fields are coming from?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-eval-UsedMemory-Avg-Memory-Total-Memory-quot-How-do-I-know/m-p/208449#M187787</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=abc search_name="abc_MEMORY_SUMMARY" | 
lookup abc-environments host AS orig_host OUTPUT environment | 
search orig_host=SomeSpecificServer| timechart span=1min avg(eval((Avg_MemoryKb/Total_MemoryKb)*100)) as Memory by orig_host limit=0 | 
WHERE Memory &amp;gt; 90
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is my search; here I want to chart out the servers who have a memory consumption of over 90%, but the result is not satisfactory. I get almost every server with 50% memory consumption which is ideally not possible.&lt;/P&gt;

&lt;P&gt;Also, I was wondering if I could create a lookup (without modifying my props.conf &amp;amp; transform.conf) and first list out the memory of all the hosts listed under my index? But I'm not sure if this is something achievable. Pardon me if this is something very simple. I am on my learning curve for SPLUNK. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thank you for your time.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 18:08:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-eval-UsedMemory-Avg-Memory-Total-Memory-quot-How-do-I-know/m-p/208449#M187787</guid>
      <dc:creator>PreetiKa</dc:creator>
      <dc:date>2016-04-18T18:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: "eval UsedMemory=(Avg_Memory/Total_Memory)" How do I know where the Avg_Memory and Total_Memory fields are coming from?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-eval-UsedMemory-Avg-Memory-Total-Memory-quot-How-do-I-know/m-p/208450#M187788</link>
      <description>&lt;P&gt;About the original question, i still can't tell where those 2 fields are coming from &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; are you using any TA (linux, windows)? &lt;BR /&gt;
About the lookup, yes its possible to create. From the search you are already using a lookup the uses the host and outputs the "environment". To make it automatic, instead of using the command in your search, you can go to settings-&amp;gt;lookups. You get 3 options after selection lookups.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;upload your csv &lt;/LI&gt;
&lt;LI&gt;create the lookup table&lt;/LI&gt;
&lt;LI&gt;create the automatic lookup&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;From the docs: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.0/Knowledge/Usefieldlookupstoaddinformationtoyourevents"&gt;lookups&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 22:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-eval-UsedMemory-Avg-Memory-Total-Memory-quot-How-do-I-know/m-p/208450#M187788</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2016-04-18T22:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: "eval UsedMemory=(Avg_Memory/Total_Memory)" How do I know where the Avg_Memory and Total_Memory fields are coming from?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-eval-UsedMemory-Avg-Memory-Total-Memory-quot-How-do-I-know/m-p/208451#M187789</link>
      <description>&lt;P&gt;Thank you for your time. I got to figure this out after digging a little more with the help of a colleague. I appreciate your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 07:35:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-eval-UsedMemory-Avg-Memory-Total-Memory-quot-How-do-I-know/m-p/208451#M187789</guid>
      <dc:creator>PreetiKa</dc:creator>
      <dc:date>2016-04-21T07:35:51Z</dc:date>
    </item>
  </channel>
</rss>

