Add a configurable TimeSpan parameter for Get-ClusterLog to limit log collection duration
还没有人认领这个 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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/SQL_LogScout 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 38/100
microsoft/SQL_LogScout#9 · 1 条评论 · 1 个 reaction ·
查看 microsoft/SQL_LogScout 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
use-agent-os/agent-os#3314 ·
-
agentic-workflows
难度 1/5 1 小时以内 新手友好度 85/100
githubnext/rig#534 ·
-
documentation low-priority templates
难度 2/5 1-3 小时 新手友好度 85/100
jesseray718/openroot#87 ·
-
factory-active factory-automatic task-bug-reproduction-cannot-reproduce task-identify-harness-labels-done task-identify-issue-type-done
难度 2/5 1-3 小时 新手友好度 84/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 74/100
ReedClanton/NixOS#41 ·