<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Vishal Sood : Advanced Logging</title><link>http://blogs.iis.net/vsood/archive/tags/Advanced+Logging/default.aspx</link><description>Tags: Advanced Logging</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Advanced Logging – How does Real-time logging work?</title><link>http://blogs.iis.net/vsood/archive/2009/03/20/advanced-logging-how-does-real-time-logging-work.aspx</link><pubDate>Fri, 20 Mar 2009 17:41:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3024684</guid><dc:creator>vsood</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/vsood/rsscomments.aspx?PostID=3024684</wfw:commentRss><comments>http://blogs.iis.net/vsood/archive/2009/03/20/advanced-logging-how-does-real-time-logging-work.aspx#comments</comments><description>&lt;FONT face=Calibri&gt;&lt;FONT size=3&gt;
&lt;P&gt;We &lt;A href="http://blogs.iis.net/vsood/archive/2009/03/18/iis-advanced-logging-is-now-live.aspx" mce_href="http://blogs.iis.net/vsood/archive/2009/03/18/iis-advanced-logging-is-now-live.aspx"&gt;announced and release a Beta&lt;/A&gt; for a sparkling new Logging module for IIS at MIX 09. This is a super rich logging module with a lot of functionality that our team will continue to blog about. Today, I wanted to share more technical details on how my favorite feature, real-time logging work in Advanced Logging.&lt;/P&gt;
&lt;P&gt;Before we go into details, you may want to take a short pause and read some overview material in my &lt;A href="http://blogs.iis.net/vsood/archive/2009/03/18/iis-advanced-logging-is-now-live.aspx" mce_href="http://blogs.iis.net/vsood/archive/2009/03/18/iis-advanced-logging-is-now-live.aspx"&gt;blog post&lt;/A&gt;, &lt;A href="http://www.iis.net/extensions/advancedLogging" mce_href="http://www.iis.net/extensions/advancedLogging"&gt;extension page&lt;/A&gt; for Advanced Logging or go over the &lt;A href="http://learn.iis.net/page.aspx/579/advanced-logging-for-iis-70---custom-logging" mce_href="http://learn.iis.net/page.aspx/579/advanced-logging-for-iis-70---custom-logging"&gt;custom logging walkthrough&lt;/A&gt;. Okay, I will now assume you are somewhat familiar with this module.&lt;/P&gt;
&lt;P&gt;Next, let us take a scenario - You have a SL or any HTTP client that collects analytic information that you want to be able to send to IIS web server and get that captured in a log file. Let’s add a little twist, while you want this you also want to be able to write custom code that can consume this log information in real time and enable you to do some real time reporting. The reason you want to do that is just to provide a report on real-time interactions by clients or simply monitor your network in real-time.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;Here is how IIS Advanced Logging helps&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;A href="http://blogs.iis.net/blogs/vsood/image_2A6CF09B.png" mce_href="http://blogs.iis.net/blogs/vsood/image_2A6CF09B.png"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=image border=0 alt=image src="http://blogs.iis.net/blogs/vsood/image_thumb_32546D30.png" width=637 height=442 mce_src="http://blogs.iis.net/blogs/vsood/image_thumb_32546D30.png"&gt;&lt;/A&gt; 
&lt;P&gt;Let us go over this architecture, step-by-step:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The clients on the left hand side (could be Silverlight application, native Silverlight runtime, could be ASP.net or anything really), sends a HTTP POST message with the log in the body. It is a simple XML format and you can find details in the walkthrough &lt;A href="http://learn.iis.net/page.aspx/581/advanced-logging-for-iis-70---real-time-logging" mce_href="http://learn.iis.net/page.aspx/581/advanced-logging-for-iis-70---real-time-logging"&gt;Real-time Logging&lt;/A&gt;. &lt;/LI&gt;
&lt;LI&gt;This message lands on an IIS server that has Advanced Logging (AL) installed. The client logging functionality in AL parses this message and raises an internal event. &lt;/LI&gt;
&lt;LI&gt;The core server-side logging functionality gets this event and then looks up the log configuration to compose a log entry and writes it to the file. (Note: you would need to have relevant configuration so that AL knows what fields to expect. You can find an example in the &lt;A href="http://learn.iis.net/page.aspx/582/advanced-logging-for-iis-70---client-logging" mce_href="http://learn.iis.net/page.aspx/582/advanced-logging-for-iis-70---client-logging"&gt;Client logging walkthrough&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;In addition, just before an entry is written to the log file, server-side logging raises another event using public APIs (IIS HTTP_TRACE_EVENT infrastructure) that can be consumed by a simple module written by YOU. Believe me, it is a simple module. You can find details and sample code in the walkthrough &lt;A href="http://learn.iis.net/page.aspx/581/advanced-logging-for-iis-70---real-time-logging" mce_href="http://learn.iis.net/page.aspx/581/advanced-logging-for-iis-70---real-time-logging"&gt;Real-time Logging&lt;/A&gt;. &lt;/LI&gt;
&lt;LI&gt;Now, your module can take this information push it to a service in the cloud, a DB and produce reports in real-time. &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;Let me know if you need more details. The best to learn more is to try it out :).&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=3024684" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/vsood/archive/tags/Media/default.aspx">Media</category><category domain="http://blogs.iis.net/vsood/archive/tags/Advanced+Logging/default.aspx">Advanced Logging</category><category domain="http://blogs.iis.net/vsood/archive/tags/Logging/default.aspx">Logging</category><category domain="http://blogs.iis.net/vsood/archive/tags/Real-time+Logging/default.aspx">Real-time Logging</category></item><item><title>IIS Advanced Logging Beta is now Live</title><link>http://blogs.iis.net/vsood/archive/2009/03/18/iis-advanced-logging-is-now-live.aspx</link><pubDate>Wed, 18 Mar 2009 19:29:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3017616</guid><dc:creator>vsood</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/vsood/rsscomments.aspx?PostID=3017616</wfw:commentRss><comments>http://blogs.iis.net/vsood/archive/2009/03/18/iis-advanced-logging-is-now-live.aspx#comments</comments><description>&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;FONT face=Calibri&gt;&lt;FONT size=3&gt;We proudly announce the Beta of IIS Advanced Logging.&amp;nbsp; With Advanced Logging you will be able to capture rich details in your logs and process them in real-time. These capabilities make this feature really compelling by&lt;SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: en-us; mso-fareast-language: en-us; mso-bidi-language: ar-sa"&gt; helping you monetize your content with better analytics and improve service with rich QOS information.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal mce_keep="true"&gt;&lt;FONT face=Calibri&gt;&lt;FONT size=3&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal mce_keep="true"&gt;&lt;FONT face=Calibri&gt;&lt;FONT size=3&gt;IIS Advanced Logging includes the following features:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT face=Calibri&gt;&lt;FONT size=3&gt;&lt;B&gt;Client-side logging&lt;/B&gt;. Advanced Logging builds capabilities into IIS to accept client-side consumption metrics. This provides relevant and important user engagement metrics that your customers will love. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Calibri&gt;&lt;FONT size=3&gt;&lt;B&gt;Centralized logging&lt;/B&gt;. Advanced Logging provides capabilities to set up a central log farm that collects and logs client-side metrics. This reduces the effort required to collect distributed logs, and consolidated log collection results in more efficient post-processing.&lt;/FONT&gt;&lt;/FONT&gt; I wanted to clarify that this is not for all logging. &lt;STRONG&gt;Note&lt;/STRONG&gt;: This is for client-side logging.&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Calibri&gt;&lt;FONT size=3&gt;&lt;B&gt;Multiple Logs per request&lt;/B&gt;. Advanced Logging provides capabilities to filter information relevant to specific purposes by creating multiple logs per request, with each log containing data relevant to the log's purpose. For example, Quality of Service (QoS) data in one log and Analytics data in another. All the post-processing required to distill the information using today's solutions is no longer needed. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Calibri&gt;&lt;FONT size=3&gt;&lt;B&gt;Real-time logging&lt;/B&gt;. Advanced Logging can extend the platform to support real-time analytics, helping you to provide real-time reports to customers or work with partners to do the same.&lt;/FONT&gt;&lt;/FONT&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Calibri&gt;&lt;FONT size=3&gt;&lt;B&gt;Rich/Flexible logging&lt;/B&gt;. Advanced Logging does not assume what is important to you. Instead, it provides enough control to specify what fields are important to you, add additional fields with ease, and provide policies around log rollover and request filtering. These capabilities do not exist today. Now you can log any of the HTTP request/response headers, IIS server variables, and client-side fields with simple configuration through the management console.&lt;/FONT&gt;&lt;/FONT&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;B&gt;Application Logging&lt;/B&gt;. Making use of the IIS configuration system, Advanced Logging provides capabilities to generate separate logs for sites, applications and so on.&lt;/FONT&gt;&lt;/FONT&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;STRONG&gt;Module Specific Log fields&lt;/STRONG&gt;. If you are developing modules for IIS, you can specify custom fields that can be collected in logs.&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp; &lt;/LI&gt;&lt;/UL&gt;&lt;FONT face=Calibri&gt;&lt;FONT size=3&gt;
&lt;P mce_keep="true"&gt;You can learn more about the feature by reading the walkthroughs:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://learn.iis.net/page.aspx/579/advanced-logging-for-iis-70---custom-logging/" target=_blank mce_href=" http://learn.iis.net/page.aspx/579/advanced-logging-for-iis-70---custom-logging/"&gt;Getting started with Advanced Logging&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;A title="Real Time Logging" href="http://learn.iis.net/page.aspx/581/advanced-logging-for-iis-70---real-time-logging" mce_href="http://learn.iis.net/page.aspx/581/advanced-logging-for-iis-70---real-time-logging"&gt;Real-Time Logging&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://learn.iis.net/page.aspx/582/advanced-logging-for-iis-70---client-logging/" target=_blank mce_href="http://learn.iis.net/page.aspx/582/advanced-logging-for-iis-70---client-logging/"&gt;Client Logging&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;Learn more about the feature on - &lt;A href="http://www.iis.net/extensions/AdvancedLogging"&gt;http://www.iis.net/extensions/AdvancedLogging&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;We eagerly await your feedback and comments on the &lt;A href="http://forums.iis.net/1160.aspx" target=_blank mce_href="http://forums.iis.net/1160.aspx"&gt;Advanced Logging Discussion Forum&lt;/A&gt;.&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=3017616" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/vsood/archive/tags/Media/default.aspx">Media</category><category domain="http://blogs.iis.net/vsood/archive/tags/IIS+News+Item/default.aspx">IIS News Item</category><category domain="http://blogs.iis.net/vsood/archive/tags/Advanced+Logging/default.aspx">Advanced Logging</category></item></channel></rss>