<?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: Check Multiple Pre-defined Searches and Return one value in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Check-Multiple-Pre-defined-Searches-and-Return-one-value/m-p/62553#M12506</link>
    <description>&lt;P&gt;Thank you for the quick response! Appreciate it very much..&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2013 13:44:26 GMT</pubDate>
    <dc:creator>chamil3001</dc:creator>
    <dc:date>2013-03-15T13:44:26Z</dc:date>
    <item>
      <title>Check Multiple Pre-defined Searches and Return one value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Check-Multiple-Pre-defined-Searches-and-Return-one-value/m-p/62550#M12503</link>
      <description>&lt;P&gt;Heres what i want to do.&lt;/P&gt;

&lt;P&gt;Scenario,&lt;BR /&gt;
Monitor threshold breaches of CPU,HDD and memory etc&lt;/P&gt;

&lt;P&gt;1) I have multiple searches written for each of the above and they work ok.&lt;/P&gt;

&lt;P&gt;Eg1: &lt;STRONG&gt;host="MYHOST1" sourcetype="Perfmon:LogicalDisk_FreeSpace" NOT instance=_Total | eval Value=round(100-Value,2) | sort -_time -Value | head 1 | table Value |sort limit=1 Value| rangemap field="Value" low=0-30 elevated=31-60 default=severe&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Eg2: &lt;STRONG&gt;host="MYHOST1" source="Perfmon:Total_Processor_Time" counter="% Processor Time" |eval myvalues = round(Value, 2) | table myvalues |rename myvalues as "CPU Utilzation" |sort limit=1 myvalues |rangemap field="CPU Utilzation" low=0-30 elevated=31-60 default=severe&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;2) Now I want to check both(or multiple) of the above searches at the same time and return a value.&lt;/P&gt;

&lt;P&gt;Eg: &lt;STRONG&gt;"Threasholds Breached!"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thanks in Advance!&lt;BR /&gt;
Chamil&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:31:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Check-Multiple-Pre-defined-Searches-and-Return-one-value/m-p/62550#M12503</guid>
      <dc:creator>chamil3001</dc:creator>
      <dc:date>2020-09-28T13:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Check Multiple Pre-defined Searches and Return one value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Check-Multiple-Pre-defined-Searches-and-Return-one-value/m-p/62551#M12504</link>
      <description>&lt;P&gt;You could append them all into one big search, and alert if at least one is breached.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 09:38:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Check-Multiple-Pre-defined-Searches-and-Return-one-value/m-p/62551#M12504</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-15T09:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Check Multiple Pre-defined Searches and Return one value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Check-Multiple-Pre-defined-Searches-and-Return-one-value/m-p/62552#M12505</link>
      <description>&lt;P&gt;martin_mueller's idea exemplified;&lt;/P&gt;

&lt;P&gt;For reasons of simplicity, this search looks at &lt;CODE&gt;host&lt;/CODE&gt; fields, and gives you a single value if either part of the search (values h1 or h2) returns the "myhost".   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=blah  | head 1 | stats first(host) as h1 
|appendcols [search index=meh | head 1 |stats first(host) as h2 ] 
| eval host_value = if((h1=="myhost") OR (h2=="myhost"), "myhost", "not_myhost") 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 09:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Check-Multiple-Pre-defined-Searches-and-Return-one-value/m-p/62552#M12505</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-03-15T09:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Check Multiple Pre-defined Searches and Return one value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Check-Multiple-Pre-defined-Searches-and-Return-one-value/m-p/62553#M12506</link>
      <description>&lt;P&gt;Thank you for the quick response! Appreciate it very much..&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 13:44:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Check-Multiple-Pre-defined-Searches-and-Return-one-value/m-p/62553#M12506</guid>
      <dc:creator>chamil3001</dc:creator>
      <dc:date>2013-03-15T13:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Check Multiple Pre-defined Searches and Return one value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Check-Multiple-Pre-defined-Searches-and-Return-one-value/m-p/62554#M12507</link>
      <description>&lt;P&gt;Thank you for the quick response! Appreciate it very much..  &lt;/P&gt;

&lt;P&gt;I will check it out&lt;BR /&gt;
Just came home from office after trying to solve this all day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 13:45:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Check-Multiple-Pre-defined-Searches-and-Return-one-value/m-p/62554#M12507</guid>
      <dc:creator>chamil3001</dc:creator>
      <dc:date>2013-03-15T13:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Check Multiple Pre-defined Searches and Return one value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Check-Multiple-Pre-defined-Searches-and-Return-one-value/m-p/62555#M12508</link>
      <description>&lt;P&gt;managed to get it to work using multiple Eval commands and nested "if" functions.. thanks&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2013 03:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Check-Multiple-Pre-defined-Searches-and-Return-one-value/m-p/62555#M12508</guid>
      <dc:creator>chamil3001</dc:creator>
      <dc:date>2013-03-26T03:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Check Multiple Pre-defined Searches and Return one value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Check-Multiple-Pre-defined-Searches-and-Return-one-value/m-p/62556#M12509</link>
      <description>&lt;P&gt;yeah.. got it to work, but still need to do some tuning..&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2013 03:11:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Check-Multiple-Pre-defined-Searches-and-Return-one-value/m-p/62556#M12509</guid>
      <dc:creator>chamil3001</dc:creator>
      <dc:date>2013-03-26T03:11:16Z</dc:date>
    </item>
  </channel>
</rss>

