<?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: question about complicated condition search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/question-about-complicated-condition-search/m-p/475136#M192543</link>
    <description>&lt;P&gt;Hi @lllidan,&lt;/P&gt;

&lt;P&gt;When you're aggregating don't aggregate on the IP but do so on the username. That way it will be a lot easier to see which user is using multiple IP addresses.&lt;/P&gt;

&lt;P&gt;Your search should then be : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|stats values(IP) by username
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Instead of :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ...|stats values(username) by IP
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps !&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
Arthas&lt;/P&gt;</description>
    <pubDate>Sun, 12 Apr 2020 06:23:01 GMT</pubDate>
    <dc:creator>DavidHourani</dc:creator>
    <dc:date>2020-04-12T06:23:01Z</dc:date>
    <item>
      <title>question about complicated condition search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/question-about-complicated-condition-search/m-p/475134#M192541</link>
      <description>&lt;P&gt;I am facing a difficult problem about search, the condition is: I want to filter the user who change his/her logon source IP address in ten minutes.&lt;/P&gt;

&lt;P&gt;the problem is, there are many users login in the time period, how can I classify the same username, I can't define the username in advance, it's random.&lt;/P&gt;

&lt;P&gt;could you give a sample search? thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 02:24:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/question-about-complicated-condition-search/m-p/475134#M192541</guid>
      <dc:creator>lllidan</dc:creator>
      <dc:date>2020-04-12T02:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: question about complicated condition search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/question-about-complicated-condition-search/m-p/475135#M192542</link>
      <description>&lt;P&gt;could you give a sample logs?&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 02:41:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/question-about-complicated-condition-search/m-p/475135#M192542</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-12T02:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: question about complicated condition search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/question-about-complicated-condition-search/m-p/475136#M192543</link>
      <description>&lt;P&gt;Hi @lllidan,&lt;/P&gt;

&lt;P&gt;When you're aggregating don't aggregate on the IP but do so on the username. That way it will be a lot easier to see which user is using multiple IP addresses.&lt;/P&gt;

&lt;P&gt;Your search should then be : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|stats values(IP) by username
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Instead of :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ...|stats values(username) by IP
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps !&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
Arthas&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 06:23:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/question-about-complicated-condition-search/m-p/475136#M192543</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2020-04-12T06:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: question about complicated condition search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/question-about-complicated-condition-search/m-p/475137#M192544</link>
      <description>&lt;P&gt;yes, it works. thanks.&lt;/P&gt;

&lt;P&gt;Furthermore, I also want to compare the 5 minutes' IP address  to 1 hour's IP address from same user, do you have some idea? &lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 12:10:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/question-about-complicated-condition-search/m-p/475137#M192544</guid>
      <dc:creator>lllidan</dc:creator>
      <dc:date>2020-04-12T12:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: question about complicated condition search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/question-about-complicated-condition-search/m-p/475138#M192545</link>
      <description>&lt;P&gt;Great ! &lt;/P&gt;

&lt;P&gt;Yeah, sure have a look here : &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/210749/how-to-compare-current-data-with-data-from-24-hour.html"&gt;https://answers.splunk.com/answers/210749/how-to-compare-current-data-with-data-from-24-hour.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can use the same logic as follows to seperate data from last hour and last 15 min: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;....
 | eval WhichHour = case(_time&amp;gt;=relative_time(now(),"-1h@h"),"last hour",
                        _time&amp;lt;=relative_time(now(),"-15min@min"),"Last 15 min",
                        1==1,null())
|stats values(IP) by username,WhichHour 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can then combine the info to see if the IPs changed over time !&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
Uther The light bringer&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 13:13:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/question-about-complicated-condition-search/m-p/475138#M192545</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2020-04-12T13:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: question about complicated condition search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/question-about-complicated-condition-search/m-p/475139#M192546</link>
      <description>&lt;P&gt;thanks, David. I am really appreciate your help.&lt;/P&gt;

&lt;P&gt;It's very close to the requirement, I got a good classification with your search, I also want to modify the different IP between "last hour" and "Last 15 min" that from the same user, list the username, different IP and "last hour" IP as columns in a chart. &lt;/P&gt;

&lt;P&gt;thanks so much &lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 09:43:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/question-about-complicated-condition-search/m-p/475139#M192546</guid>
      <dc:creator>lllidan</dc:creator>
      <dc:date>2020-04-14T09:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: question about complicated condition search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/question-about-complicated-condition-search/m-p/475140#M192547</link>
      <description>&lt;P&gt;Hi @lllidan &lt;/P&gt;

&lt;P&gt;You're welcome ! Please up-vote comments and answers that you find helpful !&lt;/P&gt;

&lt;P&gt;Could you please share the query you have so far along with the expected results ? Maybe an example table of what you'd like to achieve ? &lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 18:12:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/question-about-complicated-condition-search/m-p/475140#M192547</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2020-04-14T18:12:48Z</dc:date>
    </item>
  </channel>
</rss>

