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 database, and set the relevant permissions.
2 Execute Logtemp.sql Query file, establish the table. Its contents are as follows:
CREATE TABLE Inetlog (
ClientHost varchar (255),
Username varchar (255),
LogTime datetime,
Service varchar (255),
Machine varchar (255),
ServerIP varchar (50),
Processingtime int,
BYTESRECVD int,
BytesSent int,
ServiceStatus int,
Win32Status int,
Operation varchar (255),
Target varchar (255),
Parameters varchar (255))
3 According to the IIS5 ODBC log defaults, enter the ODBC data Source Manager to establish a system DSN named "Httplog" to connect to the IIS database and use the Inetadmin account when it is established.
4 Change the Active log format (V) to "ODBC Logging".
Then you can query yourself according to your needs.
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.