<?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: multisearch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/multisearch/m-p/568493#M198122</link>
    <description>&lt;P&gt;One problem with the &lt;FONT face="courier new,courier"&gt;appendcols&lt;/FONT&gt; command is it depends on the order of results being identical in both queries, which is not likely.&lt;/P&gt;&lt;P&gt;Use the &lt;FONT face="courier new,courier"&gt;append&lt;/FONT&gt; command instead then combine the two set of results using &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="bar_*" sourcetype =foo crm="ser"
| dedup uid
| stats count as TotalCount by zerocode SubType
| append
  [search index="bar_*" sourcetype =foo crm="ser" jet="fas"
  | dedup uid
  | stats count as TotalFalseCount by zerocode SubType]
| stats values(*) as * by zerocode SubType
| fillnull value=0 TotalFalseCount
| eval Percent=(TotalFalseCount/TotalCount)*100
| stats count by zerocode SubType Percent&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Sep 2021 21:31:40 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-09-26T21:31:40Z</dc:date>
    <item>
      <title>multisearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multisearch/m-p/568485#M198120</link>
      <description>&lt;P&gt;Hi , I have 2 queries :&lt;/P&gt;&lt;P&gt;index="bar_*" sourcetype =foo crm="ser"&lt;BR /&gt;| dedup uid&lt;BR /&gt;| stats count as TotalCount&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index="bar_*" sourcetype =foo crm="ser" jet="fas"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| dedup uid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| stats count as TotalFalseCount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need both of these queries merged and then take "TotalCount" and "TotalFalseCount" and get value from these as : ActualPercent= (TotalFalseCount/TotalCount)*100.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I created one query as below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;index="bar_*" sourcetype =foo crm="ser"&lt;BR /&gt;| dedup uid&lt;BR /&gt;| stats count as TotalCount by zerocode SubType&lt;BR /&gt;| appendcols&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [searchindex="bar_*" sourcetype =foo crm="ser" jet="fas"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| dedup uid&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | stats count as TotalFalseCount by zerocode SubType]&lt;BR /&gt;&amp;nbsp;| eval Percent=(TotalFalseCount/TotalCount)*100&lt;BR /&gt;&amp;nbsp; &amp;nbsp;| stats count by zerocode SubType Percent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the value of "Percent" is completely wrong, can anybody help to know how can I get proper value of "Percent" in above case ?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Sep 2021 13:55:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multisearch/m-p/568485#M198120</guid>
      <dc:creator>zakura</dc:creator>
      <dc:date>2021-09-26T13:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: multisearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multisearch/m-p/568493#M198122</link>
      <description>&lt;P&gt;One problem with the &lt;FONT face="courier new,courier"&gt;appendcols&lt;/FONT&gt; command is it depends on the order of results being identical in both queries, which is not likely.&lt;/P&gt;&lt;P&gt;Use the &lt;FONT face="courier new,courier"&gt;append&lt;/FONT&gt; command instead then combine the two set of results using &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="bar_*" sourcetype =foo crm="ser"
| dedup uid
| stats count as TotalCount by zerocode SubType
| append
  [search index="bar_*" sourcetype =foo crm="ser" jet="fas"
  | dedup uid
  | stats count as TotalFalseCount by zerocode SubType]
| stats values(*) as * by zerocode SubType
| fillnull value=0 TotalFalseCount
| eval Percent=(TotalFalseCount/TotalCount)*100
| stats count by zerocode SubType Percent&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Sep 2021 21:31:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multisearch/m-p/568493#M198122</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-09-26T21:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: multisearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multisearch/m-p/568511#M198127</link>
      <description>&lt;P&gt;With Minor modification it exactly helped to do what I was looking for :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;index="bar_*" sourcetype =foo crm="ser"&lt;/P&gt;&lt;P class="p1"&gt;| dedup uid&lt;/P&gt;&lt;P class="p1"&gt;| stats count as TotalCount by zerocode SubType&lt;/P&gt;&lt;P class="p1"&gt;| append&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;[search index="bar_*" sourcetype =foo crm="ser" jet="fas"&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;| dedup uid&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;| stats count as TotalFalseCount by zerocode SubType]&lt;/P&gt;&lt;P class="p1"&gt;| stats values as * by zerocode SubType&lt;/P&gt;&lt;P class="p1"&gt;| eval Percent=(TotalFalseCount/TotalCount)*100&lt;/P&gt;&lt;P class="p1"&gt;| eval Percentage = round('Percent',2)&lt;/P&gt;&lt;P class="p1"&gt;| xyseries&amp;nbsp;SubType&amp;nbsp;zerocode&amp;nbsp;Percentage&lt;/P&gt;&lt;P class="p1"&gt;| fillnull value="NA"&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 04:01:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multisearch/m-p/568511#M198127</guid>
      <dc:creator>zakura</dc:creator>
      <dc:date>2021-09-27T04:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: multisearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multisearch/m-p/568512#M198128</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp; -- You are awesome ! Thanks a lot !&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 04:02:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multisearch/m-p/568512#M198128</guid>
      <dc:creator>zakura</dc:creator>
      <dc:date>2021-09-27T04:02:53Z</dc:date>
    </item>
  </channel>
</rss>

