<?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: Count New IPs Accessed Over Time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Count-New-IPs-Accessed-Over-Time/m-p/555829#M157817</link>
    <description>&lt;LI-CODE lang="markup"&gt;sourcetype=report_900 earliest=1 latest=now
| bin _time span=1d
| stats values(IPv4Address) as IPv4Address by _time
| streamstats dc(IPv4Address) as countip
| streamstats window=1 current=f values(countip) as previouscount
| fillnull value=0 previouscount
| eval change=countip-previouscount&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 15 Jun 2021 16:41:13 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-06-15T16:41:13Z</dc:date>
    <item>
      <title>Count New IPs Accessed Over Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-New-IPs-Accessed-Over-Time/m-p/555816#M157810</link>
      <description>&lt;P&gt;We have a daily report that generates an event each time an IP is accessed each day.&amp;nbsp; In order to determine the number of new IPs accessed today that have never been accessed before we use the following query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=report_900 earliest=-1d@d latest=now NOT 
    [search sourcetype=report_900 earliest=1 latest=-1d@d 
    |  stats count by IPv4Address 
    | table IPv4Address] 
| stats count by IPv4Address
| table IPv4Address
| stats count&lt;/LI-CODE&gt;&lt;P&gt;What we would like to have is a query that produces a timechart of the the number of new IPs accessed each day.&lt;/P&gt;&lt;P&gt;If the data shows the following IP access for the day&amp;nbsp; (each letter represents a different IP)&lt;/P&gt;&lt;P&gt;2021/01/01 IPs:&amp;nbsp; A,B,C,A,A&lt;/P&gt;&lt;P&gt;2021/01/02 IPs: B,D,E,B,E&lt;/P&gt;&lt;P&gt;2021/01/03 IPs: A,D,E,A,A&lt;/P&gt;&lt;P&gt;2021/01/04 IPs: B,C,F,C&lt;/P&gt;&lt;P&gt;We would get the following results:&lt;/P&gt;&lt;P&gt;2021/01/01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;2021/01/02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;2021/01/03&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;2021/01/04&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;Any suggestions on how this can be accomplished?&lt;/P&gt;&lt;P&gt;Also, any suggestions on improving the performance of our original query?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 15:37:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-New-IPs-Accessed-Over-Time/m-p/555816#M157810</guid>
      <dc:creator>ky129q</dc:creator>
      <dc:date>2021-06-15T15:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count New IPs Accessed Over Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-New-IPs-Accessed-Over-Time/m-p/555829#M157817</link>
      <description>&lt;LI-CODE lang="markup"&gt;sourcetype=report_900 earliest=1 latest=now
| bin _time span=1d
| stats values(IPv4Address) as IPv4Address by _time
| streamstats dc(IPv4Address) as countip
| streamstats window=1 current=f values(countip) as previouscount
| fillnull value=0 previouscount
| eval change=countip-previouscount&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Jun 2021 16:41:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-New-IPs-Accessed-Over-Time/m-p/555829#M157817</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-15T16:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Count New IPs Accessed Over Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-New-IPs-Accessed-Over-Time/m-p/556507#M158048</link>
      <description>&lt;P&gt;Exactly what I wanted.&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 10:58:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-New-IPs-Accessed-Over-Time/m-p/556507#M158048</guid>
      <dc:creator>ky129q</dc:creator>
      <dc:date>2021-06-21T10:58:29Z</dc:date>
    </item>
  </channel>
</rss>

