<?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 multiply? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-multiply/m-p/444966#M191209</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Can someone please help me with this query? I am trying to multiply the fields Batch_Size and count and return the results in the tc field. I tried the above syntax but it did not work. &lt;/P&gt;

&lt;P&gt;The first three lines of this query work fine by itself. After adding the lines 4,5, it does not return anything. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"\(TOTAL_REC\)::"
|rex field=_raw "(\(TOTAL_REC\)::)(?P\s(\d))"
|stats count  by Batch_Size
| eval tc = Batch_Size*count
| stats sum(tc) as tc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help will be appreciated. &lt;/P&gt;

&lt;P&gt;Thanks, Ro,&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2019 12:23:02 GMT</pubDate>
    <dc:creator>rlaul</dc:creator>
    <dc:date>2019-08-13T12:23:02Z</dc:date>
    <item>
      <title>How to multiply?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-multiply/m-p/444966#M191209</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Can someone please help me with this query? I am trying to multiply the fields Batch_Size and count and return the results in the tc field. I tried the above syntax but it did not work. &lt;/P&gt;

&lt;P&gt;The first three lines of this query work fine by itself. After adding the lines 4,5, it does not return anything. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"\(TOTAL_REC\)::"
|rex field=_raw "(\(TOTAL_REC\)::)(?P\s(\d))"
|stats count  by Batch_Size
| eval tc = Batch_Size*count
| stats sum(tc) as tc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help will be appreciated. &lt;/P&gt;

&lt;P&gt;Thanks, Ro,&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 12:23:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-multiply/m-p/444966#M191209</guid>
      <dc:creator>rlaul</dc:creator>
      <dc:date>2019-08-13T12:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to multiply?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-multiply/m-p/444967#M191210</link>
      <description>&lt;P&gt;When you do a stats command (line 3), the fields visible before it become inaccessible. One way to solve your question:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"\(TOTAL_REC\)::"
|rex field=_raw "(\(TOTAL_REC\)::)(?P\s(\d))"
|stats count  AS Volume BY Batch_Size
| eval tc = Batch_Size*Volume
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This creates a new field, but you need a field name (Volume) in your stats command for it to work.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 13:16:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-multiply/m-p/444967#M191210</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2019-08-13T13:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to multiply?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-multiply/m-p/444968#M191211</link>
      <description>&lt;P&gt;could you pls post the output of first 3 lines?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 15:59:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-multiply/m-p/444968#M191211</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-08-13T15:59:59Z</dc:date>
    </item>
  </channel>
</rss>

