现在的位置: 首页 > 综合 > 正文

Export TMG proxy logs to w3c while maintaining native reporting

2013年05月06日 ⁄ 综合 ⁄ 共 1332字 ⁄ 字号 评论关闭

When I implemented the new TMG 2010 infrastructure I was only moderately impressed by the native reporting. Following TMG SP 1 this changed a bit. There were some "Significant enhancements to the reporting. For more details on this check out:

http://blogs.technet.com/b/isablog/archive/2010/08/15/reporting-improvements-in-forefront-tmg-sp1.aspx

Grand, so for this first time TMG actually generated a report worth keeping. But now here is the catch. In ISA server you could export to w3c files and it would not make much difference. In TMG if you switch to w3c logging you loose the ability to generate reports. You also loose the ability in the logging filter to specify anything other than Live. This is actually a problem.

So in short you want to use a 3rd party log analyser you will loose out on the native functionality.

Unless you can come up with a cunning plan.

Here is what I ended up doing.

  • I log directly to the native SQL2008 Express.
  • I then have a scheduled task that executes a script that runs a modified SQL to W3C Conversion script
  • I can then pick up my exported files for processing.

The conversion script is MSDEtotext.vbs

It is one of the tools available form here :
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=82027864-4abd-4896-8255-55f6ea775489

Two things to look out for:

If importing into webspy there is and additional vbcr that breaks the import
The bytes sent and received are reversed. Webspy has made this an option in their loader now.

I have fixed these in my scripts but just be aware of them.

Drop me a mail if you want them.

抱歉!评论已关闭.