It hard to search the specific error occurred in the log file, to go through manually, when the file is of huge size.
- to find number times it occurred
-to find the pattern of the error
-or quick review of the error message
I found an easy way to do that, You can use this command not only for log file, any text file. This commands is for Windows machine
>Find "Sent alert email to admin for email" ErrorLog11052013.log >EmailErr.txt
Display all the line that matches ""Sent alert email to admin for email" in the file "ErrorLog11052013.log" and the Output will be redirected to "EmailErr.txt" file.
- to find number times it occurred
-to find the pattern of the error
-or quick review of the error message
I found an easy way to do that, You can use this command not only for log file, any text file. This commands is for Windows machine
>Find "Sent alert email to admin for email" ErrorLog11052013.log >EmailErr.txt
Display all the line that matches ""Sent alert email to admin for email" in the file "ErrorLog11052013.log" and the Output will be redirected to "EmailErr.txt" file.
Its very helpful to process the text file.
ReplyDeleteThanks
DeleteAppreeciate you blogging this
ReplyDelete