<?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: How alert if the same account number is seen with transactions from different State codes and the total transaction amount exceeds $10,000 within one hour? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173701#M49826</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| stats sum(amount) as total values(state_codes) as states by account_number
| where mvcount(states) &amp;gt; 1 AND total &amp;gt; 10000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Save this search as an alert. You can run this as a scheduled alert, once per hour - or as a real-time alert over the past hour. Set the trigger condition to be "number of results &amp;gt; 1".&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jun 2015 07:17:30 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2015-06-26T07:17:30Z</dc:date>
    <item>
      <title>How alert if the same account number is seen with transactions from different State codes and the total transaction amount exceeds $10,000 within one hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173699#M49824</link>
      <description>&lt;P&gt;I wanted to know how to write a search that will trigger an alert when it meets the following conditions: During a period of 1 hour, if the same account number is seen in the transaction log with transactions originating from different State codes and the total transaction amount exceeds $10000, then Splunk has to trigger an alert. Can I please get sample search that will do the following?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2015 02:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173699#M49824</guid>
      <dc:creator>yogeshv23</dc:creator>
      <dc:date>2015-06-24T02:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How alert if the same account number is seen with transactions from different State codes and the total transaction amount exceeds $10,000 within one hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173700#M49825</link>
      <description>&lt;P&gt;Do you have field extractions done?  Show us a sample event.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2015 04:45:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173700#M49825</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-24T04:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: How alert if the same account number is seen with transactions from different State codes and the total transaction amount exceeds $10,000 within one hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173701#M49826</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| stats sum(amount) as total values(state_codes) as states by account_number
| where mvcount(states) &amp;gt; 1 AND total &amp;gt; 10000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Save this search as an alert. You can run this as a scheduled alert, once per hour - or as a real-time alert over the past hour. Set the trigger condition to be "number of results &amp;gt; 1".&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2015 07:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173701#M49826</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-06-26T07:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: How alert if the same account number is seen with transactions from different State codes and the total transaction amount exceeds $10,000 within one hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173702#M49827</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Below are a couple of lines of the events. I will be doing the field extractions as well.&lt;BR /&gt;
Kindly help.&lt;/P&gt;

&lt;P&gt;2015-06-14 12:24:45,944 [10] DEBUG transaction.service.Transaction - [Transaction Id : 5e7fe57b-5aff-4575-a189-a6344aac2838, Status Code : Success, Latitude : 37.7845763, Longitude : -122.403748, ZIPCode: 94103, State : CA, Account Details : [ AccountNumber : 1111111310902197, AccountName : John Doe 310902197 , Ammount : 2000, Store : Macys ]]&lt;BR /&gt;
2015-06-14 12:26:47,949 [10] DEBUG transaction.service.Transaction - [Transaction Id : 5e7fe57b-5aff-4575-a189-a6344aac2838, Status Code : Success, Latitude : 40.7033127, Longitude : -73.979681, ZIPCode: 10003, State : NY, Account Details : [ AccountNumber : 1111111310902197, AccountName : John Doe 310902197 , Ammount : 3000, Store : Nordstrom ]]&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 06:21:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173702#M49827</guid>
      <dc:creator>yogeshv23</dc:creator>
      <dc:date>2015-07-08T06:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: How alert if the same account number is seen with transactions from different State codes and the total transaction amount exceeds $10,000 within one hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173703#M49828</link>
      <description>&lt;P&gt;Thanks for your search query, I have provided a couple of lines of transaction logs above, please take a look and let me know if you have any suggestion or updates&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 06:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173703#M49828</guid>
      <dc:creator>yogeshv23</dc:creator>
      <dc:date>2015-07-08T06:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: How alert if the same account number is seen with transactions from different State codes and the total transaction amount exceeds $10,000 within one hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173704#M49829</link>
      <description>&lt;P&gt;This should do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex ",\s*State\s*:\s*(?&amp;lt;State&amp;gt;[^,]+).*?AccountNumber\s*:\s*(?&amp;lt;AccountNumber&amp;gt;\d+).*?Ammount\s*:\s*(?&amp;lt;Amount&amp;gt;\d+)" | bucket _time span=1h | stats sum(Amount) as total values(State) as States dc(State) AS numStates BY _time AccountNumber | where numStates &amp;gt; 1 AND Amount &amp;gt; 10000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jul 2015 15:48:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173704#M49829</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-08T15:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: How alert if the same account number is seen with transactions from different State codes and the total transaction amount exceeds $10,000 within one hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173705#M49830</link>
      <description>&lt;P&gt;Thank you! I will give it a try.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2015 02:00:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173705#M49830</guid>
      <dc:creator>yogeshv23</dc:creator>
      <dc:date>2015-07-09T02:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: How alert if the same account number is seen with transactions from different State codes and the total transaction amount exceeds $10,000 within one hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173706#M49831</link>
      <description>&lt;P&gt;Thank you so much. It worked!!! &lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2015 03:53:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173706#M49831</guid>
      <dc:creator>yogeshv23</dc:creator>
      <dc:date>2015-07-09T03:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: How alert if the same account number is seen with transactions from different State codes and the total transaction amount exceeds $10,000 within one hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173707#M49832</link>
      <description>&lt;P&gt;Thank you so much, this helped me narrow down my search query!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2015 03:57:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173707#M49832</guid>
      <dc:creator>yogeshv23</dc:creator>
      <dc:date>2015-07-09T03:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: How alert if the same account number is seen with transactions from different State codes and the total transaction amount exceeds $10,000 within one hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173708#M49833</link>
      <description>&lt;P&gt;@woodcock,&lt;BR /&gt;
