Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Event filter for command line WEVTUTIL on Vista

Reply
Thread Tools Display Modes

Event filter for command line WEVTUTIL on Vista

 
 
Hong
Guest
Posts: n/a

 
      10-24-2008
hi

Any update on the functionality of the command WEVTUTIL in Vista on

1. using a filter range for eventID such as "8194,8211" "8194-8211"
where syntax such as >=8194 and <=8211 is not valid

2. using a negative filter range such as "-8194"

I am trying the above on Vista SP1 and they all failed. The file
WEVTUTIL.EXE is 6.0.6001.18000

Thanks for any help


Hong



 
Reply With Quote
 
 
 
 
Hong
Guest
Posts: n/a

 
      10-30-2008
Playing around revealed the inconsistencies between XML syntax and this
command line's

1. for simple filtering, WEVTUTIL does not need double-quoting for /q switch

wevtutil qe system /rd:true /f:text /q:*[System[(Level=2)]]

but the following would fail with range

wevtutil qe system /rd:true /f:text /q:*[System[(Level=1 or Level=2)]]

and this one works

wevtutil qe system /rd:true /f:text /q:"*[System[(Level=1 or Level=2)]]"

Note PowerShell always needs double-quoting for /q switch to work

2. For Boolean operations

XML showed: *[System[((EventID >=8194 and EventID <=8211))]]

but the command line needs: wevtutil.exe qe application /rd:true /f:text
/q:"*[System[((EventID > 8194 and EventID < 8211))]]"


Hong
"Hong" wrote:

> hi
>
> Any update on the functionality of the command WEVTUTIL in Vista on
>
> 1. using a filter range for eventID such as "8194,8211" "8194-8211"
> where syntax such as >=8194 and <=8211 is not valid
>
> 2. using a negative filter range such as "-8194"
>
> I am trying the above on Vista SP1 and they all failed. The file
> WEVTUTIL.EXE is 6.0.6001.18000
>
> Thanks for any help
>
>
> Hong
>
>
>

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line Ren (Rename) command broken? SixSigmaGuy Windows Vista General Discussion 5 05-20-2008 10:52 AM
How Do I Filter out Spam with no subject line? Kaiser Windows Vista Mail 2 04-24-2008 05:26 PM
Command Line CMD in Vista Ricardo Teixeira Windows Vista General Discussion 18 03-12-2007 03:00 AM
Vista Command Line rshol Windows Vista File Management 3 02-27-2007 08:32 PM
Output Event Log From Command Line senrabdet Windows Vista General Discussion 4 08-15-2006 02:23 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59