This example shows how to list the records in the system event log (SEL) of a managed server. This example also shows how to clear the records from the SEL. Clearing the log entries can save on disk space and reduce clutter from old records in the SEL.
You can locate the instance of CIM_RecordLog that represents the SEL by enumerating all instances of CIM_RecordLog and filtering out other logs by name. The log records are associated to the CIM_RecordLog instance. Listing Records of the System Event Log shows the relationships of the CIM objects involved.
This example shows how to get the log entries from the Implementation namespace, assuming you already know its name. The pseudocode in this topic depends on the pseudocode in Make a Connection to the CIMOM.