I have set up a realtime alert using the query provided but am running into a few issues with alerting. I would like to get an alert when the condition is met for a particular account during a rolling window of time.&lt;BR /&gt;
Example: if accountnumber 12345 has transactions logged within an hour in 3 different states which totals to greater than $10000 then it needs to just alert once (ideally) and then wait for the condition to be met again before triggering another alert. &lt;BR /&gt;
How should I set up such an alert? Please guide me.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2015 23:59:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173708#M49833</guid>
      <dc:creator>yogeshv23</dc:creator>
      <dc:date>2015-07-12T23:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: How alert if the same account number is seen with transactions from different State codes and the total transaction amount exceeds $10,000 within one hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173709#M49834</link>
      <description>&lt;P&gt;Do not use Real-Time; use a reasonable window scheduled at a reasonable period (something like every 10 minutes for the last hour).  There are many reasons why and we can discuss them but trust me, this is a bad idea and will not do what you are hoping it will.  When you schedule the alert, there are built-in throttling configurations that should meet your need; have you looked at (tried) them?  If none will work, then you can output your current conditions with &lt;CODE&gt;outputlookup&lt;/CODE&gt; and pull them back in for every search with &lt;CODE&gt;inputlookup&lt;/CODE&gt; and use &lt;CODE&gt;dynamic-lookup&lt;/CODE&gt; to write your own throttling conditions within your search.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2015 01:34:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173709#M49834</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-13T01:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: How alert if the same account number is seen with transactions from different State codes and the total transaction amount exceeds $10,000 within one hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173710#M49835</link>
      <description>&lt;P&gt;Thank you. When i try to schedule the alert, the only options I get are for scheduling every hr, day or week.&lt;BR /&gt;
I was not able to figure out a way to schedule an alert like you have mentioned.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2015 14:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173710#M49835</guid>
      <dc:creator>yogeshv23</dc:creator>
      <dc:date>2015-07-13T14:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: How alert if the same account number is seen with transactions from different State codes and the total transaction amount exceeds $10,000 within one hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173711#M49836</link>
      <description>&lt;P&gt;Choose the &lt;CODE&gt;cron&lt;/CODE&gt; syntax and use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*/10 * * * *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jul 2015 15:50:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173711#M49836</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-13T15:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: How alert if the same account number is seen with transactions from different State codes and the total transaction amount exceeds $10,000 within one hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173712#M49837</link>
      <description>&lt;P&gt;Thank you! Worked fine and saved my time from trying to make the real time alert to work.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 03:00:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-alert-if-the-same-account-number-is-seen-with-transactions/m-p/173712#M49837</guid>
      <dc:creator>yogeshv23</dc:creator>
      <dc:date>2015-07-20T03:00:47Z</dc:date>
    </item>
  </channel>
</rss>

