<?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: Can you help me sum the data in the following field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454643#M128622</link>
    <description>&lt;P&gt;Thanks Its woking, Appreciate for your help&lt;/P&gt;</description>
    <pubDate>Mon, 29 Oct 2018 15:14:26 GMT</pubDate>
    <dc:creator>maheshsat</dc:creator>
    <dc:date>2018-10-29T15:14:26Z</dc:date>
    <item>
      <title>Can you help me sum the data in the following field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454636#M128615</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I have PATA field which needs to do sum of PATA field,  am using below command where should add PATA to get sum of PATA field&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pass  source="test" |eval DATE = YEAR."-".PERIOD| fields DATE | stats count by DATE

2018-10-24 14:43:50.556, S_DATE="201208", SCENARIO="Actual", YEAR="2016", PERIOD="Feb", VIEW="YTD", ENTITY="109", ENTITY_DESC="Test Canada Inc.", MARKET="Canada", ACCOUNT="922002", ACCOUNT_DESC="922002 - Employee Activity Food Bev", INTER_ENTITY="[ICP None]", VALUE="[Parent Total]", RC="21102", SUBACCOUNT="000000", INTER_RC="000000", PRODUCT="000000", CUSTOM5="USD_FUNC_Total", DATA_TYPE="Total_Late", PATA="179.03919201"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Oct 2018 14:02:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454636#M128615</guid>
      <dc:creator>maheshsat</dc:creator>
      <dc:date>2018-10-29T14:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me sum the data in the following field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454637#M128616</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Can you please try below query ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pass source="test" |eval DATE = YEAR."-".PERIOD| fields DATE, PATA | stats sum(PATA) AS Total_PATA by DATE
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Oct 2018 14:19:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454637#M128616</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-10-29T14:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me sum the data in the following field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454638#M128617</link>
      <description>&lt;P&gt;Thanks for quick reply&lt;/P&gt;

&lt;P&gt;index=pass source="test" |eval DATE = YEAR."-".PERIOD| fields DATE | stats count by DATE&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;getting below output&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;Date                            Count &lt;BR /&gt;
2016-Apr                    6000&lt;BR /&gt;
2016-Aug                    1000&lt;BR /&gt;
2016-Dec                    1229&lt;/P&gt;

&lt;P&gt;My requirement &lt;/P&gt;

&lt;P&gt;Date                            Count    PATA&lt;BR /&gt;
2016-Apr                    6000&lt;BR /&gt;&lt;BR /&gt;
2016-Aug                    1000&lt;BR /&gt;
2016-Dec                    1229&lt;/P&gt;

&lt;P&gt;It should sum of PATA data with year and month wise , visible in PATA field&lt;/P&gt;

&lt;P&gt;your command does not add count field , hence it is not working&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 14:41:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454638#M128617</guid>
      <dc:creator>maheshsat</dc:creator>
      <dc:date>2018-10-29T14:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me sum the data in the following field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454639#M128618</link>
      <description>&lt;P&gt;Have you tried to run query which I have provided ? You are still doing &lt;CODE&gt;stats count&lt;/CODE&gt; instead of &lt;CODE&gt;stats sum(PATA)....&lt;/CODE&gt; as I mentioned in previous comment.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 14:44:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454639#M128618</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-10-29T14:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me sum the data in the following field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454640#M128619</link>
      <description>&lt;P&gt;yes i did your command , but count field is missing , and getting two fields Date and PATA&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 15:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454640#M128619</guid>
      <dc:creator>maheshsat</dc:creator>
      <dc:date>2018-10-29T15:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me sum the data in the following field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454641#M128620</link>
      <description>&lt;P&gt;If you want count and sum both, try below query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pass source="test" |eval DATE = YEAR."-".PERIOD| fields DATE, PATA | stats count, sum(PATA) AS Total_PATA by DATE
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Oct 2018 15:05:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454641#M128620</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-10-29T15:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me sum the data in the following field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454642#M128621</link>
      <description>&lt;P&gt;Try this-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pass source="test" |eval DATE = YEAR."-".PERIOD| fields DATE, PATA | stats count ,sum(PATA) AS Total_PATA by DATE
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Oct 2018 15:08:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454642#M128621</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-10-29T15:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me sum the data in the following field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454643#M128622</link>
      <description>&lt;P&gt;Thanks Its woking, Appreciate for your help&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 15:14:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454643#M128622</guid>
      <dc:creator>maheshsat</dc:creator>
      <dc:date>2018-10-29T15:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me sum the data in the following field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454644#M128623</link>
      <description>&lt;P&gt;Great that your problem is solved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 15:21:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-sum-the-data-in-the-following-field/m-p/454644#M128623</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-10-29T15:21:51Z</dc:date>
    </item>
  </channel>
</rss>

