<?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 join in search string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/join-in-search-string/m-p/85572#M21868</link>
    <description>&lt;P&gt;I have a search string&lt;/P&gt;

&lt;P&gt;index=os source=vmstat &lt;BR /&gt;
| multikv fields memUsedPct memTotalMB memFreeMB&lt;BR /&gt;
| stats avg(memUsedPct) as avgMemPct max(memUsedPct) as peakMemPct avg(memUsedMB) as avgMemMb max(memUsedMB) as peakMemMb by host&lt;BR /&gt;
| join host [ search index=os source=cpu &lt;BR /&gt;
    | multikv fields pctIdle&lt;BR /&gt;&lt;BR /&gt;
    | search all&lt;BR /&gt;&lt;BR /&gt;
    | eval Percent_CPU_Load = 100 - pctIdle&lt;BR /&gt;&lt;BR /&gt;
    | stats avg(Percent_CPU_Load) as avgCpuPct max(Percent_CPU_Load) as peakCpuPct by host&lt;/P&gt;

&lt;P&gt;Now is there any way that I can get the same result without doing join??&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:05:40 GMT</pubDate>
    <dc:creator>Splunk_U</dc:creator>
    <dc:date>2020-09-28T13:05:40Z</dc:date>
    <item>
      <title>join in search string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-in-search-string/m-p/85572#M21868</link>
      <description>&lt;P&gt;I have a search string&lt;/P&gt;

&lt;P&gt;index=os source=vmstat &lt;BR /&gt;
| multikv fields memUsedPct memTotalMB memFreeMB&lt;BR /&gt;
| stats avg(memUsedPct) as avgMemPct max(memUsedPct) as peakMemPct avg(memUsedMB) as avgMemMb max(memUsedMB) as peakMemMb by host&lt;BR /&gt;
| join host [ search index=os source=cpu &lt;BR /&gt;
    | multikv fields pctIdle&lt;BR /&gt;&lt;BR /&gt;
    | search all&lt;BR /&gt;&lt;BR /&gt;
    | eval Percent_CPU_Load = 100 - pctIdle&lt;BR /&gt;&lt;BR /&gt;
    | stats avg(Percent_CPU_Load) as avgCpuPct max(Percent_CPU_Load) as peakCpuPct by host&lt;/P&gt;

&lt;P&gt;Now is there any way that I can get the same result without doing join??&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:05:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-in-search-string/m-p/85572#M21868</guid>
      <dc:creator>Splunk_U</dc:creator>
      <dc:date>2020-09-28T13:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: join in search string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/join-in-search-string/m-p/85573#M21869</link>
      <description>&lt;P&gt;How does this work?&lt;/P&gt;

&lt;P&gt;index=os AND ( source=cpu OR source=vmstat) | multikv fields memUsedPct memTotalMB memFreeMB pctIdle | eval Percent_CPU_Load = 100 - pctIdle | stats avg(memUsedPct) as avgMemPct max(memUsedPct) as peakMemPct avg(memUsedMB) as avgMemMb max(memUsedMB) as peakMemMb avg(Percent_CPU_Load) as avgCpuPct max(Percent_CPU_Load) as peakCpuPct  by host &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:05:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/join-in-search-string/m-p/85573#M21869</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2020-09-28T13:05:43Z</dc:date>
    </item>
  </channel>
</rss>

