Log Parser Script Collection

IIS No Comments »

Berikut adalah beberapa script log parser yang akan sering digunakan, untuk hasil reporting.

  • Checking Jenis Browser yang akses web server

 

 

Select top 50 to_int(mul(100.0,PropCount(*))) as Percent, count(*) as TotalHits, cs(User-Agent) as Browserfrom [LogFileName]group by Browserorder by Totalhits desc

  • Melihat total bandwidth harian yang ada di web server


Select To_String(To_timestamp(date, time), ‘MM-dd’) As Day, Div(Sum(cs-bytes),1024) As Incoming(K), Div(Sum(sc-bytes),1024) As Outgoing(K)From [LogFileName]Into BandwidthByDay.gifGroup By Day

  • Total Hits per Hours


SELECT QUANTIZE(TO_LOCALTIME(TO_TIMESTAMP(date,time)),3600) As Hour, cs-uri-stem As Url, COUNT(*) As HitsFROM [LogFileName]WHERE cs-uri-stem LIKE ‘%index.htm%’GROUP BY Url, HourORDER By Url

  • Request by URI

SELECT top 80

QUANTIZE(TO_TIMESTAMP(date, time), 3600) as Hour,
TO_LOWERCASE(STRCAT(’/',EXTRACT_TOKEN(cs-uri-stem,1,’/'))) as URI,
COUNT(*) AS RequestsPerHour,
SUM(sc-bytes) AS TotBytesSent,
AVG(sc-bytes) AS AvgBytesSent,
Max(sc-bytes) AS MaxBytesSent,
ADD(1,DIV(Avg(time-taken),1000)) AS AvgTime,
ADD(1,DIV(MAX(time-taken),1000)) AS MaxTime

FROM [LogFileName]
GROUP BY Hour, URI
Having RequestsPerHour > 10
ORDER BY RequestsPerHour ASC

  • Top 10 Images by size


Select Top 10 StrCat(Extract_Path(TO_Lowercase(cs-uri-stem)),’/') AS RequestedPath, Extract_filename(To_Lowercase(cs-uri-stem)) As RequestedFile, Count(*) AS Hits, Max(time-taken) As MaxTime, Avg(time-taken) As AvgTime, Max(sc-bytes) As BytesSentFrom [LogFileName]Where (Extract_Extension(To_Lowercase(cs-uri-stem)) IN (’gif’;'jpg’;'png’)) AND (sc-status = 200)Group By To_Lowercase(cs-uri-stem)Order By BytesSent, Hits, MaxTime DESC

  • Top 20 clients yang akses ke webserver


Select Top 20 c-ip AS Client, Count(*) AS HitsINTO Chart.gifFROM [LogFileName]GROUP BY c-ipORDER BY Hits Desc

  • Waktu yang dibutuhkan untuk load virtual directory

SELECT CASE EXTRACT_TOKEN(cs-uri-stem, 2, ‘/’) WHEN NULL THEN ‘/’ ELSE EXTRACT_PREFIX(cs-uri-stem, 1, ‘/’) END As VDir, QUANTIZE(time-taken, 100) As TimeTaken, COUNT(*) As NumHits
FROM [LogFileName]
GROUP BY TimeTaken, VDirORDER BY TimeTaken, VDir DESC
SELECT CASE EXTRACT_TOKEN(cs-uri-stem, 2, ‘/’) WHEN NULL THEN ‘/’ ELSE EXTRACT_PREFIX(cs-uri-stem, 1, ‘/’) END As VDir, QUANTIZE(time-taken, 100) As TimeTaken, COUNT(*) As NumHits
FROM ex05111606.log
GROUP BY TimeTaken, VDirORDER BY TimeTaken, VDir DESC

Powered by ScribeFire.

Log Parser Tool

IIS No Comments »

Hm mungkin agak telat untuk membahas apa itu Log Parser namun gak ada salahnya untuk di buat my sticky note :)
Versi terbaru log parser adalah versi Log Parser 2.2 bisa di download di www.logparser.com
Kelebihan dari Log Parser adalah kemampuannya untuk membaca log file pada windows yaitu Event Log, Registry,file system, IIS LOG dan Active Directory lalu menampilkan kembali dalam berbagai macam format seperti file XML, file CSV, HTML dan Chart.

proses untuk membaca dari log file atau lebih dikenal sebagai scripting menggunakan syntax SQL seperti contoh ini:

LogParser “SELECT TimeGenerated, SourceName, EventID, Message INTO Events.xml FROM System”

dan hasilnya akan di tampilkan dalam format XML.

download disini

Powered by ScribeFire.

Download Gratis ASP.NET AJAX, Silverlight dan LINQ e-book

Linq, Programming, Silverlight, Ajax, ASP.NET No Comments »

Microsoft memberikan download gratis untuk beberapa e-book mereka seperti.

Opening Position at Freeport Indonesia

Life No Comments »

FYI. Expiry date January 25th 2008. Barangkali dapat bermanfaat.

Superintendent Operation Applications
Analyze, organize, evaluate, and deliver appropriate, reliable, and
efficient IT system applications in assigned area in order to maintain a
focused business expertise and benefit to business component.
Specific requirements
. Graduate Degree (S1) in Engineering (Industrial or Computer Engineering,
Business Administration)
. Having experience in Business Systems industry for at least 5 years
. Having knowledge and experience in applications project management for at
least 3 years.
. Strong knowledge of Windows Server Operating Systems, UNIX Server
Operating Systems Management methodologies, Systems Hardware management.
. Certification: Microsoft Certified Systems Engineer (MCSE).
. Strong communication, project management, and leadership skills.
. Proficiency in spoken and written English (technical and conversational).
. Advanced computer literacy.
. Work Location: Papua

Read the rest of this entry »

Monitoring Categories on WSS 2.0

Sharepoint No Comments »

All implemented monitoring rules and counters were prioritized and classified into the following five categories:

Fundamental System, Application, and Server Monitoring Monitoring rules that are critical and must be present on the system or server level.

Windows SharePoint Services-Specific Service Monitoring Events that track features that are specific to Windows SharePoint Services and its components, including Web Parts.

Windows SharePoint Services HTML Transformation and HTML Transformation Server Services Events that monitor the HTML transformation server, an optional component for a Windows SharePoint Services server farm.

Windows SharePoint Services URL Monitoring
These URL tests help identify whether Windows SharePoint Services sites
and administrative features work properly on each front-end Web server.

Additional System Monitor Counter Monitoring
These System Monitor counters can help system administrators understand
the system load and service usage information. The collected data can
be further referred to pursue continuous capacity planning.

Technorati Tags:

Powered by ScribeFire.

IIS Status Code

IIS No Comments »

IIS 5.0 and 6.0 error status code.

1xx - Informational

These status codes indicate a provisional response. The
client should be prepared to receive one or more 1xx responses before receiving
a regular response.

100 - Continue.
101 - Switching protocols.

2xx - Success

This class of status codes indicates that the server
successfully accepted the client request.

200 - OK. The client request has succeeded.
201 - Created.
202 - Accepted.
203 - Non-authoritative information.
204 - No content.
205 - Reset content.
206 - Partial content.
207 - Multi-Status (WebDay).

Read the rest of this entry »

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login
Close
E-mail It