<?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 calculate sum of two fields using eval command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-calculate-sum-of-two-fields-using-eval-command/m-p/271040#M81587</link>
    <description>&lt;P&gt;I have column A and B, its values are&lt;/P&gt;

&lt;P&gt;A- 5,10,15,20&lt;BR /&gt;
B-1,2,3,4&lt;/P&gt;

&lt;P&gt;i need the Total in third field which should contain their addition like below:&lt;BR /&gt;
Total-6,12,18,24.&lt;/P&gt;

&lt;P&gt;how can i use eval command for that.??&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2015 14:17:10 GMT</pubDate>
    <dc:creator>Madhan45</dc:creator>
    <dc:date>2015-10-13T14:17:10Z</dc:date>
    <item>
      <title>how to calculate sum of two fields using eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-calculate-sum-of-two-fields-using-eval-command/m-p/271040#M81587</link>
      <description>&lt;P&gt;I have column A and B, its values are&lt;/P&gt;

&lt;P&gt;A- 5,10,15,20&lt;BR /&gt;
B-1,2,3,4&lt;/P&gt;

&lt;P&gt;i need the Total in third field which should contain their addition like below:&lt;BR /&gt;
Total-6,12,18,24.&lt;/P&gt;

&lt;P&gt;how can i use eval command for that.??&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 14:17:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-calculate-sum-of-two-fields-using-eval-command/m-p/271040#M81587</guid>
      <dc:creator>Madhan45</dc:creator>
      <dc:date>2015-10-13T14:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate sum of two fields using eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-calculate-sum-of-two-fields-using-eval-command/m-p/271041#M81588</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval Total = A + B
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Oct 2015 14:19:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-calculate-sum-of-two-fields-using-eval-command/m-p/271041#M81588</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-13T14:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate sum of two fields using eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-calculate-sum-of-two-fields-using-eval-command/m-p/271042#M81589</link>
      <description>&lt;P&gt;for sub,mul,div   "A-B", "A*B","A/B" is it so?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 14:24:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-calculate-sum-of-two-fields-using-eval-command/m-p/271042#M81589</guid>
      <dc:creator>Madhan45</dc:creator>
      <dc:date>2015-10-13T14:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate sum of two fields using eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-calculate-sum-of-two-fields-using-eval-command/m-p/271043#M81590</link>
      <description>&lt;P&gt;Exactly, provided that both &lt;CODE&gt;A&lt;/CODE&gt; and &lt;CODE&gt;B&lt;/CODE&gt; are &lt;CODE&gt;single-valued&lt;/CODE&gt; files; is either &lt;CODE&gt;multi-valued&lt;/CODE&gt;?.  Don't forget to click "Accept".&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 14:28:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-calculate-sum-of-two-fields-using-eval-command/m-p/271043#M81590</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-13T14:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate sum of two fields using eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-calculate-sum-of-two-fields-using-eval-command/m-p/271044#M81591</link>
      <description>&lt;P&gt;Are A and B multi-value fields?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 14:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-calculate-sum-of-two-fields-using-eval-command/m-p/271044#M81591</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-10-13T14:29:36Z</dc:date>
    </item>
  </channel>
</rss>

