Add a configurable TimeSpan parameter for Get-ClusterLog to limit log collection duration

未关闭 适合新手
#29 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
冷清
技术栈
powershell
领域
tooling

调研方向

打开 SQLLogScoutCoreModule.psm1,检查 Get-ClusterInformation() 函数,从其 Get-ClusterLog 调用开始。使用 -TimeSpan 21600 使收集时长可配置,默认值为 15 天,然后验证 Get-ClusterLog 默认不再检索完整的日志历史记录。

由索引模型根据 Issue 内容生成。

描述

In the file SQLLogScoutCoreModule.psm1, in the GetClusterInformation() function, there is a call to Get-ClusterLog.
By default, it retrieves all existing logs.
This can represent several GB or even tens of GB of logs and takes a long time when stopping LogScout.
Would it be possible to turn this into a parameter, with a default limit of, for example, 15 days, using -TimeSpan 21600?
We had to make this modification before running LogScout in production, as our logs are simply too large not to filter them.

主要语言
PowerShell
星标
117
派生
33
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/SQL_LogScout 的其他 Issue

查看 microsoft/SQL_LogScout 的全部 Issue

相似的 Issue

更多 DevTools Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。