<?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 of the field based on the other field values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sum-of-the-field-based-on-the-other-field-values/m-p/678707#M232060</link>
    <description>&lt;P&gt;Here is one of perhaps many ways to do that.&amp;nbsp; It extracts the first letter of ROW1 as the new ROW1 value and the adds the ROWcount values with matching ROW1 values.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=ROW1 "(?&amp;lt;ROW1&amp;gt;.)"
| stats sum(ROWcount) as ROWcount by ROW1&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 26 Feb 2024 18:35:30 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-02-26T18:35:30Z</dc:date>
    <item>
      <title>Sum of the field based on the other field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-of-the-field-based-on-the-other-field-values/m-p/678705#M232059</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;&lt;BR /&gt;how to Sum of the field based on the other field values.&lt;BR /&gt;Row1 field values will be 0-9 and a-z.&lt;BR /&gt;Sample one given below:&lt;/P&gt;&lt;TABLE border="0" width="128" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64" height="19"&gt;ROW1&lt;/TD&gt;&lt;TD width="64"&gt;ROWcount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;11&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;12&lt;/TD&gt;&lt;TD&gt;54&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;13&lt;/TD&gt;&lt;TD&gt;34&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;a1&lt;/TD&gt;&lt;TD&gt;56&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;a2&lt;/TD&gt;&lt;TD&gt;78&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;d3&lt;/TD&gt;&lt;TD&gt;67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;c4&lt;/TD&gt;&lt;TD&gt;78&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;c5&lt;/TD&gt;&lt;TD&gt;79&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Final Output be like:&lt;/P&gt;&lt;TABLE border="0" width="128" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="56.9375px" height="14px"&gt;ROW1&lt;/TD&gt;&lt;TD width="88.4375px" height="14px"&gt;ROWcount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="56.9375px" height="14px"&gt;1&lt;/TD&gt;&lt;TD width="88.4375px" height="14px"&gt;110&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="56.9375px" height="14px"&gt;a&lt;/TD&gt;&lt;TD width="88.4375px" height="14px"&gt;134&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="56.9375px" height="14px"&gt;d&lt;/TD&gt;&lt;TD width="88.4375px" height="14px"&gt;67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="56.9375px" height="14px"&gt;c&lt;/TD&gt;&lt;TD width="88.4375px" height="14px"&gt;157&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Thanks in Advance!!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 18:28:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-of-the-field-based-on-the-other-field-values/m-p/678705#M232059</guid>
      <dc:creator>Anud</dc:creator>
      <dc:date>2024-02-26T18:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the field based on the other field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-of-the-field-based-on-the-other-field-values/m-p/678707#M232060</link>
      <description>&lt;P&gt;Here is one of perhaps many ways to do that.&amp;nbsp; It extracts the first letter of ROW1 as the new ROW1 value and the adds the ROWcount values with matching ROW1 values.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=ROW1 "(?&amp;lt;ROW1&amp;gt;.)"
| stats sum(ROWcount) as ROWcount by ROW1&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 26 Feb 2024 18:35:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-of-the-field-based-on-the-other-field-values/m-p/678707#M232060</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-02-26T18:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the field based on the other field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-of-the-field-based-on-the-other-field-values/m-p/678787#M232090</link>
      <description>&lt;P&gt;Logic was worked. Thank you&amp;nbsp; so much&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 09:05:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-of-the-field-based-on-the-other-field-values/m-p/678787#M232090</guid>
      <dc:creator>Anud</dc:creator>
      <dc:date>2024-02-27T09:05:39Z</dc:date>
    </item>
  </channel>
</rss>

