<?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 calculate multiple fields total count? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-multiple-fields-total-count/m-p/396173#M115022</link>
    <description>&lt;P&gt;Thank you, it works.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jun 2018 02:02:25 GMT</pubDate>
    <dc:creator>Min1025</dc:creator>
    <dc:date>2018-06-20T02:02:25Z</dc:date>
    <item>
      <title>How to calculate multiple fields total count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-multiple-fields-total-count/m-p/396171#M115020</link>
      <description>&lt;P&gt;I have following fileds, I want to calculate the total f count: (count(f1)+count(f2)+count(f3)+count(f4))=3+3+2+1=9. How can I get the total result 9?&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;fl=1, f2=3, f3=5&lt;/LI&gt;
&lt;LI&gt;f1=2, f2=2&lt;/LI&gt;
&lt;LI&gt;f1=2, f2=3, f3=3, f4=1&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 19 Jun 2018 11:58:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-multiple-fields-total-count/m-p/396171#M115020</guid>
      <dc:creator>Min1025</dc:creator>
      <dc:date>2018-06-19T11:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate multiple fields total count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-multiple-fields-total-count/m-p/396172#M115021</link>
      <description>&lt;P&gt;Hi @Min1025,&lt;/P&gt;

&lt;P&gt;If you have only these fields as output, you could try &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search|fields "f1,f2,e.t.c." |stats count(*) as *|addtotals
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Reference  : &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Addtotals"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Addtotals&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 12:29:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-multiple-fields-total-count/m-p/396172#M115021</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-06-19T12:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate multiple fields total count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-multiple-fields-total-count/m-p/396173#M115022</link>
      <description>&lt;P&gt;Thank you, it works.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 02:02:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-multiple-fields-total-count/m-p/396173#M115022</guid>
      <dc:creator>Min1025</dc:creator>
      <dc:date>2018-06-20T02:02:25Z</dc:date>
    </item>
  </channel>
</rss>

