<?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 Combine / Add rows in the search results using a wildcard in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Combine-Add-rows-in-the-search-results-using-a-wildcard/m-p/412702#M146072</link>
    <description>&lt;P&gt;I am beginner to Splunk and could you please help me with the following scenario. I have a search that will display a pie chart of the computer count.&lt;/P&gt;
&lt;P&gt;Now I would like to combine the search results with a wild card search&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Search I use&lt;/STRONG&gt; : mySearch here | stats dc(COMPUTER) by OS&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7170iB20DA97E6C67F7C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 23:05:42 GMT</pubDate>
    <dc:creator>veerappan</dc:creator>
    <dc:date>2020-09-17T23:05:42Z</dc:date>
    <item>
      <title>Combine / Add rows in the search results using a wildcard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-Add-rows-in-the-search-results-using-a-wildcard/m-p/412702#M146072</link>
      <description>&lt;P&gt;I am beginner to Splunk and could you please help me with the following scenario. I have a search that will display a pie chart of the computer count.&lt;/P&gt;
&lt;P&gt;Now I would like to combine the search results with a wild card search&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Search I use&lt;/STRONG&gt; : mySearch here | stats dc(COMPUTER) by OS&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7170iB20DA97E6C67F7C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 23:05:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-Add-rows-in-the-search-results-using-a-wildcard/m-p/412702#M146072</guid>
      <dc:creator>veerappan</dc:creator>
      <dc:date>2020-09-17T23:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Combine / Add rows in the search results using a widcard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-Add-rows-in-the-search-results-using-a-wildcard/m-p/412703#M146073</link>
      <description>&lt;P&gt;@veerappan &lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_SEARCH | eval OS=case(like(lower(OS),"windows%"),"Windows",like(lower(OS),"mac%"),"Mac",1=1,OS) | stats sum("Computer Count") as "Computer Count" by OS
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;My Sample Search:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval OS="Windows 7", "Computer Count"=50 | append [| makeresults | eval OS="Windows Server", "Computer Count"=25] | append [| makeresults | eval OS="Mac x", "Computer Count"=20]  | append [| makeresults | eval OS="Mac y", "Computer Count"=25]  | append [| makeresults | eval OS="Ubuntu", "Computer Count"=30] 
| eval OS=case(like(lower(OS),"windows%"),"Windows",like(lower(OS),"mac%"),"Mac",1=1,OS) | stats sum("Computer Count") as "Computer Count" by OS
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 12:25:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-Add-rows-in-the-search-results-using-a-wildcard/m-p/412703#M146073</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-06-11T12:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Combine / Add rows in the search results using a widcard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-Add-rows-in-the-search-results-using-a-wildcard/m-p/412704#M146074</link>
      <description>&lt;P&gt;@kamlesh_vaghela Thanks a lot it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 14:11:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-Add-rows-in-the-search-results-using-a-wildcard/m-p/412704#M146074</guid>
      <dc:creator>veerappan</dc:creator>
      <dc:date>2019-06-11T14:11:42Z</dc:date>
    </item>
  </channel>
</rss>

