<?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 Setting up custom condition for alert in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Setting-up-custom-condition-for-alert/m-p/74019#M18596</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have the following search:&lt;/P&gt;

&lt;P&gt;host="x.x.x.x" OR host="x.x.x.x" Message_Type="Authen failed" PCI | eval Source_IP=Caller_ID | table _time, User_Name, Group_Name, Source_IP | sort User_Name &lt;/P&gt;

&lt;P&gt;But when I go to set the alert condition I set the custom condition to:&lt;/P&gt;

&lt;P&gt;search User_Name  &amp;gt;= 5&lt;/P&gt;

&lt;P&gt;But it emails me an alert even though there is not more than 5 user names.&lt;/P&gt;

&lt;P&gt;How can I set it so it only does it for more than 5 user names?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:01:19 GMT</pubDate>
    <dc:creator>robK123</dc:creator>
    <dc:date>2020-09-28T13:01:19Z</dc:date>
    <item>
      <title>Setting up custom condition for alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-up-custom-condition-for-alert/m-p/74019#M18596</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have the following search:&lt;/P&gt;

&lt;P&gt;host="x.x.x.x" OR host="x.x.x.x" Message_Type="Authen failed" PCI | eval Source_IP=Caller_ID | table _time, User_Name, Group_Name, Source_IP | sort User_Name &lt;/P&gt;

&lt;P&gt;But when I go to set the alert condition I set the custom condition to:&lt;/P&gt;

&lt;P&gt;search User_Name  &amp;gt;= 5&lt;/P&gt;

&lt;P&gt;But it emails me an alert even though there is not more than 5 user names.&lt;/P&gt;

&lt;P&gt;How can I set it so it only does it for more than 5 user names?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:01:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-up-custom-condition-for-alert/m-p/74019#M18596</guid>
      <dc:creator>robK123</dc:creator>
      <dc:date>2020-09-28T13:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up custom condition for alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-up-custom-condition-for-alert/m-p/74020#M18597</link>
      <description>&lt;P&gt;is User_Name numeric value? if not use count&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2012 14:32:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-up-custom-condition-for-alert/m-p/74020#M18597</guid>
      <dc:creator>jangid</dc:creator>
      <dc:date>2012-12-28T14:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up custom condition for alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-up-custom-condition-for-alert/m-p/74021#M18598</link>
      <description>&lt;P&gt;No its a not numeric value, do you mean like this:&lt;/P&gt;

&lt;P&gt;search count User_Name  &amp;gt;= 5&lt;/P&gt;

&lt;P&gt;I tried the above and that did not work either.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2012 14:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-up-custom-condition-for-alert/m-p/74021#M18598</guid>
      <dc:creator>robK123</dc:creator>
      <dc:date>2012-12-28T14:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up custom condition for alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-up-custom-condition-for-alert/m-p/74022#M18599</link>
      <description>&lt;P&gt;That search will show multiple lines per User_Name for each failed login.&lt;/P&gt;

&lt;P&gt;What do you want to happen ?&lt;/P&gt;

&lt;P&gt;Have an alert for each User_Name that has more than 5 failed logins ?&lt;BR /&gt;
Have an alert if there are more than 5 unique User_Names listed ?&lt;BR /&gt;
Have an alert if there are more than 5 failed logins&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:01:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-up-custom-condition-for-alert/m-p/74022#M18599</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2020-09-28T13:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up custom condition for alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-up-custom-condition-for-alert/m-p/74023#M18600</link>
      <description>&lt;P&gt;I want to Have an alert for each User_Name that has more than 5 failed logins&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2012 16:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-up-custom-condition-for-alert/m-p/74023#M18600</guid>
      <dc:creator>robK123</dc:creator>
      <dc:date>2012-12-28T16:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up custom condition for alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-up-custom-condition-for-alert/m-p/74024#M18601</link>
      <description>&lt;P&gt;To resume, you are searching over plenty of records, from different users, and you want an alert if they are more than 5 different users ?&lt;/P&gt;

&lt;P&gt;what do you want to send on the email ? &lt;/P&gt;

&lt;P&gt;for just the alert what about something more simple that just alert , with the alert condition directly in the search&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host="x.x.x.x" OR host="x.x.x.x" Message_Type="Authen failed" PCI | eval Source_IP=Caller_ID | stats dc(User_Name) As number_of_users values(User_Name) | where number_of_users=&amp;gt;5&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;if you still want to send the results, then you have to be smarter.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host="x.x.x.x" OR host="x.x.x.x" Message_Type="Authen failed" PCI | eval Source_IP=Caller_ID | transaction User_Name | table  _time, User_Name, Group_Name, Source_IP&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;or use a large stat&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host="x.x.x.x" OR host="x.x.x.x" Message_Type="Authen failed" PCI | eval Source_IP=Caller_ID &lt;BR /&gt;
| stats count  values(_time), values(Group_Name) values(Source_IP) by User_Name&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and the alert condition on number of results &amp;gt; 5&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2012 18:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-up-custom-condition-for-alert/m-p/74024#M18601</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-12-28T18:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up custom condition for alert</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-up-custom-condition-for-alert/m-p/74025#M18602</link>
      <description>&lt;P&gt;Im pretty new to splunk but it appears like your condition is saying a variation of greater than or equal to. &lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 19:51:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-up-custom-condition-for-alert/m-p/74025#M18602</guid>
      <dc:creator>ryhluc01</dc:creator>
      <dc:date>2018-12-19T19:51:48Z</dc:date>
    </item>
  </channel>
</rss>

