<?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: Sum fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321735#M163469</link>
    <description>&lt;P&gt;can you provide entire query in &lt;CODE&gt;101010&lt;/CODE&gt; sample code format?also can you provide some sample input and output you want ??&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jan 2018 07:34:24 GMT</pubDate>
    <dc:creator>mayurr98</dc:creator>
    <dc:date>2018-01-21T07:34:24Z</dc:date>
    <item>
      <title>Sum fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321733#M163467</link>
      <description>&lt;P&gt;I would like realize a sum of data like that par exemple :&lt;/P&gt;

&lt;P&gt;data = data + val1 &lt;/P&gt;

&lt;P&gt;But splunk dioesn’t recognize this sum. &lt;/P&gt;

&lt;P&gt;Do you know I can do that ? &lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2018 05:50:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321733#M163467</guid>
      <dc:creator>isachristophe</dc:creator>
      <dc:date>2018-01-21T05:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sum fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321734#M163468</link>
      <description>&lt;P&gt;Hi @isachristophe,&lt;BR /&gt;
try to convert string into number by &lt;CODE&gt;convert&lt;/CODE&gt; command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt;| convert num(data) as data |eval data = data + val1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Jan 2018 05:55:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321734#M163468</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-21T05:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sum fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321735#M163469</link>
      <description>&lt;P&gt;can you provide entire query in &lt;CODE&gt;101010&lt;/CODE&gt; sample code format?also can you provide some sample input and output you want ??&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2018 07:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321735#M163469</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-21T07:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sum fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321736#M163470</link>
      <description>&lt;P&gt;No it doesn’t work .&lt;BR /&gt;
Even if you put this instruction :&lt;BR /&gt;
Convert num (compteur)  as compteur | eval compteur = compteur + 1 | table compteur &lt;/P&gt;

&lt;P&gt;You have nothing in compteur &lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2018 15:02:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321736#M163470</guid>
      <dc:creator>isachristophe</dc:creator>
      <dc:date>2018-01-21T15:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sum fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321737#M163471</link>
      <description>&lt;P&gt;what value is present in compteur?&lt;BR /&gt;
and have you tried same code...as I can see space in between num and (.&lt;BR /&gt;
provide entire query in 101010 sample code format.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2018 15:08:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321737#M163471</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-21T15:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sum fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321738#M163472</link>
      <description>&lt;P&gt;I would like to put in compteur the precedent value of the iteration, but it seems impossible &lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2018 15:48:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321738#M163472</guid>
      <dc:creator>isachristophe</dc:creator>
      <dc:date>2018-01-21T15:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sum fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321739#M163473</link>
      <description>&lt;P&gt;If you can try please -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="&amp;lt;any_index&amp;gt;" 
| eval data="111222" 
| eval val1=666 
| convert num(data) as data 
| eval data = data + val1
| table data
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Jan 2018 15:56:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321739#M163473</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-01-21T15:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321740#M163474</link>
      <description>&lt;P&gt;provide sample input and output you expect&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2018 15:57:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321740#M163474</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-21T15:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sum fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321741#M163475</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults |   eval data="111222" 
 | eval val1=666 
 | convert num(data)     | eval data = data + val1
 | table data
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Its working fine...given result as "111888"&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2018 16:00:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-fields/m-p/321741#M163475</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-21T16:00:32Z</dc:date>
    </item>
  </channel>
</rss>

