Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Event log

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,60049
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Event log
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Event log - 5/10/2008 2:08:47 AM   
  Papar

 

Posts: 3
Score: 0
Joined: 5/10/2008
Status: offline
Hi,
I have a VBScript that will check the Windows XP Event logs and display all error logs that are listed there. I would like the VBScript to show every error log only once. For example, in case Event log contains same error log several times I would like to see this log only once, but I also need to know how many time is this log appeared in Event log.
The script I have is the following:



      


What can I add to this script to make this happen? Thanks for any help!
 
 
Post #: 1
 
 RE: Event log - 5/10/2008 3:44:53 AM   
  dm_4ever


Posts: 2254
Score: 32
Joined: 6/29/2006
From: Orange County, California
Status: offline
A very very similar question was asked before....have you tried searching?

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Papar)
 
 
Post #: 2
 
 RE: Event log - 5/10/2008 7:06:24 AM   
  Papar

 

Posts: 3
Score: 0
Joined: 5/10/2008
Status: offline
Thanks dm, I did find useful info @ http://www.visualbasicscript.com/m_51625/mpage_1/key_event%2clog/tm.htm#51631 . Unfortunately,  I don't know how to pull the resulting data from "my" script into an array.
I am completely new to VB scripting, so if my newbie question sounds stupid, I apologize.

Any help that you can provide is very much appreciated.


(in reply to dm_4ever)
 
 
Post #: 3
 
 RE: Event log - 5/10/2008 7:13:15 AM   
  dm_4ever


Posts: 2254
Score: 32
Joined: 6/29/2006
From: Orange County, California
Status: offline
You found the post I was thinking of. 

What would you consider a similar error? Same event code or category or message or event type?....or a combination of a few of these?  You really don't need to add this data into an array to use the example I posted before.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Papar)
 
 
Post #: 4
 
 RE: Event log - 5/10/2008 9:49:57 AM   
  Papar

 

Posts: 3
Score: 0
Joined: 5/10/2008
Status: offline
Thanks for your answer! I would consider a combination of event code and source.

(in reply to dm_4ever)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Event log Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts