views:

234

answers:

2

Hi,

I've googled and googled, but found nothing. (Where) can I find a detailed, low-level spec for the Perfmon binary .blg file format? Or even better, has anyone written a low level, open source library (preferably in C, but any language would do) for parsing .blg files?

Thanks,

Andreas

A: 

There's a tool called relog that can convert these files to csv or other formats.

http://blog.bennett-scharf.com/2008/12/17/converting-an-existing-perfmon-blg-file-to-csv/

http://blogs.msdn.com/b/adcman/archive/2006/05/15/598149.aspx

http://blogs.msdn.com/b/granth/archive/2008/09/23/relogging-perfmon-binary-log-files-to-sql.aspx

csauve
Yes I know about relog. But the reason I want a low level spec is that I want to avoid using relog. My task is to apply data mining algorithms to huge sets of log data. Instead of having to wait hours for relog to convert blg to csv, then parse the csv file, I want to take the blg file and parse it as a binary stream. To me, the relog step adds absolutely no value.
Andreas Jansson
A: 

Andraes, did you ever find the specs? I've been looking myself and have not found anything yet.

Scott Myers
No, nothing. It's a proprietary format, so I don't think Microsoft has much to gain from releasing the specs. If you have the time you could always try to re-engineer a few files. I didn't have the time, and had to go for relogging in the end after all.
Andreas Jansson