Lansweeper logo
Home Download Features Demo Buy now Help Support forum
 
    Most requested support articles:
  Lansweeper troubleshooting guide.
  The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
  WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  How to configure the windows firewall using group policies.
  Support:  
 support@lansweeper.com  
Skype: Lansweeper  
  Mo-Fri 9h-17h CET  
Welcome Guest Search | Active Topics | Log In | Register

Tag as favorite
Query event view
ehj
#1 Posted : Wednesday, May 12, 2010 7:19:12 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 4
Location: Iceland
How can I query from event viewer.

I can find 2 tables but no connection with computer

tsysEventAlerts
tsysEventfilter
Lansweeper
#2 Posted : Wednesday, May 12, 2010 7:41:54 PM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,379
You need table "tblntlogevent"
ehj
#3 Posted : Wednesday, May 12, 2010 11:11:06 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 4
Location: Iceland
Works great

Now I have a report that shows all machines with an error on hard drives.


Select Top 1000000 tblcomputers.Computer, tblntlogevent.Eventcode, tblntlogevent.Logfile, tblntlogevent.Message, tblntlogevent.Sourcename, tblcomputers.Description From tblntlogevent Inner Join tblcomputers On tblcomputers.Computername = tblntlogevent.Computername Where tblntlogevent.Eventcode = 7 And tblntlogevent.Sourcename = 'disk'
googoo
#4 Posted : Friday, May 21, 2010 6:25:27 PM

Rank: Premium user

Groups: Premium Users
Posts: 136
Location: Missouri, USA
Does anyone know how to change this query to only report entries from the current day?
googoo
#5 Posted : Friday, May 21, 2010 7:52:01 PM

Rank: Premium user

Groups: Premium Users
Posts: 136
Location: Missouri, USA
I think I figured it out:

Select Top 1000000 tblcomputers.Computer, tblntlogevent.Eventcode, tblntlogevent.Logfile, tblntlogevent.Message, tblntlogevent.Sourcename, tblcomputers.Description, tblntlogevent.TimeGenerated From tblntlogevent Inner Join tblcomputers On tblcomputers.Computername = tblntlogevent.Computername Where tblntlogevent.Eventcode = 7 And tblntlogevent.Sourcename = 'disk' And DateDiff(d, tblntlogevent.TimeGenerated, Current_TimeStamp) <= 2
Lansweeper
#6 Posted : Friday, May 21, 2010 8:14:10 PM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,379
You an use filter
>=getdate()-1
Users browsing this topic
Guest
Tag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Contact: E-mail Lansweeper - Skype : Lansweeper
Copyright 2004 - 2011 © Hemoco bvba