| 84 |
| Dump and view the event logs from a console |
| The Event Viewer gives you a decent set of tools to view the event logs on the local computer and |
| even lets you connect to a remote computer to view its logs. You can right-click Event Viewer in the |
| left pane, choose Connect To Another Computer, and specify the name of the computer on the LAN |
| whose event logs you want to view. |
| In some situations, it's helpful to be able to dump the event logs from a console. For example, |
| maybe you need to extract the log to a file for import into a database, or you simply prefer using a |
| command console for most tasks. If either of those is true for you, check out the ElogDmp tool |
| included in the Windows 2000 Resource Kit. |
| ElogDmp is a console tool that you can use to dump the event logs on the local computer or a |
| remote computer to the screen. You can redirect the output to a file if you need to import the log |
| into another program such as a database or spreadsheet. |
| The syntax for ElogDmp is: |
| Replace <computer> with the name of the computer whose log you want to dump. Then replace |
| <log> with Application, System, or Security, depending on which log you want to view. The |
| following sample would dump the Application log from a computer on the LAN named SNOOPY |
| and redirect it to a text file: |
| elogdmp \\snoopy Application > applog.txt |
First Previous Next Last |