windows server 2008, see a log of all ip address vistors

Posted on 2009-12-17
Last Modified: 2012-05-08
how to see all ip addresses visited and error code
Question by:rgb192
    LVL 3

    Accepted Solution

    I see the IIS tag, so assuming we are looking for web visitors, by default IIS logs data to \inetpub\logs\LogFiles.

    In the case of a default installation of IIS to the C: drive, it would be C:\Inetpub\logs\LogFiles\W3SVC1.  The HTTP code is the fourth number from the end of the line by default (sc-status).
    LVL 2

    Assisted Solution

    to get a overview you could use logparser from microsoft for your logfiles:

    and use a statement like this:
    logparser "select c-ip, sc-status from \\webserver\logfilepath\u_Ex091218.log"

    or grouped by ip&status with number of events:
    logparser "select c-ip,sc-status,count(*) from \\webserver\logfilepath\u_Ex091218.log group by c-ip,sc-status"

    you could even do this for all logfiles/days in one statement:
    logparser "select c-ip,sc-status,count(*) from \\webserver\logfilepath\*.log group by c-ip,sc-status"

    Author Closing Comment


    Featured Post

    Integrate social media with email signatures

    Is your company active on social media? Do you also use email signatures? Including social media icons in your email signature is a great way to get fans for free. Let all your email users know you’re on social media quickly and easily, in a single click.

    Join & Write a Comment

    Here's a useful script that will automatically delete ALL user profiles that are on a Windows Server 2008/R2 computer.   WARNING! This is a dangerous operation, designed for use by an administrator who needs to do a complete purge; for instance a…
    The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
    This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
    This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now