<?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 how to find the number of unique visitors to a website using logs. I am using source type iis in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-find-the-number-of-unique-visitors-to-a-website-using/m-p/205799#M40621</link>
    <description>&lt;P&gt;sourcetype="iis". I could see the following fields&lt;/P&gt;

&lt;P&gt;Interesting Fields&lt;BR /&gt;
acs_method 1&lt;BR /&gt;
acs_uri_stem 1&lt;BR /&gt;
acs_User_Agent 1&lt;BR /&gt;
adate 1&lt;/P&gt;

&lt;H1&gt;date_hour 21&lt;/H1&gt;

&lt;H1&gt;date_mday 1&lt;/H1&gt;

&lt;H1&gt;date_minute 60&lt;/H1&gt;

&lt;P&gt;adate_month 1&lt;/P&gt;

&lt;H1&gt;date_second 12&lt;/H1&gt;

&lt;P&gt;adate_wday 1&lt;/P&gt;

&lt;H1&gt;date_year 1&lt;/H1&gt;

&lt;H1&gt;date_zone 1&lt;/H1&gt;

&lt;P&gt;aindex 1&lt;/P&gt;

&lt;H1&gt;linecount 1&lt;/H1&gt;

&lt;P&gt;apunct 1&lt;BR /&gt;
as_ip 1&lt;/P&gt;

&lt;H1&gt;s_port 1&lt;/H1&gt;

&lt;H1&gt;sc_status 1&lt;/H1&gt;

&lt;H1&gt;sc_substatus 1&lt;/H1&gt;

&lt;H1&gt;sc_win32_status 1&lt;/H1&gt;

&lt;P&gt;asplunk_server 1&lt;BR /&gt;
atime 100+&lt;/P&gt;

&lt;H1&gt;time_taken 100+&lt;/H1&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:28:25 GMT</pubDate>
    <dc:creator>gowthamkb</dc:creator>
    <dc:date>2020-09-29T10:28:25Z</dc:date>
    <item>
      <title>how to find the number of unique visitors to a website using logs. I am using source type iis</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-find-the-number-of-unique-visitors-to-a-website-using/m-p/205799#M40621</link>
      <description>&lt;P&gt;sourcetype="iis". I could see the following fields&lt;/P&gt;

&lt;P&gt;Interesting Fields&lt;BR /&gt;
acs_method 1&lt;BR /&gt;
acs_uri_stem 1&lt;BR /&gt;
acs_User_Agent 1&lt;BR /&gt;
adate 1&lt;/P&gt;

&lt;H1&gt;date_hour 21&lt;/H1&gt;

&lt;H1&gt;date_mday 1&lt;/H1&gt;

&lt;H1&gt;date_minute 60&lt;/H1&gt;

&lt;P&gt;adate_month 1&lt;/P&gt;

&lt;H1&gt;date_second 12&lt;/H1&gt;

&lt;P&gt;adate_wday 1&lt;/P&gt;

&lt;H1&gt;date_year 1&lt;/H1&gt;

&lt;H1&gt;date_zone 1&lt;/H1&gt;

&lt;P&gt;aindex 1&lt;/P&gt;

&lt;H1&gt;linecount 1&lt;/H1&gt;

&lt;P&gt;apunct 1&lt;BR /&gt;
as_ip 1&lt;/P&gt;

&lt;H1&gt;s_port 1&lt;/H1&gt;

&lt;H1&gt;sc_status 1&lt;/H1&gt;

&lt;H1&gt;sc_substatus 1&lt;/H1&gt;

&lt;H1&gt;sc_win32_status 1&lt;/H1&gt;

&lt;P&gt;asplunk_server 1&lt;BR /&gt;
atime 100+&lt;/P&gt;

