<?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: serach string combination in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/serach-string-combination/m-p/73323#M18337</link>
    <description>&lt;P&gt;This should do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=vmstat 
| multikv fields memUsedPct  
| stats avg(memUsedPct) max(memUsedPct) by host
| join host [ search index=os sourcetype=cpu 
    | multikv fields pctIdle  
    | search all  
    | eval Percent_CPU_Load = 100 - pctIdle  
    | stats avg(Percent_CPU_Load) as Average max(Percent_CPU_Load) as Peak  by host ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 27 Dec 2012 06:10:04 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2012-12-27T06:10:04Z</dc:date>
    <item>
      <title>serach string combination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/serach-string-combination/m-p/73322#M18336</link>
      <description>&lt;P&gt;I want to create a sreach string that will provide the avegCPU util, PeakCPU util, AvgMem util and PeakMem util.&lt;BR /&gt;
I have created four different search string. How to combine them?&lt;/P&gt;

&lt;P&gt;average memory usage&lt;BR /&gt;
index=os sourcetype=vmstat | multikv fields memUsedPct  | stats avg(memUsedPct) by host&lt;/P&gt;

&lt;P&gt;peak memory usage&lt;BR /&gt;
index=os sourcetype=vmstat | multikv fields memUsedPct  | stats max(memUsedPct) by host&lt;/P&gt;

&lt;P&gt;average CPU usage&lt;BR /&gt;
index=os sourcetype=cpu | multikv fields pctIdle  | search all  | eval Percent_CPU_Load = 100 - pctIdle  | stats avg(Percent_CPU_Load) as Average by host&lt;/P&gt;

&lt;P&gt;Peak CPU usage&lt;BR /&gt;
index=os sourcetype=cpu | multikv fields pctIdle  | search all  | eval Percent_CPU_Load = 100 - pctIdle  | stats max(Percent_CPU_Load) as Peak by host&lt;/P&gt;

&lt;P&gt;HELP me out!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:01:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/serach-string-combination/m-p/73322#M18336</guid>
      <dc:creator>Splunk_U</dc:creator>
      <dc:date>2020-09-28T13:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: serach string combination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/serach-string-combination/m-p/73323#M18337</link>
      <description>&lt;P&gt;This should do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=vmstat 
| multikv fields memUsedPct  
| stats avg(memUsedPct) max(memUsedPct) by host
| join host [ search index=os sourcetype=cpu 
    | multikv fields pctIdle  
    | search all  
    | eval Percent_CPU_Load = 100 - pctIdle  
    | stats avg(Percent_CPU_Load) as Average max(Percent_CPU_Load) as Peak  by host ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Dec 2012 06:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/serach-string-combination/m-p/73323#M18337</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-12-27T06:10:04Z</dc:date>
    </item>
  </channel>
</rss>

