Results 1 to 4 of 4
  1. #1
    2 Star Lounger
    Join Date
    Aug 2014
    Posts
    123
    Thanks
    19
    Thanked 0 Times in 0 Posts

    How to make specific extractions from event logs?

    I want to write some batch scripts which parse the event log in various ways. I have been led down false paths to use get- in Power shell and special commands in batch which DO NOT work. I am becoming very frustrated with windows 8.1.
    Is there a command which will search the event log with error numbers, specific parameters, or key words/phrases, regular expressions that I can use to extract lines from the event log in windows 8.1??

  2. #2
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,188
    Thanks
    47
    Thanked 983 Times in 913 Posts
    It's not Windows fault that you have not been able to extract the data you require.
    Have you tried PSLogList from MS?

    cheers, Paul

  3. #3
    2 Star Lounger
    Join Date
    Aug 2014
    Posts
    123
    Thanks
    19
    Thanked 0 Times in 0 Posts
    Thanks Paul T. U R correct and most of my frustration comes from not using my USB keyboard but 8.1 has some gotchas which I am trying to train myself around. I have now accumulated sufficient batch examples to allow me to do what is needed.

  4. #4
    Super Moderator Rick Corbett's Avatar
    Join Date
    Dec 2009
    Location
    South Glos., UK
    Posts
    2,143
    Thanks
    101
    Thanked 579 Times in 464 Posts
    Perhaps use PSToolsGui (an AutoHotkey script) as the front-end to PSLogList as it lets you test the options and filters before building the commandline for you.
    pstools2.jpg
    Click to enlarge

    Or use the commandline options of Nir Sofer's MyEventViewer to do the same as the 'Advanced Options' in the GUI.
    myeventviewer.png
    Click to enlarge

    Hope this helps...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •