<?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: How to Merge count two different field values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/512673#M143797</link>
    <description>&lt;P&gt;HI. Thank you for reply.&lt;/P&gt;&lt;P&gt;Solution you given resulted same as mine mentioned commands.&lt;/P&gt;&lt;P&gt;I need "All Teams"'s count&amp;nbsp; ONLY the output and want to rename "All teams" as a "IA".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manasi25_0-1596686813600.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10074i6DADC2FD0C449E1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manasi25_0-1596686813600.png" alt="Manasi25_0-1596686813600.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Aug 2020 04:08:10 GMT</pubDate>
    <dc:creator>Manasi25</dc:creator>
    <dc:date>2020-08-06T04:08:10Z</dc:date>
    <item>
      <title>How to Merge count two different field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/512541#M143760</link>
      <description>&lt;P&gt;I have different Fields values like - teamNameTOC, teamNameEngine&amp;nbsp; under same field Name(teamName) want to merge these two values in single report.&lt;/P&gt;&lt;P&gt;I have tried below and output also attached&lt;/P&gt;&lt;P&gt;teamName=DA OR teamName=DBA OR teamName=Engine OR teamName=SE OR teamName=TOC | top limit=50 teamName&lt;/P&gt;&lt;P&gt;OUTPUT&amp;nbsp;&lt;/P&gt;&lt;P&gt;teamName count percent&lt;BR /&gt;TOC 233 50.000000&lt;BR /&gt;Engine 84 18.025751&lt;BR /&gt;DA 66 14.163090&lt;BR /&gt;SE 55 11.802575&lt;BR /&gt;DBA 28&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need all above values Count (team name , count , %) in one row as single entity. % should adjust itself if add new more values.&lt;/P&gt;&lt;P&gt;Output should look like -&amp;nbsp;&lt;/P&gt;&lt;P&gt;teamName count percent&lt;/P&gt;&lt;P&gt;All Teams 466 100.00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 12:48:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/512541#M143760</guid>
      <dc:creator>Manasi25</dc:creator>
      <dc:date>2020-08-05T12:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Merge count two different field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/512574#M143771</link>
      <description>&lt;P&gt;It's not clear what the final result should be.&amp;nbsp; If you want a total row in addition to the existing results then try this search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;teamName=DA OR teamName=DBA OR teamName=Engine OR teamName=SE OR teamName=TOC | top limit=50 teamName
| addcoltotals labelfield=teamName label="All Teams"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Aug 2020 14:29:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/512574#M143771</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-05T14:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Merge count two different field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/512673#M143797</link>
      <description>&lt;P&gt;HI. Thank you for reply.&lt;/P&gt;&lt;P&gt;Solution you given resulted same as mine mentioned commands.&lt;/P&gt;&lt;P&gt;I need "All Teams"'s count&amp;nbsp; ONLY the output and want to rename "All teams" as a "IA".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manasi25_0-1596686813600.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10074i6DADC2FD0C449E1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manasi25_0-1596686813600.png" alt="Manasi25_0-1596686813600.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 04:08:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/512673#M143797</guid>
      <dc:creator>Manasi25</dc:creator>
      <dc:date>2020-08-06T04:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Merge count two different field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/512731#M143822</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;teamName=DA OR teamName=DBA OR teamName=Engine OR teamName=SE OR teamName=TOC | top limit=50 teamName
| stats sum(count) as count, sum(percent) as percent
| eval teamName = "IA"
| table teamName, count, percent&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Aug 2020 12:20:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/512731#M143822</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-06T12:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Merge count two different field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/513249#M143992</link>
      <description>&lt;P&gt;Thank you so much ! Its worked good.&lt;/P&gt;&lt;P&gt;Kindly let me know, how can I add one more row of another fields to get result as below-&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have field values for "IB" and need to add row below the result&amp;nbsp; of"IA".&lt;/P&gt;&lt;P&gt;Fileds Values -&lt;/P&gt;&lt;P&gt;teamName=&lt;STRONG&gt;A&lt;/STRONG&gt; OR teamName=&lt;STRONG&gt;B&lt;/STRONG&gt; OR teamName=&lt;STRONG&gt;C&lt;/STRONG&gt; OR teamName=&lt;STRONG&gt;D&lt;/STRONG&gt; OR teamName=&lt;STRONG&gt;E&lt;/STRONG&gt; | top limit=50 teamName&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RoutingKey&amp;nbsp; &amp;nbsp; Count&amp;nbsp; &amp;nbsp;Percentage&lt;/P&gt;&lt;P&gt;IA&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;250&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100.00&lt;/P&gt;&lt;P&gt;IB&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;count&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 05:52:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/513249#M143992</guid>
      <dc:creator>Manasi25</dc:creator>
      <dc:date>2020-08-10T05:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Merge count two different field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/513328#M144019</link>
      <description>&lt;P&gt;You should be able to do that with the append command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;teamName=DA OR teamName=DBA OR teamName=Engine OR teamName=SE OR teamName=TOC | top limit=50 teamName
| stats sum(count) as count, sum(percent) as percent
| eval teamName = "IA"
| append [teamName=A OR teamName=B OR teamName=C OR teamName=D | top limit=50 teamName
| stats sum(count) as count, sum(percent) as percent
| eval teamName = "IB" ]
| table teamName, count, percent&lt;/LI-CODE&gt;&lt;P&gt;If your problem is resolved, then please click the "Accept as Solution" button to help future readers.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 12:39:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/513328#M144019</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-10T12:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Merge count two different field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/513547#M144086</link>
      <description>&lt;P&gt;Thank you so much ! It worked.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 11:27:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/513547#M144086</guid>
      <dc:creator>Manasi25</dc:creator>
      <dc:date>2020-08-11T11:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to Merge count two different field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/518084#M145703</link>
      <description>&lt;P&gt;Hi Rich&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution you given worked perfectly, but its parsing my output and getting time for result.&lt;/P&gt;&lt;P&gt;Also, I need average of all results , but it do sum of all avg in Totals. Plz advise.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manasi25_1-1599377950303.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10665i06F540FAB41A67D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manasi25_1-1599377950303.png" alt="Manasi25_1-1599377950303.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manasi25_0-1599377885430.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10664i6977D8474E95C951/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manasi25_0-1599377885430.png" alt="Manasi25_0-1599377885430.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Sep 2020 07:40:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Merge-count-two-different-field-values/m-p/518084#M145703</guid>
      <dc:creator>Manasi25</dc:creator>
      <dc:date>2020-09-06T07:40:22Z</dc:date>
    </item>
  </channel>
</rss>

