modern-monitor-81461
02/23/2022, 8:12 PMgroups_pattern
and users_pattern
since I only want to ingest specific users and groups. My AD contains thousands of entries and it creates a huge log of filtered items, which is just polluting the logs and not having any real value. I still want the logs since when things go sideways, I need to know what is going on, so redirecting the logs to /dev/null
is not an option. I could hack it with grep, but I'd like to know if there is way to disable some reporting? From me reading the code, I don't think there is, but I might have missed something. I think the reporting is done via introspection of a dataclass
, so the filtered
list is being printed if defined. Would there be a way (by modifying the existing code) to disable that list using a param passed to the AzureADSourceReport
constructor? And instead of recording all the filtered names, I could simply keep a count...
@dataclass
class AzureADSourceReport(SourceReport):
filtered: List[str] = field(default_factory=list)
def report_filtered(self, name: str) -> None:
self.filtered.append(name)
early-lamp-41924
02/24/2022, 4:05 AMearly-lamp-41924
02/24/2022, 4:08 AMmodern-monitor-81461
02/25/2022, 4:51 PMearly-lamp-41924
02/25/2022, 5:59 PM