diff --git a/pkg/collect/collector.go b/pkg/collect/collector.go index 67cceb11..a6497b1c 100644 --- a/pkg/collect/collector.go +++ b/pkg/collect/collector.go @@ -83,7 +83,7 @@ func (c *Collector) RunCollectorSync() ([]byte, error) { return Logs(c.GetContext(), c.Collect.Logs) } if c.Collect.Run != nil { - isExcluded, err := isExcluded(c.Collect.ClusterInfo.Exclude) + isExcluded, err := isExcluded(c.Collect.Run.Exclude) if err != nil { return nil, err }