« Previous Next »

Thread: Error log monitoring

Last post 01-12-2009 3:56 PM by ServerIntellect_BH. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 01-08-2009, 3:15 AM

    • shin miz
    • Not Ranked
    • Joined on 01-06-2009, 1:30 PM
    • Posts 9

    Error log monitoring

    I have to search if the scripts in application logs at "C:\Documents and Settings\Error Log"

    contain the keywords as followed; "ErrorSource : A" or "ErrorSource : B".

    The system should look inside the file (log) and get the data. Inside the file, there are over 100 lines so the keywords are currently sought by Ctrl&F search.

    Im wondering if I can automize some of the process. If you have any suggestions or questions, please let me know.

    Contact me at: s-mizuguchi@hotmail.com

    Thanks,

    Best

     

     

  • 01-12-2009, 3:56 PM In reply to

    Re: Error log monitoring

    Hello,

    The following command will search through all files in the specified directory for the search phrase, and print out the line number and filename if it finds it. This is useful in determining if a specific file contains the search phrase without having to open it in Notepad first.

    FINDSTR /L /S /I /M /C:"Search Phrase" "C:\Documents and Settings\Error Log\*"

    Brock Hensley
    Technical Support Representative
    http://www.ServerIntellect.com

    Managed Servers, 24x7 U.S. Support, Web Hosting Solutions.
Page 1 of 1 (2 items)
Microsoft Communities