You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($null-ne$IncludeEventId-Or$null-ne$ExcludeEventId-Or$null-ne$ExcludeUsername-Or$null-ne$ExcludeEntryType-Or$null-ne$ExcludeMessage-Or$null-ne$IncludeMessage-Or$null-ne$IncludeSource-Or$null-ne$ExcludeSource) {
68
68
$filteredEvents=@();
69
69
foreach ($eventin$events) {
70
70
# Filter out excluded event IDs
71
71
if ($ExcludeEventId.Count-ne0-And$ExcludeEventId-contains$event.EventId) {
72
72
continue;
73
73
}
74
-
74
+
75
75
# Filter out excluded events by username
76
76
if ($ExcludeUsername.Count-ne0-And$ExcludeUsername-contains$event.UserName) {
77
77
continue;
78
78
}
79
-
79
+
80
80
# Filter out excluded events by entry type (Error, Warning, ...)
81
81
if ($ExcludeEntryType.Count-ne0-And$ExcludeEntryType-contains$event.EntryType) {
82
82
continue;
@@ -86,7 +86,7 @@ function Get-IcingaEventLog()
86
86
if ($ExcludeSource.Count-ne0-And$ExcludeSource-contains$event.Source) {
0 commit comments