【问题标题】:How can one query the Cluster .etl logs thru Powershell?如何通过 Powershell 查询 Cluster .etl 日志?
【发布时间】:2014-11-27 09:03:08
【问题描述】:

Server 2008 以后的集群日志存储在 3 个不同的 .etl 文件中,位于“%WinDir%\System32\winevt\logs\”

  1. Microsoft-Windows-FailoverClustering Diagnostic.etl.001
  2. Microsoft-Windows-FailoverClustering Diagnostic.etl.002
  3. Microsoft-Windows-FailoverClustering Diagnostic.etl.003

但是,我无法通过 Get-Winevent 查询这些文件

Get-WinEvent : The C:\Windows\System32\winevt\Logs\Microsoft-Windows-FailoverClustering%4Diagnostic.etl.001 file does not appear to be a valid log file. Specify only .evtx, .etl, or .evt files as values of the Path parameter.

我错过了什么吗?还有其他方法可以通过 Powershell 查询这些 .etl 文件吗?

【问题讨论】:

    标签: powershell-3.0 event-log windows-clustering


    【解决方案1】:

    据我所知,您无法直接读取这些文件,您必须将内容转储到 cluster.log 文件中,才能在 2008 系统上使用 Get-ClusterLog 或 cluster log /gen 获得人类可读的输出:

    Understanding the Cluster Debug Log in 2008

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-02-25
      • 2017-05-04
      • 2020-09-25
      • 1970-01-01
      • 1970-01-01
      • 2014-02-06
      • 1970-01-01
      相关资源
      最近更新 更多