Log storage system, log storage method, and program

JP7631920B2Active Publication Date: 2025-02-19RICOH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2021039243
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-03-11
Publication Date
2025-02-19
Estimated Expiration
2041-03-11

AI Technical Summary

Benefits of technology

【0006】 本発明によれば、メインシステムのログデータの記憶に要する記憶媒体の容量を抑制しつつ、メインシステムの障害発生時におけるログデータを記憶可能とする、という効果を奏する。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007631920000001
    Figure 0007631920000001
  • Figure 0007631920000002
    Figure 0007631920000002
Patent Text Reader

Abstract

To provide a log saving system, a log saving method and a program capable of storing log data when a failure occurs in a main system while suppressing the capacity of a storing medium necessary for storing the log data on the main system.SOLUTION: The present invention includes: a first storing medium; a second storing medium that has a lower rewrite tolerability than that of the first storing medium; a main system that controls an electronic apparatus; and a log saving control unit which saves the log data on the main system in the first storing medium, and copies the log data stored in the first storing medium in the second storing medium when a log copy notification for requesting the copy of the log data is given from the main system.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a log storage system, a log storage method, and a program. [Background technology]

[0002] 2. Description of the Related Art Log storage systems have been developed that store log data of a main system that controls electronic devices in a storage medium such as a NAND type Flash memory. Summary of the Invention [Problem to be solved by the invention]

[0003] However, in the above-mentioned log storage system, if log data is written to the storage medium at a high frequency, the lifespan of the storage medium, such as a Nand-type flash memory, which has low rewrite resistance, may be shortened.

[0004] The present invention has been made in consideration of the above, and aims to provide a log storage system, a log storage method, and a program that are capable of storing log data when a failure occurs in the main system while reducing the capacity of the storage medium required to store the log data of the main system. [Means for solving the problem]

[0005] In order to solve the above-mentioned problems and achieve the object, the present invention provides an electronic device comprising: a first storage medium; a second storage medium having a lower rewrite resistance than the first storage medium; a main system that controls an electronic device; and a log storage control unit that stores log data of the main system in the first storage medium and copies the log data stored in the first storage medium to the second storage medium when a log copy notification requesting copying of the log data is received from the main system. The log storage control unit detects the capacity of the log data stored in the second storage medium, and when the detected capacity is equal to or larger than a preset capacity, deletes the log data stored in the second storage medium in order of oldest to newest, and transfers the log data to an external analysis terminal by facsimile before deleting the log data from the second storage medium. do. Effect of the Invention

[0006] According to the present invention, it is possible to reduce the capacity of a storage medium required to store log data of a main system, while making it possible to store log data when a failure occurs in the main system. [Brief description of the drawings]

[0007] [Figure 1] FIG. 1 is a diagram illustrating an example of a configuration of a log storage system according to the present embodiment. [Diagram 2] FIG. 2 is a sequence diagram showing an example of the flow of a log data saving process in the log saving system according to the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of a log storage system, a log storage method, and a program will be described in detail with reference to the accompanying drawings.

[0009] Fig. 1 is a diagram showing an example of the configuration of a log storage system according to the present embodiment. As shown in Fig. 1, the log storage system according to the present embodiment includes an integrated circuit 1, a power supply circuit 2, a capacitor 3, a non-volatile memory 4, a first storage medium X1, and a second storage medium X2.

[0010] The power supply circuit 2 is an example of a power supply circuit that supplies power to the integrated circuit 1, the first storage medium X1, and the second storage medium X2. In this embodiment, the power supply circuit 2 also supplies power to the nonvolatile memory 4. The capacitor 3 is an example of a capacitor connected to the power supply circuit 2. The capacitor 3 is charged when the main system 101 of the integrated circuit 1 is started, and supplies power to the integrated circuit 1, the first storage medium X1, and the second storage medium X2 when an abnormality occurs in the power supply circuit 2. This makes it possible to maintain the supply of power to the integrated circuit 1, the first storage medium X1, and the second storage medium X2 until the storage of the log data in the first storage medium X1 and the second storage medium X2 is completed, even if the supply of power from the power supply circuit 2 is cut off while the log data is being written to the first storage medium X1 or the second storage medium X2. In this embodiment, the capacitor 3 also supplies power to the nonvolatile memory 4 when an abnormality occurs in the power supply circuit 2.

[0011] The first storage medium X1 is a storage medium with high rewrite resistance, such as FeRAM (Ferroelectric Random Access Memory) or MRAM (Magneto resistive Random Access Memory), and is an example of a first storage medium that stores log data of the main system 101 of the integrated circuit 1. The first storage medium X1 is a non-volatile memory. The second storage medium X2 is a storage medium with lower rewrite resistance than the first storage medium X1, such as a Nand-type Flash memory, and is an example of a second storage medium that stores log data of the main system 101 when an abnormality occurs in the main system 101. The second storage medium X2 is a non-volatile memory. The non-volatile memory 4 is an example of a non-volatile memory that stores a flag when the main system 101 is started up.

[0012] The integrated circuit 1 includes a main system 101. The main system 101 is an example of a main system that controls an electronic device, and includes a processor such as a central processing unit (CPU), a read only memory (ROM), a random access memory (RAM), and the like. The processor executes various programs (log storage programs, etc.) stored in the ROM to realize various functions such as a log storage control unit 102a, a memory control unit 102b, a determination unit 102c, and a main system control unit 102d. In this embodiment, the log storage control unit 102a, the memory control unit 102b, and the determination unit 102c are provided in the main system 101 (in other words, the log storage program is executed in the main system 101), but the log storage control unit 102a, the memory control unit 102b, and the determination unit 102c may be provided in an external device of the main system 101.

[0013] The main system control unit 102d controls the main system 101. In this embodiment, the main system control unit 102d detects an abnormality in the main system 101, and when the main system control unit 102d detects the abnormality, it sends a log copy notification to the log storage control unit 102a. Here, the log copy notification is an example of a log copy notification that requests copying of log data from the first storage medium X1 to the second storage medium X2.

[0014] Furthermore, the main system control unit 102d sends a shutdown notification to the log storage control unit 102a. Here, the shutdown notification is an example of a shutdown notification that notifies that the main system 101 will be shut down after the log data is copied from the first storage medium X1 to the second storage medium X2. After the shutdown notification, the main system control unit 102d stops the shutdown of the main system 101 until a copy completion notification is received from the log storage control unit 102a, and executes the shutdown of the main system 101 after the copy completion notification is received.

[0015] The log storage control unit 102a stores the log data of the main system 101 (operation record of the main system 101) in the first storage medium X1. In this embodiment, the log storage control unit 102a stores the log data in the first storage medium X1 in a ring buffer format. The log storage control unit 102a is an example of a log storage control unit that copies the log data stored in the first storage medium X1 to the second storage medium X2 when a log copy notification is notified from the main system 101 (in this embodiment, the main system control unit 102d). In this way, when an abnormality (failure) occurs in the main system 101, the log data of the main system 101 is stored in the low-durability memory (second storage medium X2), so that the capacity of the expensive high-durability memory (first storage medium X1) can be kept small while preventing damage to the low-durability memory. As a result, the capacity of the first storage medium X1 required for storing the log data of the main system 101 can be suppressed while the log data at the time of the occurrence of a failure in the main system 101 can be stored.

[0016] Furthermore, the log storage control unit 102a detects the amount of log data stored in the second storage medium X2. If the detected amount of log data is equal to or greater than a preset amount, the log storage control unit 102a deletes the log data stored in the second storage medium X2 in order from oldest to newest. This allows the amount of log data stored in the second storage medium X2 to be kept equal to or less than the preset amount.

[0017] The log storage control unit 102a can also print the log data on paper before deleting the log data from the second storage medium X2. This makes it possible to analyze the main system 101 based on the log data printed on paper even after the log data is deleted from the second storage medium X2.

[0018] The log storage control unit 102a can also transfer the log data to a server via the network before deleting the log data from the second storage medium X2. This makes it possible to analyze the main system 101 based on the log data stored in the server even after the log data is deleted from the second storage medium X2. The log storage control unit 102a can also transfer the log data to an external analysis terminal by facsimile before deleting the log data from the second storage medium X2. This makes it possible to analyze the main system 101 based on the log data output from the external analysis terminal even after the log data is deleted from the second storage medium X2.

[0019] Furthermore, when the determination unit 102c, which will be described later, determines that the previous shutdown of the main system 101 was not due to an instruction from the main system 101 (in this embodiment, the main system control unit 102d), the log storage control unit 102a copies the log data stored in the first storage medium X1 to the second storage medium X2. This makes it possible to analyze the log data of the main system 101 even if an unexpected abnormality occurs in the main system 101 and causes the main system 101 to shut down.

[0020] Furthermore, when a shutdown notification is received from the main system 101 (main system control unit 102d in this embodiment), the log storage control unit 102a notifies the main system 101 (main system control unit 102d in this embodiment) of a copy completion notification (one example of a completion notification) after the copy of the log data from the first storage medium X1 to the second storage medium X2 is completed. This makes it possible to prevent the main system 101 from being shut down in the middle of copying the log data from the first storage medium X1 to the second storage medium X2, which would prevent the log data from being normally stored in the second storage medium X2.

[0021] The memory control unit 102b writes a flag in the nonvolatile memory 4 when the main system 101 is started up. The memory control unit 102b also erases the flag from the nonvolatile memory 4 when the main system 101 is shut down. This makes it possible to determine whether the previous shutdown of the main system 101 was due to an instruction from the main system 101 by checking whether a flag is stored in the nonvolatile memory 4 when the main system 101 is started up.

[0022] The judgment unit 102c judges whether or not a flag is stored in the non-volatile memory 4 each time the main system 101 is started. If the flag is not stored in the non-volatile memory 4, the judgment unit 102c judges that the previous shutdown of the main system 101 was due to an instruction from the main system 101 (in this embodiment, the main system control unit 102d). On the other hand, if the flag is stored in the non-volatile memory 4, the judgment unit 102c judges that the previous shutdown of the main system 101 was not due to an instruction from the main system 101 (in this embodiment, the main system control unit 102d). That is, the judgment unit 102c judges that the previous shutdown of the main system 101 was unintended. In this case, the log storage control unit 102a copies the log data stored in the first storage medium X1 to the second storage medium X2 as described above. This makes it possible to analyze the log data of the main system 101 even if an unexpected abnormality occurs in the main system 101 and the main system 101 is shut down.

[0023] 2 is a sequence diagram showing an example of the flow of the log data storage process in the log storage system according to the present embodiment. Next, an example of the flow of the log data storage process in the log storage system according to the present embodiment will be described with reference to FIG.

[0024] When the main system 101 starts up, the log storage control unit 102a starts writing log data of the main system 101 to the first storage medium X1 (step S201). Then, the log storage control unit 102a overwrites the log data of the main system 101 to the first storage medium X1 at preset time intervals (step S202).

[0025] Thereafter, when the main system control unit 102d detects the occurrence of an abnormality in the main system 101, it sends a shutdown notification and a log copy notification to the log save control unit 102a (step S203). Upon receiving the log copy notification from the main system control unit 102d, the log save control unit 102a requests the first storage medium X1 to read the log data (step S204), and reads the log data from the first storage medium X1 (step S205).

[0026] Next, the log storage control unit 102a copies (stores) the log data read from the first storage medium X1 to the second storage medium X2 (step S206). When the copy of the log data to the second storage medium X2 is completed, the log storage control unit 102a notifies the main system control unit 102d of the completion of the copy (step S207).

[0027] Thereafter, when the main system 101 is restarted and returns to normal operation, the log storage control unit 102a again writes the log data of the main system 101 to the first storage medium X1 and overwrites the log data of the main system 101 to the first storage medium X1 at preset time intervals (steps S201 and S202). As a result, the log data of the main system 101 when an abnormality occurs in the main system 101 remains in the second storage medium X2, so that the abnormality that occurs in the main system 101 can be analyzed using the log data stored in the second storage medium X2.

[0028] Thus, according to the log storage system of this embodiment, when an abnormality (failure) occurs in the main system 101, the log data of the main system 101 is stored in the low-durability memory (second storage medium X2), thereby making it possible to prevent damage to the low-durability memory while keeping the capacity of the expensive high-durability memory (first storage medium X1) small. As a result, it becomes possible to store log data when a failure occurs in the main system 101 while suppressing the capacity of the first storage medium X1 required to store the log data of the main system 101.

[0029] The programs executed by the log storage system of this embodiment are provided in advance in a ROM, etc. The programs executed by the log storage system of this embodiment may be provided by being recorded in an installable or executable format on a computer-readable recording medium such as a CD-ROM, a flexible disk (FD), a CD-R, or a digital versatile disk (DVD).

[0030] Furthermore, the program executed by the log storage system of this embodiment may be stored on a computer connected to a network such as the Internet and provided by being downloaded via the network. Also, the program executed by the log storage system of this embodiment may be provided or distributed via a network such as the Internet.

[0031] The program executed in the log storage system of this embodiment has a modular configuration including the above-mentioned units (log storage control unit 102a, memory control unit 102b, judgment unit 102c, main system control unit 102d, etc.), and in terms of actual hardware, a processor such as a CPU reads the program from the ROM and executes it, loading the above-mentioned units onto a main storage device, and generating the log storage control unit 102a, memory control unit 102b, judgment unit 102c, main system control unit 102d, etc. on the main storage device. [Explanation of symbols]

[0032] 1 Integrated Circuits 2 Power circuit 3. Capacitor 101 Main System 102a Log storage control unit 102b Memory control unit 102c Judgment Department 102d Main system control section X1 1st storage medium X2 2nd storage medium [Prior art documents] [Patent documents]

[0033] [Patent Document 1] JP 2014-038435 A

Claims

1. A first storage medium; a second storage medium having a lower rewrite resistance than the first storage medium; A main system that controls electronic devices; a log storage control unit that stores log data of the main system in the first storage medium, and copies the log data stored in the first storage medium to the second storage medium when a log copy notification requesting a copy of the log data is sent from the main system; Equipped with The log storage control unit detects the capacity of the log data stored in the second storage medium, and if the detected capacity is equal to or greater than a predetermined capacity, deletes the log data stored in the second storage medium in order of oldest to newest, and transfers the log data by facsimile to an external analysis terminal before deleting the log data from the second storage medium.

2. A first storage medium; a second storage medium having a lower rewrite resistance than the first storage medium; A main system that controls electronic devices; a log storage control unit that stores log data of the main system in the first storage medium, and copies the log data stored in the first storage medium to the second storage medium when a log copy notification requesting a copy of the log data is sent from the main system; A non-volatile memory; a memory control unit that writes a flag into the non-volatile memory when the main system is started and erases the flag from the non-volatile memory when the main system is shut down; a determination unit which determines whether or not the flag is stored in the non-volatile memory each time the main system is started, and if the flag is not stored in the non-volatile memory, determines that the previous shutdown of the main system was due to an instruction from the main system, and if the flag is stored in the non-volatile memory, determines that the previous shutdown of the main system was not due to an instruction from the main system; Equipped with A log storage system, wherein the log storage control unit copies the log data stored in the first storage medium to the second storage medium when it is determined that the previous shutdown of the main system was not at the instruction of the main system.

3. A first storage medium; a second storage medium having a lower rewrite resistance than the first storage medium; A main system that controls electronic devices; a log storage control unit that stores log data of the main system in the first storage medium, and copies the log data stored in the first storage medium to the second storage medium when a log copy notification requesting a copy of the log data is sent from the main system; Equipped with the main system notifies the log storage control unit of a shutdown notification notifying that a shutdown of the main system will occur after copying the log data from the first storage medium to the second storage medium, suspends shutdown of the main system after the shutdown notification until a completion notification of copying the log data from the first storage medium to the second storage medium is notified, and executes shutdown of the main system after the completion notification is notified; A log storage system in which, when the shutdown notification is received from the main system, the log storage control unit notifies the main system of the completion notification after copying of the log data from the first storage medium to the second storage medium is completed.

4. 4. The log storage system according to claim 1, wherein the main system notifies the log storage control unit of the log copy notification when an abnormality in the main system is detected.

5. an integrated circuit including the main system and the log storage control unit, the first storage medium, and a capacitor connected to a power supply circuit of the second storage medium; 5. The log storage system of claim 1, wherein the capacitor is charged when the main system is started up, and supplies power to the integrated circuit, the first storage medium, and the second storage medium when an abnormality occurs in the power supply circuit.

6. A log storage method executed in a log storage system, comprising: storing log data of a main system that controls the electronic device in a first storage medium; copying the log data stored in the first storage medium to a second storage medium having a lower rewrite resistance than the first storage medium when a log copy notification requesting copying of the log data is received from the main system; detecting a capacity of the log data stored in the second storage medium, and deleting the log data stored in the second storage medium in order of age when the detected capacity is equal to or larger than a preset capacity, and transferring the log data by facsimile to an external analysis terminal before deleting the log data from the second storage medium; A method for storing logs including:

