File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -353,7 +353,12 @@ private string GetEventLogQueryString(List<string> ignored)
353353 StringBuilder queryString = new ( "<QueryList>" ) ;
354354 int id = 0 ;
355355 HashSet < string > logNames = new ( System . Diagnostics . Eventing . Reader . EventLogSession . GlobalSession . GetLogNames ( ) ) ;
356- foreach ( EventViewerExpressionGroup group in service . Config . WindowsEventViewerExpressionsToBlock . Groups )
356+ IEnumerable < EventViewerExpressionGroup > groups = service . Config . WindowsEventViewerExpressionsToBlock . Groups ;
357+ if ( service . Config . WindowsEventViewerExpressionsToNotify ? . Groups is not null )
358+ {
359+ groups = groups . Concat ( service . Config . WindowsEventViewerExpressionsToNotify . Groups ) ;
360+ }
361+ foreach ( EventViewerExpressionGroup group in groups )
357362 {
358363 if ( ! logNames . Contains ( group . Path ) ||
359364 ( Environment . OSVersion . Version . Major < group . MinimumWindowsMajorVersion ||
You can’t perform that action at this time.
0 commit comments