Skip to content

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

Description

@relsna

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions