This application relates to a system, a method, and a computer readable media for identifying a user-initiated log file record in a log file.
When developing or working with various software applications, it is often necessary to make use of log files which indicate commands or tasks that are being executed within a software application. For example, a user may desire to capture the commands needed to perform an action in a software application. In this case, the user could instruct the software application to perform a task and then could view a log file to view log file records to determine the commands that were generated to perform the task.
One drawback with the foregoing approach is that some software applications perform tasks known as cron task commands that can be repeated at scheduled intervals, which can introduce log file records having commands to perform the tasks in a log file. Thus, it may be difficult to determine which log file records in a log file have commands corresponding to the cron task commands. The drawback is exacerbated as a number of active running cron task commands is increased.
Accordingly, the inventors herein have recognized a need for a system, a method, and a computer readable media for identifying a user-initiated log file record that Minimizes and/or eliminates the above-identified drawback.
A method for identifying a user-initiated log file record in a log file in accordance with an exemplary embodiment is provided. The method includes selecting the log file having a plurality of log file records therein. The plurality of log file records have at least in part a repeating pattern of log file records automatically generated by a software program. The method further includes executing a first software command to store a first timestamp value in a memory device. The first timestamp value indicates a first time. The method further includes executing at least a first user-initiated software command that induces a computer to store at least a first log file record having a second time stamp value in the log file. The second timestamp value indicates a second time after the first time. The method further includes executing a second software command to store a third timestamp value in the memory device. The third timestamp value indicates a third time. The third time is after the second time and after execution of the first user-initiated software command is completed. The method further includes analyzing the plurality of log file records in the log the to identify the repeating pattern of log file records stored therein. The method further includes extracting the repeating pattern of log file records from the plurality of commands to identify the first log file record having the second timestamp value that was generated between the first and third times. The method further includes storing the first log file record associated with the first user-initiated software command in the memory device.
A system for identifying a user-initiated log file record in a log file in accordance with another exemplary embodiment is provided. The system includes a memory device having the log file stored therein. The system further includes a computer operably communicating with the memory device. The computer is configured to display first and second graphical user interfaces on a display device The first graphical user interface is configured to allow a user to select the log file. The log file has a plurality of log file records therein. The plurality of log file records have at least in part a repeating pattern of log file records. The first graphical user interface is further configured to allow the user to execute a first software command to store a first timestamp value in the memory device. The first timestamp value indicates a first time. The second graphical user interface is configured to allow the user to execute at least a first user-initiated software command that induces the computer to store at least a first log file record having a second time stamp value in the log file. The second timestamp value indicates a second time after the first time. The first graphical user interface is further configured to allow the user to execute a second software command to store a third timestamp value in the memory device. The third timestamp value indicates a third time. The third time is after the second time and after execution of the first user-initiated software command is completed. The computer is further configured to analyze the plurality of log file records in the log file to identify the repeating pattern of log file records stored therein. The computer is further configured to extract the repeating pattern. of log file records from the plurality of commands to identify the first log file record having the second timestamp value that was generated between the first and third times. The computer is further configured to store the first log file record associated with the first user-initiated software command in the memory device.
One or more computer readable media having computer-executable instructions implementing a method for identifying a user-initiated log file record in a log file in accordance with another exemplary embodiment is provided. The method includes selecting the log file having a plurality of log file records therein, the plurality of fog file records having at least in part a repeating pattern of log file records automatically generated by a software program. The method further includes executing a first software command to store a first timestamp value in a memory device. The first timestamp value indicates a first time. The method further includes executing at least a first user-initiated software command that induces a computer to store at least a first log file record having a second time stamp value in the log file. The second timestamp value indicates a second time after the first time. The method further includes executing a second software command to store a third timestamp value in the memory device. The third timestamp value indicates a third time. The third time is after the second time and after execution of the first user-initiated software command is completed. The method further includes analyzing the plurality of log file records in the log file to identify the repeating pattern of log file records stored therein. The method further includes extracting the repeating pattern of log file records from the plurality of commands to identify the first log file record the second timestamp value that was generated between the first and third times. The method further includes storing the first log file record associated with the first user initiated software command in the memory device.
Referring to
The computer 20 is configured to execute software routines for identifying at least one user-initiated log file record in a log file 30. The computer 20 is operably coupled to the memory device 22, the display device 24, the keyboard 26, and the mouse 28.
The memory device 22 is configured to store data generated by the computer 20. In particular, the memory device 22 is configured to store the log file 30 generated by the computer 20.
The keyboard 26 is configured to allow a user to input data on graphical user interfaces displayed on the display device 24. The keyboard 26 is operably coupled to the computer 20.
The mouse 28 is configured to allow a user to select items on graphical user interfaces displayed on the display device 24. The mouse 28 is operably coupled to the computer 20.
The computer 20 is further configured to induce the display device 24 to display graphical user interfaces thereon which will be utilized by the computer 20 for identifying a user-initiated log file record in the log file 30.
Referring to
The log file text box 42 is configured to allow a user to input a directory path and file name of the log file 30 therein, utilizing the keyboard 26, such that the computer 20 can access the log file 30 in the memory device 22.
The browse command button 44 is configured to allow user to view directories and file names stored in the memory device 22 such that the user can select the log file 30, utilizing the mouse 28.
The perform pre-analysis command button 46 is configured to allow a user to instruct the computer 20 to analyze the log file 30 specified in the log file text box 42, to determine a repeating pattern of log file records automatically generated by a software program and stored in the log file 30. In particular, when the user selects the pre-analysis command button 46, the computer 20 analyzes each record in the log file 30 to determine substantially similar log file records that are duplicated in the log file 30 at predetermined time intervals. The substantially similar log file records that are duplicated in the log file 30 at predetermined time intervals are Identified and flagged by the computer 20. It should be noted that the log file records in the log file 30 that are not part of a repeating pattern of log file records are user-initiated log file records.
The start user action command button 48 is configured to allow a user to instruct the computer 20 when a user action or command in the graphical user interface 100 (that will cause log file records to be stored in the log file 30), will subsequently be executed. In particular, when the user selects the start user action command button 48 utilizing the mouse 28, the computer 20 will either: (i) store a first timestamp value in the memory device 22 indicating when the user selected the button 48, or (ii) store an identifying marker in the log file 30 indicating when the user selected the button 48.
The stop user action command button 50 is configured to allow a user to instruct the computer 20 when a user action or command in the graphical user interface 100 (that will cause log file records to be stored in the log file 30), is not being executed or has ended. In particular, when the user selects the stop user action command button 50 utilizing the mouse 28, the computer 20 will either: (i) store a second timestamp value in the memory device 22 indicating when the user selected the button 50, or (ii) store an identifying marker in the log file 30 indicating when the user selected the button 50.
The text frame 52 is configured to display log file records in the log file 30 that were output to the log file 30 between the pressing of the start user action command button 48 and the stop user action command button 50. In particular, when a user selects the log file 30 utilizing the log file text box 42, the computer 20 displays the associated log file records in the text frame 52. Referring to
Referring to
The analyze-and-filter command button 56 is configured to instruct the computer 20 to analyze the log file 30 specified in the log file text box 52 to (i) determine a repeating pattern of log file records automatically generated by a software program and stored in the log file 30 and (ii) to display only the user-initiated log file records in the log file 30 in the graphical user interface 130. In particular, when the user selects the analyze-and-filter command button 56, the computer 20 analyzes each record in the log file 30 to determine substantially similar log file records that are duplicated in the log file 30 at predetermined time intervals. The computer 20 also identifies the user-initiated log file records which are not part of a repeating pattern of log file records and induces the graphical user interface 130 to display the user-initiated log file records therein.
Referring to
Referring to
When a user selects the migrate command button 102 utilizing the mouse 28, the graphical user interface 100 displays a check mark in the option selection box 105. Further, when the user selects the perform action button 110, the computer 20 executes at least one migrate software command for performing a migrate task and generates a user-initiated log file record corresponding to the migrate software command that is stored in the log file 30.
When the user selects the assign command button 103 utilizing the mouse 28, the graphical user interface 100 displays a check mark in the option selection box 106. Further, when the user subsequently selects the perform action button 110 the computer 20 executes at least one assign software command for performing an assign task and generates a user-initiated log file record corresponding to the assign software command that is stored in the log file 30.
When the user selects the submit command button 104 utilizing the mouse 28, the graphical user interface 100 displays a check mark in the option selection box 107. Further, when the user subsequently selects the perform action button 110 the computer 20 executes at least one submit software command fir performing a submit task and generates a user-initiated log file record corresponding to the submit software command that is stored in the log file 30.
Referring to
At step 150, the computer 20 executes first software program that automatically generates a repeating pattern of log file records that are being stored in the log file 30. After step 150, the method advances to step 152.
At step 152, the computer 20 induces the display device 24 to display graphical user interfaces 40, 100 and 130. After step 152, the method advances to step 154.
At step 154, the user selects the log file 30 having a plurality of log file records utilizing the graphical user interface 40. The plurality of log file records have at least in part the repeating pattern of log file records that are being automatically generated by the first software program. After step 154, the method advances to step 156.
At step 156, the computer 20 makes a determination as to whether a user has chosen to perform pre-analysis of the log file 30 utilizing the graphical user interface 40. In particular, the computer 20 determines whether the user has selected the perform pre-analysis command button 56. If the value of step 156 equals “yes”, the method advances to step 158. Otherwise, the method advances to step 160.
At step 158, the computer 20 analyzes the plurality of log file records in the log the 30 to determine any repeating patterns of log file records automatically generated by the first software program. After step 158, the method advances to step 160.
At step 160, the user selects the start user action command button 48 utilizing the graphical user interface 40 that induces the computer 20 to execute a first software command to store a first timestamp value in a memory device 22. The first timestamp value indicates a first time after which user-initiated software commands will be invoked by the user. After step 160, the method advances to step 162.
At step 162, the user selects a first user-initiated software command button utilizing the graphical user interface 100 that induces the computer 20 to store at least a first log file record having a second time stamp value in the log file 30. The second timestamp value indicates a second time after the first time. After step 162, the method advances to step 164.
At step 164, the user selects a stop user action command button 50 utilizing the graphical user interface 40 that induces the computer 20 to execute a second software command to store a third timestamp value in the memory device 22. The third timestamp value indicates a third time. The third time is after the second time and after execution of the first user-initiated software command is completed. After step 164, the method advances to step 166.
At step 166, computer 20 determines a portion of the plurality of log file records in the log file 30 that were generated between the first and third times based on the time stamp values of the plurality of log file records. Each log file record has a distinct time stamp value associated therewith. After step 166, the method advances to step 168.
At step 168, the computer 20 induces the display device 24 to display the portion of the plurality of log file records in the log file 30 that were generated between the first and third times in the text box 52 of the graphical user interface 40. After step 168, the method advances to step 170.
At step 170, the computer 20 makes a determination as to whether pre-analysis of the log file was already performed. In particular, the computer 20 makes the determination as to whether pre-analysis of the log file 30 was already performed, when the user selects either the filter command button 54 or the analyze-and-filter command button 56. If the value of step 170 equals “yes”, the method advances to step 172. Otherwise, the method advances to step 178.
At step 172, computer 20 extracts the repeating patterns of log file records from the portion of the plurality of log file records in the log file 30 that were generated between the first and third times, such that at least the first log file record associated with the first user-initiated software command that was generated between the first and third times is identified. After step 172, the method advances to step 174.
At step 174, the computer 20 induces the display device 24 to display the first log file record associated with the first user-initiated software command in the graphical user interface 130. After step 174, the method advances to step 176.
At step 176, the computer 20 stores the first log file record associated with the first user-initiated software command in the memory device 22. After step 176, the method is exited.
Referring again to step 110, when the value of step 170 equals “no”, the method advances to step 178. At step 178, the computer 20 analyzes the plurality of log file records in the log file 30 to determine any repeating patterns of log file records automatically generated by the first software program. After step 178, the method advances to step 180.
At step 180, the computer 20 extracts the repeating patterns of log file records from the portion of the plurality of log file records in the log file 30 that were generated between the first and third times, such that at least the first log file record associated with the first user-initiated software command that was generated between the first and third times is identified. After step 180, the method advances to step 182.
At step 182, the computer 20 induces the display device 24 to display the first log file record associated with the first user-initiated software command in the graphical user interface 130. After step 182, the method advances to step 184.
At step 184, the computer 20 stores the first log file record associated with the first user-initiated software command in the memory device 22. After step 184, the method is exited.
An exemplary method for determining sets of repeating patterns of log file records in a log file will now be explained. An underlying presumption in the method is that the log file contains only the repeating patterns of log file records and no other records.
At a first step, the computer 20 analyzes the entire log file, starting from a first line.
At a second step, the computer 20 determines a repeating pattern having a shortest time interval. Because the log file records are repeated on a fixed time interval, the shortest repeating pattern will encompass a first log file record in the log file. The first command is denoted as A1 for example.
At a third step, the computer 20 commences from the first log file record and finds a subsequent log file record in the log file that is “similar” to the first log file record to determine a first time interval, and temporarily presumes that all of the log file records between these two records belong to a set of repeating log file records. It should be noted that the third step can utilize currently available techniques to determine similarity, such as the techniques most word processors use to suggest a different spelling for a misspelled word. The similarity determination method can have a predefined threshold, such as two log file records having at least 95% of the same characteristics in order to be considered similar. The similar subsequent command is denoted as A2 for example.
At a fourth step, the computer 20 commences from the similar log the record A2, to find a subsequent log file record in the log file that is also similar to A1 to determine a second time interval. The similar subsequent record is denoted as A3 for example.
At a fifth step, the computer 20 compares a set of log file records between A1 and A2, and between A2 and A1, and removes any new log file records that are between A2 and A3, but are not between A1 and A2, since the removed log file records correspond to records belonging to a set of repeating log file records (e.g., a pattern) with a longer time interval. Further, the computer 20 removes any log file records that are between A1 and A2, but are not between A2 and A3 since these removed log file records correspond to records belonging to another set of repeating log file records or a pattern with a longer time interval. Thereafter, the set of log file records between A1 and A2, and between A2 and A3 should now be the same, thus comprising a set of repeating log file records having a shortest time interval. This set of repeating log file records having the short time interval is stored in temporary storage and are denoted as pattern A for example.
At a sixth step, from a top of the log file, the computer 20 determines a first log file record that does not appear in the pattern A and denotes this as a start of pattern B1.
At a seventh step, the computer 20 repeats the third through fifth steps using the log file record 11 as a starting point.
At an eighth step, with the pattern B from the fifth step, the computer 20 removes any log file records in that pattern that belong to pattern A. The computer stores a second set of repeating log file records in the temporary storage and denotes them as pattern B for example.
At a ninth step, the computer 20 repeats the sixth through eighth steps for each successively longer time interval, by finding the log file records that are not in the temporary storage yet. Thus, all of the sets of repeating log file records or patterns are stored with unique identifiers in the temporary storage.
Referring to
The above-described method can be at least partially embodied in the form of one or more computer readable media having computer-executable instructions for practicing the method. The computer-readable media can comprise one or more of the following: floppy diskettes, CD-ROMs, hard drives, flash memory, and other computer-readable media known to those skilled in the art; wherein, when the computer-executable instructions are loaded into and executed by one or more computers or computer servers, the one or more computers or computer servers become an apparatus for practicing the invention.
The system, the method, and the computer readable media for identifying a user-initiated log file record in a log file represent a substantial advantage over other systems and methods. In particular, the system, the method, and the computer readable media provide a technical effect of identifying at least one user-initiated log file record in a log file wherein the log file also has a repeating pattern of log file records automatically generated by a software program.
While the invention is described with reference to an exemplary embodiment, it will be understood by those skilled in the art that various changes may be made and equivalence may be substituted for elements thereof without departing from the scope of the invention. In addition, many modifications may be made to the teachings of the invention to adapt to a particular situation without departing from the scope thereof Therefore, it is intended that the invention not be limited the embodiments disclosed for carrying out this invention, but that the invention includes all embodiments falling with the scope of the appended claims. Moreover, the use of the terms first, second, etc. does not denote any order of importance, but rather the terms first, second, etc. are used to distinguish one element from another.
This application is a Continuation application of U.S. patent application Ser. No. 13/456,511 filed on Apr. 26, 2012, which is a continuation of U.S. patent application Ser. No. 12/109,516 filed on Apr. 25, 2008, now U.S. Pat. No. 8,219,582 issued on Jul. 10, 2012.
Number | Name | Date | Kind |
---|---|---|---|
5530848 | Gilbert et al. | Jun 1996 | A |
5847972 | Eick et al. | Dec 1998 | A |
6816576 | Kasvand et al. | Nov 2004 | B2 |
6847983 | Somalwar et al. | Jan 2005 | B2 |
6996843 | Moran | Feb 2006 | B1 |
7139744 | Tran et al. | Nov 2006 | B2 |
7206835 | Kusumoto et al. | Apr 2007 | B2 |
7216336 | Ezra et al. | May 2007 | B1 |
7340037 | Jean et al. | Mar 2008 | B1 |
7415591 | Todd et al. | Aug 2008 | B1 |
7483810 | Jackson et al. | Jan 2009 | B2 |
7506195 | Takahashi et al. | Mar 2009 | B2 |
7617262 | Prahlad et al. | Nov 2009 | B2 |
7676760 | Rosenquist et al. | Mar 2010 | B1 |
7797585 | Sahin et al. | Sep 2010 | B1 |
8090994 | Chen et al. | Jan 2012 | B2 |
20010016849 | Squibbs | Aug 2001 | A1 |
20020042821 | Muret et al. | Apr 2002 | A1 |
20020174083 | Hellerstein et al. | Nov 2002 | A1 |
20030084098 | Lavin et al. | May 2003 | A1 |
20030120710 | Pulsipher et al. | Jun 2003 | A1 |
20030126114 | Tedesco | Jul 2003 | A1 |
20030236766 | Fortuna et al. | Dec 2003 | A1 |
20050120060 | Meng | Jun 2005 | A1 |
20050138483 | Hatonen et al. | Jun 2005 | A1 |
20050193036 | Phillips et al. | Sep 2005 | A1 |
20050278324 | Fan et al. | Dec 2005 | A1 |
20060074847 | Yatabe et al. | Apr 2006 | A1 |
20060149748 | Yamakawa et al. | Jul 2006 | A1 |
20060184529 | Berg et al. | Aug 2006 | A1 |
20060271784 | Bolosky et al. | Nov 2006 | A1 |
20070112864 | Ben-Natan | May 2007 | A1 |
20070112953 | Barnett | May 2007 | A1 |
20070157315 | Moran | Jul 2007 | A1 |
20070209075 | Coffman | Sep 2007 | A1 |
20070258106 | Ishiyama et al. | Nov 2007 | A1 |
20070260932 | Prichard et al. | Nov 2007 | A1 |
20070271276 | Allen et al. | Nov 2007 | A1 |
20070294271 | Bammi et al. | Dec 2007 | A1 |
20080155564 | Shcherbina et al. | Jun 2008 | A1 |
20080313345 | Bernardin et al. | Dec 2008 | A1 |
20090089233 | Gach et al. | Apr 2009 | A1 |
20090271448 | Chen et al. | Oct 2009 | A1 |
20090292742 | Chen et al. | Nov 2009 | A1 |
Entry |
---|
Notice of Allowance dated Aug. 22, 2011 for U.S. Appl. No. 12/124,235 (AUS920080015US1). |
Notice of Allowance dated Jul. 5, 2011 for U.S. Appl. No. 12/124,235 (AUS920080015US1). |
Final Office Action dated Mar. 11, 2011 for U.S. Appl. No. 12/124,235 (AUS920080015US1). |
Non-Final Office Action dated Sep. 28, 2011 for U.S. Appl. No. 12/124,235 (AUS920080015US1). |
Notice of Allowance dated Mar. 6, 2011 for U.S. Appl. No. 12/109,516 (AUS920071079US1). |
Non-Final Office Action dated Sep. 7, 2011 for U.S. Appl. No. 12/109,516 (AUS920071079US1). |
Final Office Action dated Apr. 15, 2011 for U.S. Appl. No. 12/109,516 (AUS920071079US1). |
Non-Final Office Action dated Sep. 30, 2011 for U.S. Appl. No. 12/109,516 (AUS920071079US1). |
Number | Date | Country | |
---|---|---|---|
20140214777 A1 | Jul 2014 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13456511 | Apr 2012 | US |
Child | 14226405 | US | |
Parent | 12109516 | Apr 2008 | US |
Child | 13456511 | US |