Sign In
Anders Lundström 'TODO: Write something clever here
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
Accelerator
IIS
Logparser
Visual Basic 6.0
Windows 7
Windows XP Mode
Archive
Archives
October 2009
(26)
MSDN Blogs
>
Anders Lundström 'TODO: Write something clever here
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Anders Lundström 'TODO: Write something clever here
LOGPARSER #23: Get OS version from users hitting your site
Posted
over 3 years ago
by
Anderslu
0
Comments
This script check OS version on users hitting yours site. You’ll first need a way to extract unique users. If you use Windows Authentication you can use cs-username to get unique users. SELECT DISTINCT cs-username, ...
Anders Lundström 'TODO: Write something clever here
Windows 7: Testing Visual Basic 6.0 on Windows XP Mode
Posted
over 3 years ago
by
Anderslu
0
Comments
Installed Virtual PC for Windows 7 and Windows XP Mode (from here ) and though I give it a try using Integration Features with Visual Basic 6.0. After VPC and XP Mode was installed you’ll get two new menu items and one folder for integrated apps If you...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #22: Domains referring traffic to your site
Posted
over 3 years ago
by
Anderslu
0
Comments
SELECT EXTRACT_TOKEN (cs(Referer), 2, '/') AS Domain, COUNT(*) AS [Requests] INTO ReferringDomains.txt FROM logs\iis\ ex*. log GROUP BY Domain ORDER BY Requests DESC //Anders
Anders Lundström 'TODO: Write something clever here
LOGPARSER #21: Get bytes per extension
Posted
over 3 years ago
by
Anderslu
0
Comments
This script will give you the amount of bytes sent by each file type, for example pictures, ASPX pages etc. Great if you need to work with size/performance. SELECT EXTRACT_EXTENSION( cs-uri-stem ) AS Extension, ...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #20: Check Browser types split between your unique users
Posted
over 3 years ago
by
Anderslu
0
Comments
My previous post (#2) gave you browser types, hits and post (#19) gave you additional information like hits and percentage of hits between browsers. This script will give you more details as it looks at browser type for each unique user and give you the...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #19: Browser types with most hits/used
Posted
over 3 years ago
by
Anderslu
0
Comments
My #2 post gave you just browser types and hits, this script will give you you almost the same data but with percentage. Great for security checks etc. SELECT TO_INT(MUL(100.0,PROPCOUNT(*))) AS Percent, COUNT(*) AS Hits, cs...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #18: Top 10 pages with most hits
Posted
over 3 years ago
by
Anderslu
0
Comments
Will give you your top pages with most hits and some additional data. If your top 10 pages with most hits are the same as your top slow pages and/or largest you might want to do something about it. Select TOP 10 STRCAT(EXTRACT_PATH...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #17: Get your broken links
Posted
over 3 years ago
by
Anderslu
0
Comments
This script will give you site/page refers to your content though your content has moved. SELECT DISTINCT cs(Referer) as Referer, cs-uri-stem as Url INTO ReferBrokenLinks.txt FROM ...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #16: Remove those Compilation Debug=True from your prod server
Posted
over 3 years ago
by
Anderslu
1
Comments
One thing I notice on several of my customers is that it really doesn’t matter how waterproof process you have for deploying web applications, and web.config files in particular. You’ll always end up with at least one web app somewhere with Compilation...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #15: Check traffic from IP addresses
Posted
over 3 years ago
by
Anderslu
2
Comments
Customer of mine used a hardware load balancer to distribute traffic between their frontend web servers. This script that I put together gave them a chance to check whether traffic was distributed evenly between servers (K’s, Hits), if average wait time...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #14: TOP 20 pages with specific HTTP return code
Posted
over 3 years ago
by
Anderslu
0
Comments
Digging into each ASPX page returning a specific error code. We used this script at a customer to get the pages with most 401 errors and also checked pages with most hits. You’ probably find these to be almost the same list. If you have Windows Authentication...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #13: Page types with large bytes sent
Posted
over 3 years ago
by
Anderslu
0
Comments
This is a great script for checking what page types are causing bytes sent SELECT EXTRACT_EXTENSION(cs-uri-stem) AS PageType, SUM(sc-bytes) as TotalBytesSent, TO_INT(MUL(PROPSUM(sc-bytes), 100.0...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #12: Troubleshoot who is causing your 500 errors?
Posted
over 3 years ago
by
Anderslu
3
Comments
This script is very interesting tracking down specific users causing errors in your IIS environment. Could be a physical person or a tool configured to run under a domain account. One of my customers had a tool for checking site availability and it was...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #11: Megabytes sent per HTTP status code
Posted
over 3 years ago
by
Anderslu
0
Comments
This script checks amount of bytes sent for different pages and different sc-status. SELECT EXTRACT_EXTENSION(cs-uri-stem) AS PageType, SUM(sc-bytes) as TotalBytesSent, TO_INT(MUL(PROPSUM(sc-bytes...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #10: Check your substatus codes
Posted
over 3 years ago
by
Anderslu
0
Comments
If you find out that you have a large number of sc-status codes, e.g. 401, it could be an idea to check the sc-substatus codes. SELECT sc-status, sc-substatus, Count(*) AS Total ...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #9: Check your Win32 errors trends
Posted
over 3 years ago
by
Anderslu
0
Comments
This script will get you any win32 errors within you IIS logs. SELECT sc-win32-status as ErrorNumber, WIN32_ERROR_DESCRIPTION(sc-win32-status) as ErrorDesc, Count(*) AS Total ...
Anders Lundström 'TODO: Write something clever here
Logparser #8: Know your Error trends
Posted
over 3 years ago
by
Anderslu
0
Comments
This is a script I used at one customer to help the site developers know if any of the recent deployed updates had any affect on the site errors. SELECT TO_STRING(To_timestamp(date, time), 'MMdd') AS Day, SUM(c200) AS 200s, SUM(c206...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #7: Average time taken per user
Posted
over 3 years ago
by
Anderslu
0
Comments
Why is this interesting? One of the site developers at one of my customers approached me and said that “Hey, you know we have a couple of internal users who complain about our website performance. They say its always slow and takes forever for pages to...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #6: Check daily bandwidth
Posted
over 3 years ago
by
Anderslu
0
Comments
This script checks for daily bandwidth. Great for spotting trends. Select To_String(To_timestamp(date, time), 'MM-dd') As Day, Div(Sum(cs-bytes),1024) As Incoming(K), Div(Sum(sc...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #5: Top 10 slowest ASPX pages
Posted
over 3 years ago
by
Anderslu
1
Comments
Top 10 pages with the longest time-taken SELECT TOP 10 cs-uri-stem, max(time-taken) as MaxTime, avg(time-taken) as AvgTime INTO toptimetaken.txt FROM logs\iis\ex*.log WHERE extract_extension(to_lowercase(cs-uri-stem)) = 'aspx' GROUP BY cs-uri-stem ORDER...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #4: Top 10 largest ASPX pages
Posted
over 3 years ago
by
Anderslu
0
Comments
Script for checking your largest pages. Maybe you can reduce the size of these pages? Good to know before a performance test etc Select Top 10 StrCat(Extract_Path(TO_Lowercase(cs-uri-stem)),'/') AS RequestedPath, Extract_filename(To_Lowercase(cs-uri-stem...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #3: Unique users per day
Posted
over 3 years ago
by
Anderslu
0
Comments
This is a combination of two scripts you need to use to get the unique number of users each day. This is for Logparser 2.2 and earlier if i remember correct. Maybe later version will give you this in another way. I’ve seen a variety of samples out there...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #2: Know what browsers your users have
Posted
over 3 years ago
by
Anderslu
0
Comments
This script will give you all the browser types hitting your site, order by most used. SELECT distinct cs(User-Agent), count(*) as hits INTO useragentsalltypes.txt FROM logs\iis\ex*.log GROUP BY cs(user-agent) ORDER BY hits DESC //Anders
Anders Lundström 'TODO: Write something clever here
LOGPARSER #1: Top 10 images by size sent
Posted
over 3 years ago
by
Anderslu
0
Comments
This script is an easy way of checking if any of your pictures take up too much bandwidth on you site. Maybe you can resize them or change resolution? Select Top 10 StrCat(Extract_Path(TO_Lowercase(cs-uri-stem)),'/') AS ...
Anders Lundström 'TODO: Write something clever here
LOGPARSER #0: Get started with logparser
Posted
over 3 years ago
by
Anderslu
3
Comments
I’ve used Logparser on several occasions at my customers and it’s always fun to show just how much valuable info you can dig out by this free tool. Many developers have notused Logparser and don't know its capabilities and I also often discover that developers...
Page 1 of 2 (26 items)
1
2