PlainCopy
LOGPARSER-I:IISW3C file:c:\inetpub\slowpage.sql-o:datagrid-q:off
Log Parser Lizard Query method:Open the Log Parser Lizard visual interface, for example, copy the SQL command into the Query window and click Generate [Generate].can also be displayed in a variety of graphical way, more convenient
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Logparser - O: CSV" Select C - IP, Count (C - IP) From Group By C - IP" > C: \ cccip.csv
C-IP
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 th
example: I found the log I needed:This file is a whole bunch of characters, how can I analyze it now?A tool called log Parser can specifically parse the IIS log, which we can use to view the information in the log.For example, I can run the following command line (note: In
-up window. If it is found, it indicates that your website has a dead link. Everyone knows that the dead link has an impact on website indexing. I don't need to talk about how to deal with it.
3. Check for program errors on the website through IIS logs:
Enter "500" to search. If the page is displayed, it indicates that the website program encountered an error during running and needs to be modified.
4. Use I
files consisting of strings enclosed by double quotation marks
"Fileversion", "productversion", and "companyName" fields are added to the FS input format.
All IIS input formats support the use of "*" and "?" When specifying the site name Wildcard, for example, "select * from
You can use a URL as the input path for all text-based input formats, such as "select * From http://www.adatum.com/table.csv"
The TPL output format Section supports the environm
Com through. NET FrameworkInterOP(COM Interactive Operation) features, can be easily applied in. netProgramUsing Log parser,. NET Framework comInterOPIs implemented through runtime callable wrappers (RCW) for com operations, RCW is a class in. net.
Compiling environment: vs2005 C # First, add reference: logparser. DLL to your new project, and then it appears in the reference bar of your solution: msuti
generate a file name.
Click Select field. The following dialog box is displayed:
Note:[Number of sent fields] and [number of received bytes] are not selected by default.We recommend that you select them.For other fields, you can decide whether to select them as needed. How to analyze IIS logs
If you set IIS log parameters according to the method describe
corresponding log file in the directory (by default, the directory is differentiated according to the application pool ordinal).
For example: I found the log I needed:
This file is a lot of dense characters, now how do I analyze it.
A tool called log Parser can specifically parse the
When troubleshooting, you will find that the IIS log time is different from the local time on the server.
The Time Zone of IIS log is GMT. Note that the China time zone is GMT + 8.
Therefore, to view IIS logs in China, you need to add + 8 to
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 of file names, similar to W3SVC file name.IIS log files are stored inside
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.