7. A log storage method executed in a log storage system, comprising: storing log data of a main system that controls the electronic device in a first storage medium; copying the log data stored in the first storage medium to a second storage medium having a lower rewrite resistance than the first storage medium when a log copy notification requesting copying of the log data is received from the main system; writing a flag into a non-volatile memory when the main system is started, and erasing the flag from the non-volatile memory when the main system is shut down; determining whether or not the flag is stored in the non-volatile memory each time the main system is started, and if the flag is not stored in the non-volatile memory, determining that the previous shutdown of the main system was due to an instruction from the main system, and if the flag is stored in the non-volatile memory, determining that the previous shutdown of the main system was not due to an instruction from the main system; copying the log data stored in the first storage medium to the second storage medium when it is determined that the previous shutdown of the main system was not initiated by an instruction from the main system; A method for storing logs including:

8. A main system for controlling electronic equipment; a log storage control unit that stores log data of the main system in a first storage medium, and when a log copy notification requesting a copy of the log data is sent from the main system, copies the log data stored in the first storage medium to a second storage medium having a lower rewrite resistance than the first storage medium; A log storage method executed in a log storage system comprising: a step of notifying the log storage control unit of a shutdown notification that a shutdown of the main system will occur after the log data is copied from the first storage medium to the second storage medium, stopping the shutdown of the main system after the shutdown notification until a completion notification of the copying of the log data from the first storage medium to the second storage medium is notified, and executing the shutdown of the main system after the completion notification is notified; when the shutdown notification is received from the main system, the log storage control unit notifies the main system of the completion notification after the copy of the log data from the first storage medium to the second storage medium is completed; A method for storing logs including:

9. Computer, a log storage control unit that stores log data of a main system that controls an electronic device in a first storage medium, and when a log copy notification requesting a copy of the log data is received from the main system, copies the log data stored in the first storage medium to a second storage medium having a lower rewrite resistance than the first storage medium; Function as a The log storage control unit detects the capacity of the log data stored in the second storage medium, and if the detected capacity is equal to or greater than a predetermined capacity, deletes the log data stored in the second storage medium in order of oldest to newest, and transfers the log data by facsimile to an external analysis terminal before deleting the log data from the second storage medium.

10. A computer comprising: a log storage control unit that stores log data of a main system that controls an electronic device in a first storage medium, and when a log copy notification requesting a copy of the log data is received from the main system, copies the log data stored in the first storage medium to a second storage medium having a lower rewrite resistance than the first storage medium; a memory control unit that writes a flag into a non-volatile memory when the main system is started and erases the flag from the non-volatile memory when the main system is shut down; a determination unit which determines whether or not the flag is stored in the non-volatile memory each time the main system is started, and if the flag is not stored in the non-volatile memory, determines that the previous shutdown of the main system was due to an instruction from the main system, and if the flag is stored in the non-volatile memory, determines that the previous shutdown of the main system was not due to an instruction from the main system; and make it work. The log storage control unit is a program that copies the log data stored in the first storage medium to the second storage medium when it is determined that the previous shutdown of the main system was not at the instruction of the main system.

11. A computer comprising: a log storage control unit that stores log data of a main system that controls an electronic device in a first storage medium, and when a log copy notification requesting a copy of the log data is received from the main system, copies the log data stored in the first storage medium to a second storage medium having a lower rewrite resistance than the first storage medium; Functioning as a the main system notifies the log storage control unit of a shutdown notification notifying that a shutdown of the main system will occur after copying the log data from the first storage medium to the second storage medium, suspends shutdown of the main system after the shutdown notification until a completion notification of copying the log data from the first storage medium to the second storage medium is notified, and executes shutdown of the main system after the completion notification is notified; A program in which, when the shutdown notification is received from the main system, the log storage control unit notifies the main system of the completion notification after copying of the log data from the first storage medium to the second storage medium is completed.

Citation Information

Patent Citations

  • Emergency power system

    JP2006158104A

  • Log information management system

    JP2007241540A

  • Fault analysis information management system and fault analysis information management method

    JP2014038435A

  • Control device, control program, and control method

    JP2017091456A