03.03.2015 Views

MonitorMagic - Tools4Ever.com

MonitorMagic - Tools4Ever.com

MonitorMagic - Tools4Ever.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using <strong>MonitorMagic</strong><br />

Distribution of event types per machine shows how many errors, warning and info<br />

messages are in the eventlogs of various <strong>com</strong>puters, ordered by eventlogtype.<br />

SELECT logeventtype,<strong>com</strong>putername,count(*)As 'number of events'<br />

FROM mmgeneral_<strong>com</strong>putername,mmlog_eventrecord,mmlog_description,<br />

mmlog_sourceName,mmlog_logname<br />

WHERE mmlog_eventrecord.logsourceid=mmlog_sourcename.sourceid<br />

AND mmlog_eventrecord.loglogid=mmlog_logname.logid<br />

AND mmlog_eventrecord.logdescriptionid=mmlog_description.descriptionid<br />

AND mmlog_logname.logid=mmlog_eventrecord.loglogid<br />

AND mmgeneral_<strong>com</strong>putername.<strong>com</strong>puterid=mmlog_eventrecord.log<strong>com</strong>puterid<br />

group by ALL logeventtype, Computername<br />

order by logeventtype,<strong>com</strong>putername<br />

Distribution of event types per machine and per eventsource<br />

SELECT sourcename,logeventtype,<strong>com</strong>putername,count(*)As 'number of events'<br />

FROM<br />

mmgeneral_<strong>com</strong>putername,mmlog_eventrecord,mmlog_description,mmlog_sourceName,mmlog<br />

_logname<br />

WHERE mmlog_eventrecord.logsourceid=mmlog_sourcename.sourceid<br />

AND mmlog_eventrecord.loglogid=mmlog_logname.logid<br />

AND mmlog_eventrecord.logdescriptionid=mmlog_description.descriptionid<br />

AND mmlog_logname.logid=mmlog_eventrecord.loglogid<br />

AND mmgeneral_<strong>com</strong>putername.<strong>com</strong>puterid=mmlog_eventrecord.log<strong>com</strong>puterid<br />

GROUP BY logeventtype,sourcename,Computername<br />

ORDER BY sourcename,logeventtype,<strong>com</strong>putername<br />

Select all info of a certain <strong>com</strong>puter from a certain time period, and a certain eventlog<br />

SELECT sourcename,logname,<strong>com</strong>putername,description,<br />

LogEventRecordid,logtimeGenerated,logeventid,logeventtype,logeventcategory<br />

FROM mmlog_eventrecord,mmlog_Description,mmlog_sourceName,<br />

mmlog_logname,mmgeneral_<strong>com</strong>putername<br />

WHERE mmlog_eventrecord.logsourceid=mmlog_sourcename.sourceid<br />

AND mmlog_eventrecord.logdescriptionid=mmlog_description.descriptionid<br />

AND mmlog_logname.logid=mmlog_eventrecord.loglogid<br />

AND mmgeneral_<strong>com</strong>putername.<strong>com</strong>puterid=mmlog_eventrecord.log<strong>com</strong>puterid<br />

AND mmgeneral_<strong>com</strong>putername.<strong>com</strong>putername='Pacific'<br />

AND mmLog_logname.logname='system'<br />

AND mmlog_eventrecord.LogTimeGenerated >'11/20/2002 9:00:00'<br />

AND mmlog_eventrecord.LogTimeGenerated

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!