Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

O/S: Windows Server 2003. IIS 6.0. There is no SQL-Server.

I'm looking for filtering all events that have this Exception message: "Connection request timed out". Would it be possible? enter image description here

share|improve this question
add comment

2 Answers

Not natively in 2003, but with some scripting it can be done.

Natively, you're restricted to the filter categories in the screenshot (right click the Event Log in question, View -> Filter...), but with a script you can basically copy out only the events containing certain text to a .evt (Event Log) file and open that up.

enter image description here

share|improve this answer
    
Could I export all event logs to a txt file? Having that, then I could load it to a sql table and filter. –  user316687 Aug 17 '12 at 17:50
    
@user316687 You can. Right click the log, Save As... and you can save it as a tab delimited text file, a .csv or a .evt. I might suggest trying to filter by "warning" first, since it seems that those are all warnings. Could make life easier, depending on what you're trying to do with the logs. –  HopelessN00b Aug 17 '12 at 17:56
    
It's not possible to filter natively in the way I need. Is there any free tool to be recommend? –  user316687 Aug 17 '12 at 21:25
    
@user316687 Not that I know of. Like I said, I do this with [PowerShell] scripts. Parse the event log for the events I want, copy them to a new event log, open that. –  HopelessN00b Aug 17 '12 at 21:32
add comment

Heres my powershell one-liner.
This will output a table with the the Date and Time of each occurrence on the error.

get-eventlog -LogName Application | Select TimeGenerated, Message, Source | where {($_.Message -like "*Connection request timed out*") -and ($_.Source -like "ASP*")}
share|improve this answer
add comment

Your Answer

 
discard

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.