<?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 How to combine results to display in a pie chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-to-display-in-a-pie-chart/m-p/592635#M206276</link>
    <description>&lt;P&gt;Hello Community,&lt;/P&gt;
&lt;P&gt;I am having issues combining results to display in a pie chart - I tried a few things such as mvappend and it's not working correctly.&lt;/P&gt;
&lt;P&gt;I have pulled a list of Domains and want to display them in a pie chart. To get the list of domains and display them in a chart I am using the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;rex field=netbiosName "^(?&amp;lt;Domain&amp;gt;[^\\\\]+)" | stats count by Domain&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works as intended, but I have a couple of results that come up as both 'domain1' and 'domain1.com' and are displayed in the pie chart. I would like to combine these results, so that the count for both 'domain1' and 'domain1.com' is added together under just 'domain1'&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 15:31:05 GMT</pubDate>
    <dc:creator>Yy4pb</dc:creator>
    <dc:date>2022-04-06T15:31:05Z</dc:date>
    <item>
      <title>How to combine results to display in a pie chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-to-display-in-a-pie-chart/m-p/592635#M206276</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;
&lt;P&gt;I am having issues combining results to display in a pie chart - I tried a few things such as mvappend and it's not working correctly.&lt;/P&gt;
&lt;P&gt;I have pulled a list of Domains and want to display them in a pie chart. To get the list of domains and display them in a chart I am using the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;rex field=netbiosName "^(?&amp;lt;Domain&amp;gt;[^\\\\]+)" | stats count by Domain&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works as intended, but I have a couple of results that come up as both 'domain1' and 'domain1.com' and are displayed in the pie chart. I would like to combine these results, so that the count for both 'domain1' and 'domain1.com' is added together under just 'domain1'&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 15:31:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-to-display-in-a-pie-chart/m-p/592635#M206276</guid>
      <dc:creator>Yy4pb</dc:creator>
      <dc:date>2022-04-06T15:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-to-display-in-a-pie-chart/m-p/592642#M206281</link>
      <description>&lt;P&gt;Are you looking to keep just the first part of all domains, or drop the last part of all domains, or remove just .com if it exists from all domains, or change a specific set of domain.com to domain?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 10:08:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-to-display-in-a-pie-chart/m-p/592642#M206281</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-06T10:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-to-display-in-a-pie-chart/m-p/592649#M206284</link>
      <description>&lt;P&gt;I need to combine the results - so like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;14 domain1
10 domain1.com&lt;/LI-CODE&gt;&lt;P&gt;I need:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;24 domain1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 10:53:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-to-display-in-a-pie-chart/m-p/592649#M206284</guid>
      <dc:creator>Yy4pb</dc:creator>
      <dc:date>2022-04-06T10:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-to-display-in-a-pie-chart/m-p/592653#M206287</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex field=netbiosName "^(?&amp;lt;Domain&amp;gt;[^\\\\]+)" 
| eval Domain=if(Domain="domain1.com","domain1",Domain)
| stats count by Domain&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Apr 2022 11:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-to-display-in-a-pie-chart/m-p/592653#M206287</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-06T11:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-to-display-in-a-pie-chart/m-p/592680#M206306</link>
      <description>&lt;P&gt;Works exactly as I wanted - thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 12:59:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-to-display-in-a-pie-chart/m-p/592680#M206306</guid>
      <dc:creator>Yy4pb</dc:creator>
      <dc:date>2022-04-06T12:59:50Z</dc:date>
    </item>
  </channel>
</rss>

