<?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 sum two fields ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-two-fields/m-p/103836#M26851</link>
    <description>&lt;P&gt;Try the following search:&lt;/P&gt;

&lt;P&gt;index=&lt;EM&gt;Your_Index&lt;/EM&gt; | stats sum(BytesReceivedPerSec) AS bytes_total&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2011 10:13:11 GMT</pubDate>
    <dc:creator>Ant1D</dc:creator>
    <dc:date>2011-05-18T10:13:11Z</dc:date>
    <item>
      <title>How to sum two fields ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-two-fields/m-p/103835#M26850</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;How can i sum fields to have the total in a new field ?&lt;BR /&gt;
For example, i have a field called (BytesReceivedPerSec) and i would have the sum of this field for all the event (in realtime)&lt;/P&gt;

&lt;P&gt;I tried accum BytesReceivedPersec AS bytesrcvdtotal but i doesn't do a total sum of all the bytes received.&lt;/P&gt;

&lt;P&gt;Have you an idea ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2011 10:08:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sum-two-fields/m-p/103835#M26850</guid>
      <dc:creator>aymericbrun</dc:creator>
      <dc:date>2011-05-18T10:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum two fields ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-two-fields/m-p/103836#M26851</link>
      <description>&lt;P&gt;Try the following search:&lt;/P&gt;

&lt;P&gt;index=&lt;EM&gt;Your_Index&lt;/EM&gt; | stats sum(BytesReceivedPerSec) AS bytes_total&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2011 10:13:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sum-two-fields/m-p/103836#M26851</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2011-05-18T10:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum two fields ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-two-fields/m-p/103837#M26852</link>
      <description>&lt;P&gt;Thank you very much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;It works perfectly&lt;/P&gt;

&lt;P&gt;my search exactly :&lt;/P&gt;

&lt;P&gt;host=hp-dev index="main"| stats sum(BytesReceivedPersec) AS octets_recus sum(BytesSentPersec) AS octets_envoyes | eval octets_recus_Mo=octets_recus / 1000000 | eval octets_envoyes_Mo=octets_envoyes / 1000000&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:34:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sum-two-fields/m-p/103837#M26852</guid>
      <dc:creator>aymericbrun</dc:creator>
      <dc:date>2020-09-28T09:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum two fields ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-two-fields/m-p/103838#M26853</link>
      <description>&lt;P&gt;Glad to help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2011 13:14:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sum-two-fields/m-p/103838#M26853</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2011-05-18T13:14:27Z</dc:date>
    </item>
  </channel>
</rss>

