event monitor and reboots

ranjitcoolranjitcool Member Posts: 80 ■■□□□□□□□□
Hey Guys,

i need some advice and if possible some help.

In out organization when we reboot systems after patching them everymonth, we have to manually login in and check the event monitor for anay failed events and all.

Is there any way I can write a script or something and have some pre determined services to be monitored or somehting ?

Or is there any centralized (preferably open source) event monitor software ? I am trying to do it with splunk but anythign open source?

pelase let me know
thanks
rj
Cleared Network+, MCTS.
Want to clear - CCSA, CCNA, VCP for now.

Spending time @ www.itgrunts.com - Tech Juice, Not from Concentrate!

Comments

  • undomielundomiel Member Posts: 2,818
    Here's a powershell script that will do some event log searching for you. Mind you, requires powershell to be installed. :) This will pull any errors out from the first 100 entries in the log, though you can modify that number of course.
    $Log="System"
    $args | foreach-object {
    write-output "Client name: $_"
    $EventLog = new-Object System.Diagnostics.EventLog($Log, $_)
    $EventLog.entries | select -first 100 | where {$_.entryType -match "Error"}
    }
    

    Toss it in a file and execute the file name with arguments i.e.
    querylog.ps1 client1 client2 client3 ...
    Jumping on the IT blogging band wagon -- http://www.jefferyland.com/
  • ranjitcoolranjitcool Member Posts: 80 ■■□□□□□□□□
    Thanks undomiel for the script, so I can execute this from my system to a target server, what about the login credentials?

    rj
    Cleared Network+, MCTS.
    Want to clear - CCSA, CCNA, VCP for now.

    Spending time @ www.itgrunts.com - Tech Juice, Not from Concentrate!
  • undomielundomiel Member Posts: 2,818
    Accidentally left out the first line of the script, my mistake. You would need an account that has admin privileges to the machine.
    Jumping on the IT blogging band wagon -- http://www.jefferyland.com/
  • ranjitcoolranjitcool Member Posts: 80 ■■□□□□□□□□
    Hey Undomiel, i did not get by what u meant first line of your script?

    please let me know
    thanks
    rj
    Cleared Network+, MCTS.
    Want to clear - CCSA, CCNA, VCP for now.

    Spending time @ www.itgrunts.com - Tech Juice, Not from Concentrate!
Sign In or Register to comment.