&lt;H1&gt;time_taken 100+&lt;/H1&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:28:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-find-the-number-of-unique-visitors-to-a-website-using/m-p/205799#M40621</guid>
      <dc:creator>gowthamkb</dc:creator>
      <dc:date>2020-09-29T10:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to find the number of unique visitors to a website using logs. I am using source type iis</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-find-the-number-of-unique-visitors-to-a-website-using/m-p/205800#M40622</link>
      <description>&lt;P&gt;Assuming you used &lt;CODE&gt;INDEXED_EXTRACTIONS=w3c&lt;/CODE&gt; you should have a field called &lt;CODE&gt;c_ip&lt;/CODE&gt;. This is  the IP address of the client that made the request. Now, this also could be a NAT'd IP, with userid in your log file (in querystring), its is not 100% reliable. Given what you have, try this search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=iis | stats dc(c_ip) as client_ip 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;*&lt;STRONG&gt;&lt;EM&gt;OR&lt;/EM&gt;&lt;/STRONG&gt;*&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=iis earliest=@d | timechart span=1h dc(c_ip) as client_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's some reading on how to configure IIS logs: &lt;A href="http://blogs.splunk.com/2013/10/18/iis-logs-and-splunk-6/"&gt;http://blogs.splunk.com/2013/10/18/iis-logs-and-splunk-6/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 17:19:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-find-the-number-of-unique-visitors-to-a-website-using/m-p/205800#M40622</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-04T17:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to find the number of unique visitors to a website using logs. I am using source type iis</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-find-the-number-of-unique-visitors-to-a-website-using/m-p/205801#M40623</link>
      <description>&lt;P&gt;Thanks for the above reply. I checked my props.conf and I could see INDEXED_EXTRACTIONS=w3c . &lt;BR /&gt;
 After executing the following search command I got the count.&lt;BR /&gt;
sourcetype="iis"  | dedup c_ip | stats dc(c_ip) AS Total_Unique_Client_IP&lt;/P&gt;

&lt;P&gt;How could I get the result set listing each Unique IP (c_ip) and the corresponding list of page visits (cs_uri_stem) made by that IP (c_ip) on the website.&lt;/P&gt;

&lt;P&gt;Sorry I started using splunk 2 days ago and still trying to learn search commands. Any help will be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:28:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-find-the-number-of-unique-visitors-to-a-website-using/m-p/205801#M40623</guid>
      <dc:creator>gowthamkb</dc:creator>
      <dc:date>2020-09-29T10:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to find the number of unique visitors to a website using logs. I am using source type iis</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-find-the-number-of-unique-visitors-to-a-website-using/m-p/205802#M40624</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="iis" | stats count by s_ip cs_uri_stem
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Aug 2016 20:27:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-find-the-number-of-unique-visitors-to-a-website-using/m-p/205802#M40624</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-04T20:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to find the number of unique visitors to a website using logs. I am using source type iis</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-find-the-number-of-unique-visitors-to-a-website-using/m-p/205803#M40625</link>
      <description>&lt;P&gt;did u mean c_ip ? I have 7k+ lines in my log and all of them have the same s_ip.&lt;/P&gt;

&lt;P&gt;can I assume that the  count returned by the following search command is the total no of unique client visits on the website ? &lt;/P&gt;

&lt;P&gt;sourcetype="iis" | dedup c_ip | stats dc(c_ip) AS Total_Unique_Client_IP&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:28:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-find-the-number-of-unique-visitors-to-a-website-using/m-p/205803#M40625</guid>
      <dc:creator>gowthamkb</dc:creator>
      <dc:date>2020-09-29T10:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to find the number of unique visitors to a website using logs. I am using source type iis</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-find-the-number-of-unique-visitors-to-a-website-using/m-p/205804#M40626</link>
      <description>&lt;P&gt;Yes. I meant c_ip. The search command you show, will give you distinct count of c_ip. You don't need the dedup command. &lt;CODE&gt;dc&lt;/CODE&gt; = &lt;CODE&gt;distinct_count&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;For just a list of sites visited by c_ip, you can do&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="iis" | stats count by s_ip cs_uri_stem | fields - count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;*&lt;STRONG&gt;&lt;EM&gt;OR&lt;/EM&gt;&lt;/STRONG&gt;*&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="iis" | stats values(cs_uri_stem) as uri_stem by s_ip 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-find-the-number-of-unique-visitors-to-a-website-using/m-p/205804#M40626</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2020-09-29T10:28:55Z</dc:date>
    </item>
  </channel>
</rss>

