File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,12 @@ private string GetEventLogQueryString(List<string> ignored)
353
353
StringBuilder queryString = new ( "<QueryList>" ) ;
354
354
int id = 0 ;
355
355
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 )
357
362
{
358
363
if ( ! logNames . Contains ( group . Path ) ||
359
364
( Environment . OSVersion . Version . Major < group . MinimumWindowsMajorVersion ||
You can’t perform that action at this time.
0 commit comments