Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I searched for a specific Event ID (6008 Unexpected Shutdown) in the Windows 7 Event Viewer, but now I want to see the events in the log that led up to that event, so how can I search for that specific event as it appears in the log with the logs before and after it?

Is there some sort of primary key I can search for, or is it more unstructured?

share|improve this question
up vote 0 down vote accepted

Unfortunately, you will probably have to do multiple searches, the first by Event ID, and then by time range, to get the preceding messages. there is no linkage between messages, so there isn't a good way to get related messages, except by time span.

share|improve this answer
Wow thanks Microsoft! A Binary format that doesn't have any primary keys! No wonder it's so hard to diagnose issues on Windows. – leeand00 Mar 14 '13 at 17:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.