<?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: Detect IP Address Change Alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Detect-IP-Address-Change-Alert/m-p/468603#M8320</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;index=yours sourcetype=yours
| rex "(?&amp;lt;email&amp;gt;[\w.\-]+@[\w.\-]+)"
| rex "(?&amp;lt;msg&amp;gt;sessions started with IP|authentication request with IP)"
| rex "(?&amp;lt;ip&amp;gt;\d+\.\d+\.\d+\.\d+)"
| stats min(_time) as firstTime max(_time) as lastTime dc(msg) as auth dc(ip) as flag values(ip) as ip by email
| where flag &amp;gt; 1
| convert ctime(firstTime) ctime(lastTime)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Three &lt;CODE&gt;rex&lt;/CODE&gt; extract the fields from event. you should fix it .&lt;BR /&gt;
Email with different ip is malicious, so these display by &lt;CODE&gt;where flag &amp;gt;1&lt;/CODE&gt; &lt;/P&gt;</description>
    <pubDate>Sun, 05 Apr 2020 16:47:14 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-04-05T16:47:14Z</dc:date>
    <item>
      <title>Detect IP Address Change Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Detect-IP-Address-Change-Alert/m-p/468601#M8318</link>
      <description>&lt;P&gt;Basically what I need to do is compare a user's authentication request to their most recent session start request and alert when they are different.&lt;/P&gt;
&lt;P&gt;Example -&lt;BR /&gt;&lt;A href="mailto:example@email.com" target="_blank"&gt;example@email.com&lt;/A&gt; sessions started with IP 12.145.123.&lt;BR /&gt;&lt;A href="mailto:example@email.com" target="_blank"&gt;example@email.com&lt;/A&gt; authentication request IP 12.145.123&lt;BR /&gt;&lt;STRONG&gt;&lt;A href="mailto:example@email.com" target="_blank"&gt;example@email.com&lt;/A&gt; authentication request with IP 58.145.12.125&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I would want to see that authentication request as an alert.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 22:03:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Detect-IP-Address-Change-Alert/m-p/468601#M8318</guid>
      <dc:creator>byronhowell</dc:creator>
      <dc:date>2020-06-09T22:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Detect IP Address Change Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Detect-IP-Address-Change-Alert/m-p/468602#M8319</link>
      <description>&lt;P&gt;Perhaps this will help.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo "authentication request with IP" NOT [ search index=foo "session started with IP" | head 1 | fields ip_address | format ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 05 Apr 2020 13:26:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Detect-IP-Address-Change-Alert/m-p/468602#M8319</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-05T13:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Detect IP Address Change Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Detect-IP-Address-Change-Alert/m-p/468603#M8320</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=yours sourcetype=yours
| rex "(?&amp;lt;email&amp;gt;[\w.\-]+@[\w.\-]+)"
| rex "(?&amp;lt;msg&amp;gt;sessions started with IP|authentication request with IP)"
| rex "(?&amp;lt;ip&amp;gt;\d+\.\d+\.\d+\.\d+)"
| stats min(_time) as firstTime max(_time) as lastTime dc(msg) as auth dc(ip) as flag values(ip) as ip by email
| where flag &amp;gt; 1
| convert ctime(firstTime) ctime(lastTime)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Three &lt;CODE&gt;rex&lt;/CODE&gt; extract the fields from event. you should fix it .&lt;BR /&gt;
Email with different ip is malicious, so these display by &lt;CODE&gt;where flag &amp;gt;1&lt;/CODE&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 16:47:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Detect-IP-Address-Change-Alert/m-p/468603#M8320</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-05T16:47:14Z</dc:date>
    </item>
  </channel>
</rss>

