<?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 edit my alert search to convert Available Memory value from bytes to a percentage? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340622#M101027</link>
    <description>&lt;P&gt;@sonila&lt;BR /&gt;
Voting up @niketnilay comment, this is the right way to go and IMHO should also be the answer to your question and not only a comment&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2017 12:43:32 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2017-04-21T12:43:32Z</dc:date>
    <item>
      <title>How to edit my alert search to convert Available Memory value from bytes to a percentage?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340615#M101020</link>
      <description>&lt;P&gt;I need to create an alert which is if in a 10 period of time to see if memory percentage of the host is over 90%. Here is what I have when I search for sourcetype="Perfmon:Available Memory" which is the only sourcetype I have:&lt;BR /&gt;
04/21/2017 00:20:59.143 +0200&lt;BR /&gt;
collection="Available Memory"&lt;BR /&gt;
object=Memory&lt;BR /&gt;
counter="Available Bytes"&lt;BR /&gt;
instance=0&lt;BR /&gt;
Value=992362496&lt;/P&gt;

&lt;P&gt;The search that i do is as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-10m@m latest=@m index="my-live-srv" sourcetype="Perfmon:Available Memory"|stats  avg(Value) as AvgValue_Last10m  count by  host | eval AvgValue_Last10mGB = round(((AvgValue_Last10m/1024)/1024)/1024 ,2)| where AvgValue_Last10mGB &amp;gt;= 90| fields - count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so here the value is in byte? How can I make it as percentage?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 22:37:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340615#M101020</guid>
      <dc:creator>sonila</dc:creator>
      <dc:date>2017-04-20T22:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my alert search to convert Available Memory value from bytes to a percentage?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340616#M101021</link>
      <description>&lt;P&gt;hi sonila, &lt;BR /&gt;
i guess percentage is determined against the total memory the host has. one may think each host will have different amount of memory but lets assume all machines has memory value of 10&lt;BR /&gt;
here is a search that will do it based on your search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-10m@m latest=@m index="my-live-srv" sourcetype="Perfmon:Available Memory"
|stats  avg(Value) as AvgValue_Last10m  host 
| eval AvgValue_Last10mGB = round(((AvgValue_Last10m/1024)/1024)/1024 ,2)
| eval myMem = 10 
| eval memPCT = AvgValue_Last10mGB/10*100
| table host memPCT 
| where memPCT &amp;gt; 90
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 04:26:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340616#M101021</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-04-21T04:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my alert search to convert Available Memory value from bytes to a percentage?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340617#M101022</link>
      <description>&lt;P&gt;@sonila... You would need to know the &lt;STRONG&gt;Total Physical Memory&lt;/STRONG&gt; on the machine you are trying to monitor in order to calculate the %Available Megabyte. You can instead use &lt;STRONG&gt;% Committed Bytes in Use&lt;/STRONG&gt; performance counter, which indicates Virtual Memory in Use and should not be &amp;gt;80% or something as per your use case.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 06:23:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340617#M101022</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-21T06:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my alert search to convert Available Memory value from bytes to a percentage?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340618#M101023</link>
      <description>&lt;P&gt;I dont have % Committed Bytes in Use as a counter&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 07:27:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340618#M101023</guid>
      <dc:creator>sonila</dc:creator>
      <dc:date>2017-04-21T07:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my alert search to convert Available Memory value from bytes to a percentage?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340619#M101024</link>
      <description>&lt;P&gt;Thank you. It is very helpful but I dont know the amount of all machines. Do I really need to make an assumption?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 07:29:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340619#M101024</guid>
      <dc:creator>sonila</dc:creator>
      <dc:date>2017-04-21T07:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my alert search to convert Available Memory value from bytes to a percentage?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340620#M101025</link>
      <description>&lt;P&gt;If you do not have &lt;STRONG&gt;% Committed Bytes in Use&lt;/STRONG&gt; memory performance counter, you or Splunk Admin would need to enable it on the server/s being monitored.&lt;/P&gt;

&lt;P&gt;Clearly you are using Perfmon for measuring your Windows Server performance. The current inputs.conf which is sending &lt;STRONG&gt;Perfmon:Available Memory&lt;/STRONG&gt; counter needs to be configured to forward&lt;BR /&gt;&lt;BR /&gt;
&lt;STRONG&gt;% Committed Bytes in Use&lt;/STRONG&gt; as well.&lt;/P&gt;

&lt;P&gt;Refer to following documentations on Performance Counters(You can also check out Performance Counters on Microsoft site for complete details):&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/inputsconf#Performance_Monitor"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/inputsconf#Performance_Monitor&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/MonitorWindowsperformance#Collect_performance_metrics_in_English_regardless_of_system_locale"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/MonitorWindowsperformance#Collect_performance_metrics_in_English_regardless_of_system_locale&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 08:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340620#M101025</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-21T08:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my alert search to convert Available Memory value from bytes to a percentage?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340621#M101026</link>
      <description>&lt;P&gt;If you have limited number of Windows servers(hosts) being monitored and you/your admin can not enable the % Committed Bytes in Use similar to Available Memory performance counter then you would need to maintain a lookup table or KV Store with Total Memory per server and use the approach that adonio has provided.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 08:50:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340621#M101026</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-21T08:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my alert search to convert Available Memory value from bytes to a percentage?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340622#M101027</link>
      <description>&lt;P&gt;@sonila&lt;BR /&gt;
Voting up @niketnilay comment, this is the right way to go and IMHO should also be the answer to your question and not only a comment&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 12:43:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340622#M101027</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-04-21T12:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my alert search to convert Available Memory value from bytes to a percentage?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340623#M101028</link>
      <description>&lt;P&gt;@sonia , i have converted my comment to answer. Please accept if this helped.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 18:28:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-alert-search-to-convert-Available-Memory-value/m-p/340623#M101028</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-24T18:28:34Z</dc:date>
    </item>
  </channel>
</rss>

