There are a lot of tools for analyzing IIS on the Internet, but I didn't meet my requirements, and generally I can only query the number of spiders crawling in the IIS log. Here is a relatively simple and very practical way, through some simple Excel formula to make a series of data, such as time interval, crawling page, return status code, URL parameters, spider
Because of the monitoring needs of the server often generate a lot of log files, such as IIS log files (C:\inetpub\logs\LogFiles), a slightly traffic web site, its log can reach hundreds of megabytes per day, these files accumulate a serious occupation of server disk space. It is necessary to remove them periodically.
How to disable httperr
Enter Regedit to enter Registry Editor[HKEY_LOCAL_MACHINE/system/CurrentControlSet/services/HTTP/parameters]
Right-click on the right and choose create DWORD Value enableerrorlogging to restart the server.
"Enableerrorlogging" = DWORD: 00000000.
After the restart, 2003 will not be written into the httperr log file. You can see that the server CPU usage is significantly reduced!
C
Dim iiscount,iisobject,logfiledir,fso,logfileperiods,inputtime,site,sites,i,j,sitename (999), WshShell
' On Error Resume Next
Set WshShell = WScript.CreateObject ("Wscript.Shell")
Set fso = CreateObject ("Scripting.") FileSystemObject ")
Set Iiscount=getobject ("Iis://localhost/w3svc")
Sites=0
For each site in Iiscount
if (site.class= "IIsWebServer") Then
SiteName (sites) =site.name
Sites=sites+1
End If
Next
MsgBox " Sites " Sites in
Use Note:
To modify the absolute path of the IIS log in the iis.php file
For example: $folder = "c:/windows/system32/logfiles/site log directory/"; Be sure to bring a slash (/) in the back.
(with virtual space do not understand the absolute path of your site to see?) Upload a probe!
Direct Check view: http://site domai
IIS logs keep growing during running. If the IIS website is frequently called or improperly called, many logs are generated. I encountered a 20 GB system disk during system O M. Due to program problems developed by the partner, the Web service was called every several hundred microseconds, which caused the log to expand to 8 ~ 9G. For servers with insufficient s
I found several log analysis software on the Internet and thought it was the simplest and practical, at least for me.
However, this software has a disadvantage: When the log size is large, the detailed analysis may overflow and text cutting tools are required.Software Download: iis log analysis software big text cutti
File Location: C:\WINDOWS\system32\LogFiles\HTTPERR\httperr1.log
I. Description of the problem
The previous normal ASP Web site is not open today, the site is deployed under IIS. Displays "Connections_refused" by looking for IIS log fi
code, 200 for success, 403 for no permissions, 404 for the page not found, specify below.Sc-substatus: Protocol sub State, logging HTTP child status code.Sc-win32-status:win32 status, log the Windows status code, and refer to the description of the log "Sc-win32-status--win32 status details in IIS", which was sent in the Chxwei blog.Sc-bytes: The number of bytes
1. Open the IIS log file
2. View the location of the log file
3 File address found
The default will be in C:\inetpub\logs\LogFiles (Win7), which will have a series
1, install log Parser 2.2https://www.microsoft.com/en-us/download/details.aspx?displaylang=enid=24659https://gallery.technet.microsoft.com/Log-Parser-Studio-cd458765 Download and then unzip2. Run Log Parser StudioRun LPS.exe in the previously unzipped Lpsv2.d1 folder.3. Specify the IIS
By default, IIS does not record worker-process recycle events. However, you can enable the specified worker process to recycle event records. Unlike other IIS activities that are recorded at your designated location and file, worker process recycle events are written to the system event log.
Logging worker Process Rec
IIS log format By default is TXT, check up very inconvenient, I really lazy look, find some information on the internet to look at,
It is more convenient to query the log in SQL Server.
1 Establish an IIS database, add the Inetadmin user, specify the user as the owner of the IIS
IIS Option Explicit
Dim Sourcefile,ipaddress,objargs
Const destfile= "Tempfile"
Const ForWriting = 2
Dim Text
Dim Fso,objnet,serviceobj
Dim Txtstream, Txtstreamout
Set Objargs = wscript.arguments
If Objargs.count = 2 Then
Sourcefile=objargs (0)
Ipaddress=objargs (1)
Else
WScript.Echo "Parameter Error" + vbCrLf
WScript. Echo "USAGE:KillLog.vbs logfilename yourip."
WScript. Quit 1
End If
Set fso = CreateObject ("Scripting.FileSystemObject")
If FSO
Description: Place the log file in the root directory of the Web site and rename it to Log.log. Demo: Http://www.jzxue.com/tools/iislog/http://www.jzxue.com/tools/iislog/demo.gif
/******************************************************** Function: IIS log analysis, analysis of the total number of IP access, search engin
version, for example, 2.0.5021.00.Platform-related information, such as Windows Embedded CE v5.0.1400 (CEPC) WinCE5x86 debug Dev i386 IJITv2.The file provides the following information:Force status (compatibility mode ).The trust level specified for the module when the module is loaded.Failed to parse the method.Failed to parse the type.An error occurred while searching for or loading the assembly or module.Assembly loaded successfully.The metadata v
types that correspond to this level are displayed, not all types that inherit from the previous level.If the MIME type is modified at a lower level and the same MIME type is applied at the global level, the MIME type at the global level overrides the MIME type that was modified at the lower level.If a client request references a file extension whose extension is not defined in the MIME type, IIS returns a
The Zend error log contains: Unable to view file mapping, attempting to access an invalid address. Search on the Internet under the solution is
The workaround is as follows:
Compare PHP Two versions of php.ini files.
; Extension=php_yaz.dllExtension=php_zip.dll Check if the two is in a new version. Also confirm Extension=php_zip.dllRemove save restart IIS and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.