<?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 sum a field with a 'by' clause in pivot UI? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-a-field-with-a-by-clause-in-pivot-UI/m-p/189137#M54489</link>
    <description>&lt;P&gt;index=_internal per_sourcetype_thruput series!=splunkd | eval gb=kb/1024/1024 | timechart span=1d useother=f sum(gb) by series&lt;/P&gt;

&lt;P&gt;So I have a created a root datamodel of index=_internal source=/opt/splunk/var/log/splunk/metrics.log*&lt;/P&gt;

&lt;P&gt;and a child object of per_sourcetype_thruput series!=splunkd&lt;/P&gt;

&lt;P&gt;and an eval field for gb that is kb/1024/1024&lt;/P&gt;

&lt;P&gt;I'm getting the right fields, but for the field gb field I have no sum function with or without putting a by clause split.  What do I have to do to sum a field with a by clause in pivot UI?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:22:31 GMT</pubDate>
    <dc:creator>mjones414</dc:creator>
    <dc:date>2020-09-28T17:22:31Z</dc:date>
    <item>
      <title>How to sum a field with a 'by' clause in pivot UI?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-a-field-with-a-by-clause-in-pivot-UI/m-p/189137#M54489</link>
      <description>&lt;P&gt;index=_internal per_sourcetype_thruput series!=splunkd | eval gb=kb/1024/1024 | timechart span=1d useother=f sum(gb) by series&lt;/P&gt;

&lt;P&gt;So I have a created a root datamodel of index=_internal source=/opt/splunk/var/log/splunk/metrics.log*&lt;/P&gt;

&lt;P&gt;and a child object of per_sourcetype_thruput series!=splunkd&lt;/P&gt;

&lt;P&gt;and an eval field for gb that is kb/1024/1024&lt;/P&gt;

&lt;P&gt;I'm getting the right fields, but for the field gb field I have no sum function with or without putting a by clause split.  What do I have to do to sum a field with a by clause in pivot UI?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:22:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sum-a-field-with-a-by-clause-in-pivot-UI/m-p/189137#M54489</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2020-09-28T17:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum a field with a 'by' clause in pivot UI?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-a-field-with-a-by-clause-in-pivot-UI/m-p/189138#M54490</link>
      <description>&lt;P&gt;Make sure you set the type of that field to &lt;CODE&gt;Number&lt;/CODE&gt; rather than &lt;CODE&gt;String&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2014 07:44:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sum-a-field-with-a-by-clause-in-pivot-UI/m-p/189138#M54490</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-08-21T07:44:10Z</dc:date>
    </item>
  </channel>
</rss>

