使用c#将.blg解压缩为CSV [英] Extract .blg to ,CSV using c#

查看:202
本文介绍了使用c#将.blg解压缩为CSV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的要求中,我需要从超过50台服务器收集日志,然后根据所选的计数器绘制图形。

在后台,所有必需的计数器都已配置为二进制格式能够将所有.blg拉到一个服务器。



现在需要将.blg解压缩到csv并绘制图形。

现在我使用c#与windows应用程序执行此操作。



你能告诉我

- 如何从中提取日志。 blg使用c#



或任何更好的主意.......

in my requirement i need to collect logs from more than 50 servers and then plot the graphs based on the counters selected.
In the background, all the required counters have been configured in binary format able to pull all the .blg to one server.

now that need to extract the .blg to csv and plot the graphs.
right now i using c# with windows application to do this.

can you please tell me
- how to extract logs from .Blg using c#

or any better idea....

Raghuram Raichooti

Raghuram Raichooti

推荐答案

Windows操作系统附带一个名为relog.exe的实用程序。您可以使用" relog logfile.blg
-f csv -o logfile.csv
"并生成所需的csv文件。

Windows OS comes with a utility called relog.exe. You can use "relog logfile.blg -f csv -o logfile.csv" and generate the required csv file.

据我所知,自定义应用程序没有其他方法从perfmon日志(.blg)文件中提取信息。

According to me there is no other way of a custom application extracting information from a perfmon log (.blg) file.


这篇关于使用c#将.blg解压缩为CSV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