<?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 can I get the total count of payments and total amount of payments? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321278#M95976</link>
    <description>&lt;P&gt;index = elm-retail-rws source="/opt/app/jboss/current/standalone/log/PosMultipaymentProfile.log"  &lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2017 04:23:54 GMT</pubDate>
    <dc:creator>gowthambr</dc:creator>
    <dc:date>2017-09-08T04:23:54Z</dc:date>
    <item>
      <title>How can I get the total count of payments and total amount of payments?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321278#M95976</link>
      <description>&lt;P&gt;index = elm-retail-rws source="/opt/app/jboss/current/standalone/log/PosMultipaymentProfile.log"  &lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 04:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321278#M95976</guid>
      <dc:creator>gowthambr</dc:creator>
      <dc:date>2017-09-08T04:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the total count of payments and total amount of payments?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321279#M95977</link>
      <description>&lt;P&gt;@gowthambr, you would need to provide sample events and field name based of which Payment/Amount can be pulled.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 09:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321279#M95977</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-08T09:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the total count of payments and total amount of payments?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321280#M95978</link>
      <description>&lt;P&gt;8/31/17&lt;BR /&gt;
10:14:06.680 PM &lt;BR /&gt;
22:14:06,680  OtSrkUlG9HcFK6SQ1GP5T2JC INFO  &lt;A href="https://community.splunk.com/*"&gt;*&lt;/A&gt; RWS to EWS submitCashPayment Request &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;AccountNumber9&amp;gt;*&amp;lt;/AccountNumber9&amp;gt;
&amp;lt;StatementCode&amp;gt;1&amp;lt;/StatementCode&amp;gt;
&amp;lt;Amount&amp;gt;75.79&amp;lt;/Amount&amp;gt;
&amp;lt;MOPClass&amp;gt;VISA16&amp;lt;/MOPClass&amp;gt;
&amp;lt;SiteId&amp;gt;476&amp;lt;/SiteId&amp;gt;
&amp;lt;WorkStationId&amp;gt;Pos&amp;lt;/WorkStationId&amp;gt;
&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Sep 2017 10:33:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321280#M95978</guid>
      <dc:creator>gowthambr</dc:creator>
      <dc:date>2017-09-08T10:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the total count of payments and total amount of payments?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321281#M95979</link>
      <description>&lt;P&gt;This event is from the webservice call&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 10:33:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321281#M95979</guid>
      <dc:creator>gowthambr</dc:creator>
      <dc:date>2017-09-08T10:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the total count of payments and total amount of payments?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321282#M95980</link>
      <description>&lt;P&gt;kindly report the above sample event using code button (101010) so that special characters do not escape. Also make sure you anonymize/mask sensitive information.&lt;/P&gt;

&lt;P&gt;Do you already have fields extracted from XML like Amount etc? What is the identification (pattern) of Payment Data? Is there any specific root node or other node for Payment information?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 11:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321282#M95980</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-08T11:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the total count of payments and total amount of payments?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321283#M95981</link>
      <description>&lt;P&gt;Since crucial information of event is still pending, you can start off with the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = elm-retail-rws source="/opt/app/jboss/current/standalone/log/PosMultipaymentProfile.log"  "&amp;lt;Amount&amp;gt;"  "&amp;lt;/Amount&amp;gt;" NOT 
 "&amp;lt;Amount&amp;gt;&amp;lt;/Amount&amp;gt;"
| rex field=_raw "&amp;lt;Amount&amp;gt;(?&amp;lt;Amount&amp;gt;[^\&amp;gt;]+)&amp;lt;\/Amount&amp;gt;"
| stats count as Payments sum(Amount) as TotalAmount
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can eventually switch to spath so that field extraction is easy and more statistical data is available. You can also add &lt;CODE&gt;MOPClass&lt;/CODE&gt; field and then split the TotalAmount by Method of Payment like &lt;CODE&gt;VISA&lt;/CODE&gt;, &lt;CODE&gt;Mastercard&lt;/CODE&gt; etc. &lt;/P&gt;

&lt;P&gt;PS: In order to identify only the events with Payments I have added &lt;CODE&gt;NOT &lt;BR /&gt;
     "&amp;lt;Amount&amp;gt;&amp;lt;/Amount&amp;gt;"&lt;/CODE&gt; condition in the search this should be replaced with the search filters which selects only the events with Payment information.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 11:09:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321283#M95981</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-08T11:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the total count of payments and total amount of payments?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321284#M95982</link>
      <description>&lt;P&gt;Just add this to your existing simple search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "&amp;lt;Amount&amp;gt;(?&amp;lt;Amount&amp;gt;[\d\.]+)&amp;lt;\/Amount&amp;gt;"
| stats count sum(Amount) AS GrandTotal
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Sep 2017 23:36:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321284#M95982</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-08T23:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the total count of payments and total amount of payments?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321285#M95983</link>
      <description>&lt;P&gt;Hi Niket,&lt;BR /&gt;
This was very helpful, and MOP was the requirement too, but could not able to find the documentation for mopclass and I am very new to splunk, not getting how to go ahead. &lt;BR /&gt;
These are the type of transactions- VISA, MasterCard, cash, AX, ECHECK etc. could you please these things as well.&lt;BR /&gt;
Thank you very much &lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 04:47:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-total-count-of-payments-and-total-amount-of/m-p/321285#M95983</guid>
      <dc:creator>gowthambr</dc:creator>
      <dc:date>2017-09-12T04:47:50Z</dc:date>
    </item>
  </channel>
</rss>

