Electronic device, information processing system, log management method, and program
The system allows for efficient log transmission to a server by using a pattern file acquisition and search mechanism, addressing the downtime issue in conventional log management by avoiding program modifications.
Patent Information
- Application Number
- JP2023068760
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2024-10-31
AI Technical Summary
Conventional methods for obtaining new logs from electronic devices require modifying and updating the device program, leading to downtime due to the need for restarting the device.
An electronic device and information processing system that includes a storage unit for device logs, a search unit to match pattern files, and a transmitter to send logs to a server without changing the device program, utilizing a pattern file acquisition and search mechanism.
Enables the transmission of necessary logs to a server without modifying the device program, reducing downtime and improving efficiency in log management.
Smart Images

Figure 2024154748000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an electronic device, an information processing system, a log management method, and a program. [Background technology]
[0002] 2. Description of the Related Art In electronic devices such as image forming apparatuses, a technique is known in which logs related to operations and behavior of the electronic device are recorded and the contents of the logs required for managing the status of the electronic device are collected on a server side.
[0003] As a technology for collecting logs of such electronic devices, a technology has been disclosed in which the operation history of an image forming device as an electronic device is acquired, the acquired operation history is analyzed, and work characteristic data relating to the occurrence status of specified inefficient operations is generated (for example, Patent Document 1). Summary of the Invention [Problem to be solved by the invention]
[0004] However, in conventional technology, when trying to obtain a new type of log from the logs accumulated in an electronic device, it is necessary to modify and update the program of the electronic device and then restart the electronic device, which requires time for program development and results in downtime for updating the program.
[0005] The present invention has been made in consideration of the above, and aims to provide an electronic device, an information processing system, a log management method, and a program that can send necessary logs to a server without changing the program of the electronic device. [Means for solving the problem]
[0006] In order to solve the above-mentioned problems and achieve the object, the present invention is an electronic device comprising: a storage unit that stores an device log related to the electronic device; an acquisition unit that acquires a pattern file specified for searching for a specific log from a server; a search unit that searches the device log for a log that matches the pattern file acquired by the acquisition unit; and a transmission unit that transmits the log obtained by the search by the search unit to the server. Effect of the Invention
[0007] According to the present invention, it is possible to transmit necessary logs to a server without modifying the program of the electronic device. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram illustrating an example of an overall configuration of an information processing system according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of hardware of the image forming apparatus according to the embodiment. [Diagram 3] FIG. 3 is a diagram illustrating an example of hardware of a server according to the embodiment. [Figure 4] FIG. 4 is a diagram illustrating an example of a functional block configuration of the information processing system according to the embodiment. [Diagram 5] FIG. 5 is a diagram showing an example of an operation log stored in the image forming apparatus according to the embodiment. [Figure 6] FIG. 6 is a diagram showing an example of a pattern file for searching the operation log. [Figure 7] FIG. 7 is a diagram illustrating a search operation for an operation log of the image forming apparatus according to the embodiment. [Figure 8] FIG. 8 is a diagram showing an example of an operation log stored in the image forming apparatus according to the embodiment. [Figure 9] FIG. 9 is a diagram showing an example of a pattern file for searching the operation log. [Figure 10]FIG. 10 is a diagram for explaining a search operation for an operation log of the image forming apparatus according to the embodiment. [Figure 11] FIG. 11 is a diagram showing an example of the acquisition log selection setting screen. [Figure 12] FIG. 12 is a diagram showing an example of an acquired log details setting screen. [Figure 13] FIG. 13 is a flowchart showing an example of the flow of a log search operation in the image forming apparatus according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, with reference to the drawings, an embodiment of an electronic device, an information processing system, a log management method, and a program according to the present invention will be described in detail. Furthermore, the present invention is not limited to the following embodiment, and the components in the following embodiment include those that a person skilled in the art can easily conceive, those that are substantially the same, and those that are within the scope of what is called equivalent. Furthermore, various omissions, substitutions, modifications, and combinations of the components can be made without departing from the spirit of the following embodiment.
[0010] (Overall configuration of information processing system) Fig. 1 is a diagram showing an example of the overall configuration of an information processing system according to an embodiment of the present invention. The overall configuration of an information processing system 1 according to the present embodiment will be described with reference to Fig. 1.
[0011] An information processing system 1 shown in Fig. 1 is a system for searching for necessary logs from logs stored in image forming apparatuses 20a and 20b using a pattern file set by a server 10, and collecting the logs on the server 10 side. As shown in Fig. 1, the information processing system 1 includes a server 10 and image forming apparatuses 20a and 20b. The server 10 and the image forming apparatuses 20a and 20b communicate with each other via a network N. The network N is, for example, a network such as a LAN (Local Area Network) or the Internet, and may include a wired network or a wireless network.
[0012] The server 10 is an information processing device that manages and stores pattern files for searching for necessary logs from logs (e.g., operation logs and behavior logs, etc.) stored in the image forming apparatuses 20a and 20b, and provides the pattern files to the image forming apparatuses 20a and 20b. Here, the operation log is a log showing the history of various operations performed on the image forming apparatuses 20a and 20b, such as login operations, logout operations, setting operations, and operations to delete stored files. The behavior log is a log showing the history of various operations, such as the contents of stack traces and system messages when an error or warning occurs in the operation of the image forming apparatuses 20a and 20b, and is a log used for monitoring the image forming apparatuses 20a and 20b, or for debugging by designers. Although the operation log (an example of a device log, the first log) and the behavior log (an example of a device log, the second log) have been mentioned as examples of logs stored in the image forming devices 20a and 20b, the logs are not limited to these, and any log (device log) related to the image forming devices 20a and 20b may be used, such as a log that records errors that occur during processing of a system, application, etc.
[0013] The image forming apparatuses 20a and 20b are apparatuses that execute print jobs to form images. The image forming apparatuses 20a and 20b are, for example, MFPs (Multifunction Peripherals) or commercial printers. Here, an MFP is an image forming apparatus that has at least two of the following functions: copy function, printer function, scanner function, and fax function. Furthermore, the image forming apparatuses 20a and 20b store the history of various operations as an operation log when they occur, and store the history of various operations as an operation log when they occur.
[0014] The image forming devices 20a and 20b are examples of electronic devices, and the electronic device that stores the log is not limited to the image forming device, and may be, for example, an image processing device, a projector device, a PC (Personal Computer), a smartphone, etc., but in this embodiment, an image forming device will be described as an example of an electronic device. Also, in FIG. 1, an example is shown in which the information processing system 1 includes two image forming devices 20a and 20b, but the number of image forming devices is not limited. Also, when the image forming devices 20a and 20b are used to indicate any image forming device or when they are collectively referred to, they will be simply referred to as "image forming device 20".
[0015] (Hardware configuration of image forming device) Fig. 2 is a diagram showing an example of hardware of an image forming apparatus according to an embodiment. The hardware configuration of an image forming apparatus 20 according to the present embodiment will be described with reference to Fig. 2. Note that in Fig. 2, the image forming apparatus 20 will be described as an MFP.
[0016] As shown in FIG. 2, the image forming apparatus 20 includes a controller 910, a short-range communication circuit 920, an engine control unit 930, an operation panel 940, and a network I / F 950.
[0017] The controller 910 includes a CPU (Central Processing Unit) 901, which is the main part of the computer, a MEM-P (system memory) 902, an NB (north bridge) 903, an SB (south bridge) 904, an ASIC (Application Specific Integrated Circuit) 906, a MEM-C (local memory) 907, an HDD (Hard Disk Drive) controller 908, and an HD 909. Of these, the NB 903 and the ASIC 906 are connected by an AGP (Accelerated Graphics Port) bus 921.
[0018] The CPU 901 is a calculation device that performs overall control of the image forming apparatus 20. The NB 903 is a bridge for connecting the CPU 901 with the MEM-P 902, the SB 904, and the AGP bus 921, and includes a memory controller that controls reading and writing to the MEM-P 902, a PCI (Peripheral Component Interconnect) master, and an AGP target.
[0019] The MEM-P902 includes a ROM902a which is a memory for storing programs and data for implementing the various functions of the controller 910, and a RAM902b which is used for developing the programs and data and as a drawing memory during memory printing, etc. The programs stored in the RAM902b may be configured to be provided by being recorded in an installable or executable format on a computer-readable recording medium such as a CD-ROM (Compact Disc Read Only Memory), a CD-R (Compact Disc Recordable), or a DVD.
[0020] The SB904 is a bridge for connecting the NB903 with a PCI device, a peripheral device, and the like. The ASIC906 is an IC (Integrated Circuit) for image processing purposes having hardware elements for image processing, and plays the role of a bridge connecting the AGP bus 921, the PCI bus 922, the HDD controller 908, and the MEM-C907. The ASIC906 includes a PCI target and an AGP master, an arbiter (ARB) that is the core of the ASIC906, a memory controller that controls the MEM-C907, a plurality of DMACs (Direct Memory Access Controllers) that rotate image data using hardware logic, and a PCI unit that transfers data between the scanner unit 931 and the printer unit 932 via the PCI bus 922. A Universal Serial Bus (USB) interface or an Institute of Electrical and Electronics Engineers 1394 (IEEE1394) interface may be connected to the ASIC906.
[0021] The MEM-C 907 is a local memory used as a copy image buffer and a code buffer. The HDD controller 908 is a controller that controls reading and writing of data from and to the HD 909 under the control of the CPU 901. The HD 909 is a storage for storing image data, font data used during printing, and forms. The HDD controller 908 and the HD 909 may be SSDs (Solid State Drives).
[0022] The AGP bus 921 is a bus interface for a graphics accelerator card proposed to speed up graphic processing, and by directly accessing the MEM-P 902 at high throughput, the graphics accelerator card can be made faster.
[0023] The short-range communication circuit 920 is a communication circuit such as NFC (Near Field Communication) or Bluetooth (registered trademark). The short-range communication circuit 920 is electrically connected to the ASIC 906 via a PCI bus 922. An antenna 920a for wireless communication is connected to the short-range communication circuit 920.
[0024] The engine control unit 930 includes a scanner unit 931 and a printer unit 932. The scanner unit 931 and the printer unit 932 include image processing functions such as error diffusion or gamma conversion.
[0025] The operation panel 940 is equipped with a panel display unit 940a (display device) such as a touch panel that displays current setting values or a selection screen, etc. and accepts input from the user, and hard keys 940b consisting of a numeric keypad that accepts setting values for image formation conditions such as density setting conditions, and a start key that accepts a copy start instruction.
[0026] The image forming apparatus 20 can successively switch among the document box function, copy function, printer function, and fax function by using the application switching key on the operation panel 940. When the document box function is selected, the document box mode is selected, when the copy function is selected, the copy mode is selected, when the printer function is selected, the printer mode is selected, and when the fax function is selected, the fax mode is selected.
[0027] The network I / F 950 is an interface for data communication via a network, and is an interface capable of communication conforming to, for example, Ethernet (registered trademark), TCP (Transmission Control Protocol) / IP (Internet Protocol), etc. The network I / F 950 is electrically connected to the ASIC 906 via the PCI bus 922.
[0028] Note that the hardware configuration of the information processing device constituting the image forming apparatus 20 shown in FIG. 2 is merely an example, and does not need to include all of the components shown in FIG. 2, or may include other components.
[0029] (Server hardware configuration) 3 is a diagram showing an example of the hardware of the server according to the embodiment. The hardware configuration of the server 10 according to the embodiment will be described with reference to FIG.
[0030] 3, the server 10 includes a CPU 501, a ROM 502, a RAM 503, a HD 504, a HDD controller 505, a display 506, an external device connection I / F 508, a network I / F 509, a keyboard 511, a pointing device 512, a DVD-RW (Digital Versatile Disk Rewritable) drive 514, and a media I / F 516. Each of these devices is connected by a bus line 510 such as an address bus and a data bus so as to enable data communication.
[0031] The CPU 501 is a computing device that controls the overall operation of the server 10. The ROM 502 is a non-volatile storage device that stores programs, such as an IPL (Initial Program Loader), used to drive the CPU 501. The RAM 503 is a volatile storage device used as a work area for the CPU 501.
[0032] The HD 504 is a non-volatile auxiliary storage device that stores various data such as programs. The HDD controller 505 is a controller that controls reading and writing of various data from and to the HD 504 under the control of the CPU 501. The HD 504 and the HDD controller 505 may be SSDs or the like.
[0033] The display 506 is a display device that displays various information such as a cursor, a menu, a window, characters, or an image. The external device connection I / F 508 is an interface for connecting various external devices. In this case, an example of the external device is a USB (Universal Serial Bus) memory. The network I / F 509 is an interface for data communication via a network N, and is an interface capable of communication conforming to, for example, Ethernet, TCP (Transmission Control Protocol) / IP (Internet Protocol), etc.
[0034] The keyboard 511 is an input device equipped with a plurality of keys for inputting characters, numerical values, various instructions, etc. The pointing device 512 is an input device such as a mouse for selecting and executing various instructions, selecting a processing target, moving a cursor, etc.
[0035] The DVD-RW drive 514 is a device that controls reading and writing of various data from and to a DVD 513 such as a DVD-R (Digital Versatile Disk Recordable) or DVD-RW as an example of a removable recording medium. The media I / F 516 is an interface that controls reading and writing (storing) of data from and to a medium 515 such as a flash memory.
[0036] It should be noted that the hardware configuration of server 10 shown in FIG. 3 is merely an example, and it is not necessary for server 10 to include all of the components shown in FIG. 3, or server 10 may include other components.
[0037] (Configuration and operation of functional blocks of information processing systems) 4 is a diagram showing an example of the configuration of functional blocks of the information processing system according to the embodiment. The configuration and operation of the functional blocks of the information processing system 1 according to the embodiment will be described with reference to FIG.
[0038] 4, the image forming apparatus 20 includes a communication unit 201, a first log storage unit 202 (an example of a storage unit), a second log storage unit 203 (an example of a storage unit), a pattern acquisition unit 204 (an acquisition unit), a log search unit 205 (a search unit), a log transmission unit 206 (a transmission unit), an operation input unit 207, and a display control unit 208. In addition, the image forming apparatus 20 will be described as having applications A to C and a system program D installed therein, as shown in FIG.
[0039] Applications A to C are various applications that provide functions such as a copy function, a printer function, a scanner function, and a fax function. Note that the applications installed in image forming apparatus 20 are not limited to the three applications A to C. System program D is a program for controlling the operations of applications A to C.
[0040] The communication unit 201 is a functional unit that performs data communication with the server 10 via the network N. The communication unit 201 is realized by the network I / F 950 and the CPU 901 shown in FIG.
[0041] The first log storage unit 202 is a functional unit that stores, when an event such as various operations by a user occurs on the applications A to C and the system program D, as an operation log by the applications A to C and the system program D. The first log storage unit 202 is realized by the HD 909 shown in FIG.
[0042] The second log storage unit 203 is a functional unit that stores, when various operational events based on the functions of the applications A to C and the system program D occur, as an operation log by the applications A to C and the system program D. The second log storage unit 203 is realized by the HD 909 shown in FIG.
[0043] Note that not all of the applications A to C and the system program D are limited to saving both the operation log and the operation log as logs, and it is assumed that at least one of the operation log and the operation log may be saved as a log. Also, not all of the programs such as applications installed in the image forming apparatus 20 need to save logs, but the applications A to C and the system program D shown in Fig. 4 are listed as examples of installed programs that save logs.
[0044] In addition, the first log storage unit 202 and the second log storage unit 203 are distinguished as separate functional units, but they are distinguished conceptually and are not intended to be physically distinct. Therefore, conceptually, they may be configured as one storage unit.
[0045] The pattern acquisition unit 204 is a functional unit that acquires a pattern file managed by the server 10 via the communication unit 201. The pattern acquisition unit 204 is realized, for example, by the CPU 901 shown in FIG.
[0046] The log search unit 205 is a functional unit that searches the operation logs stored in the first log storage unit 202 and the action logs stored in the second log storage unit 203 for a specific character string or the like that matches a pattern defined in a pattern file acquired by the pattern acquisition unit 204. When only one of the operation logs and the action logs is stored, the log search unit 205 executes a search on the one of the logs. The log search unit 205 is realized, for example, by the CPU 901 shown in FIG. 2 executing a program.
[0047] The log transmission unit 206 is a functional unit that transmits a specific character string or the like obtained by the search of at least one of the operation log and the behavior log by the log search unit 205 as a log that needs to be managed by the server 10 (hereinafter, may be referred to as an extracted log) to the server 10 via the communication unit 201. The log transmission unit 206 is realized, for example, by the CPU 901 shown in FIG. 2 executing a program.
[0048] The operation input unit 207 is a functional unit that accepts operation input by a user (including an administrator, a designer, etc.) The operation input unit 207 is realized by an operation panel 940 shown in FIG.
[0049] The display control unit 208 is a functional unit that controls the display operation of the panel display unit 940a of the operation panel 940. As will be described later, the display control unit 208 displays a screen for setting the contents of a pattern file managed by the server 10, and transmits setting information set on the screen to the server 10 via the communication unit 201. The display control unit 208 is realized, for example, by a program being executed by the CPU 901 shown in FIG.
[0050] At least some of the pattern acquiring unit 204, the log searching unit 205, the log transmitting unit 206, and the display control unit 208 may be realized by a hardware circuit such as a field-programmable gate array (FPGA) or an ASIC.
[0051] Moreover, each functional unit of the image forming apparatus 20 shown in Fig. 4 is shown conceptually, and is not limited to such a configuration. For example, the multiple functional units illustrated as independent functional units in the image forming apparatus 20 shown in Fig. 4 may be configured as one functional unit. On the other hand, the function of one functional unit in the image forming apparatus 20 shown in Fig. 4 may be divided into multiple functions and configured as multiple functional units.
[0052] As shown in FIG. 4, the server 10 includes a communication unit 101, a UI (User Interface) providing unit 102, a setting unit 103, a pattern storage unit 104 (storage unit), a pattern transmission unit 105, a log acquisition unit 106, and a log accumulation unit 107.
[0053] The communication unit 101 is a functional unit that performs data communication with the image forming apparatus 20 via the network N. The communication unit 101 is realized by the network I / F 509 and the CPU 501 that executes a program shown in FIG.
[0054] The UI providing unit 102 is a functional unit that provides a Web page of a screen for setting the contents of a pattern file (described later) to the image forming apparatus 20 via the communication unit 101. That is, in this case, the server 10 functions as a Web server. The UI providing unit 102 is realized, for example, by the CPU 501 shown in FIG. 3 executing a program.
[0055] The setting unit 103 is a functional unit that generates or updates a pattern file based on setting information input on a screen for setting the contents of the pattern file provided to the image forming apparatus 20 by the UI providing unit 102. The setting unit 103 stores the updated pattern file in the pattern storage unit 104. The setting unit 103 is realized, for example, by the CPU 501 shown in FIG. 3 executing a program.
[0056] The pattern storage unit 104 is a functional unit that stores pattern files. The pattern storage unit 104 is realized by the HD 504 shown in FIG.
[0057] The pattern transmission unit 105 is a functional unit that transmits a pattern file stored in the pattern storage unit 104 to the image forming apparatus 20 via the communication unit 101 in response to a download request from the image forming apparatus 20. The pattern transmission unit 105 is realized, for example, by a program being executed by the CPU 501 shown in FIG.
[0058] The log acquisition unit 106 is a functional unit that acquires the extracted log extracted by the log search unit 205 and transmitted by the log transmission unit 206 via the communication unit 101. The log acquisition unit 106 accumulates the acquired extracted log in the log accumulation unit 107. The log acquisition unit 106 is realized, for example, by a program being executed by the CPU 501 shown in FIG.
[0059] The log accumulation unit 107 is a functional unit that accumulates the extracted logs acquired by the log acquisition unit 106. The log accumulation unit 107 is realized by the HD 504 shown in FIG.
[0060] At least some of the UI providing unit 102, the setting unit 103, the pattern transmitting unit 105, and the log acquiring unit 106 may be realized by a hardware circuit such as an FPGA or an ASIC.
[0061] Moreover, each functional unit of the server 10 shown in Fig. 4 is shown conceptually, and is not limited to such a configuration. For example, the multiple functional units shown as independent functional units in the server 10 shown in Fig. 4 may be configured as one functional unit. On the other hand, the function of one functional unit in the server 10 shown in Fig. 4 may be divided into multiple functions and configured as multiple functional units.
[0062] (Searching the operation log) Fig. 5 is a diagram showing an example of an operation log stored in the image forming apparatus according to the embodiment. Fig. 6 is a diagram showing an example of a pattern file for searching the operation log. Fig. 7 is a diagram explaining a search operation for the operation log of the image forming apparatus according to the embodiment. Searching for the operation log stored in the image forming apparatus 20 according to the present embodiment will be explained with reference to Figs. 5 to 7.
[0063] First, an example of the operation log shown in FIG. 5 will be described. As shown in FIG. 5, the operation log is configured by associating, for example, the date and time when an event such as various operations occurred, a log type indicating the type of operation, a log level indicating the level of detail of the log activity, the result of the operation, and detailed information regarding the operation. As shown in FIG. 5, the detailed information includes, for example, a user ID identifying the subject of the operation, a target of the operation, a setting value input in the operation, and a document name of the file that is the target of the operation. The operation log is stored in the first log storage unit 202 as a file in, for example, a CSV (Comma Separated Values) format, and if there is no information, it is stored as a blank field. Note that, if an upper limit capacity is specified for the operation log, it is managed in a FIFO (First In First Out) format in which the oldest log is deleted.
[0064] It should be noted that the contents of the operation log shown in FIG. 5 are merely an example, and it is not necessary for the operation log to include all of the contents shown in FIG. 5, and it may include contents other than these contents.
[0065] Next, an example of a pattern file for searching the operation log shown in Fig. 6 will be described. As shown in Fig. 6, the pattern file for searching the operation log is written in, for example, XML (Extensible Markup Language) format. In addition, the pattern file is written for each item to be searched for in the operation log. <saerch>Specify with tags, <condition>Specify search criteria by tags, <and>By tag <condition>The conditions specified by the tag are treated as AND conditions, <or>By tag <condition>The conditions specified by the tag are specified as OR conditions. <condition>The tag attribute "target" specifies the column to be searched in the operation log, and the attribute "pattern" specifies the string to search for. Note that regular expressions may be used for the string to be searched. Also, the tags and attributes used in the pattern file shown in Figure 6 are merely examples, and other tags or attributes may be used.
[0066] 6 includes a description section 1001 and a description section 1002. The description section 1001 is a search pattern for searching the operation log for a line in which the result (Result) is "Failed" and the log type (LogType) is "Stored File .+". In "Stored File .+", "." is a regular expression indicating any character, and "+" is a regular expression indicating that the immediately preceding character occurs one or more times in succession. The description section 1002 is a search pattern for searching the operation log for a line in which the log level (LogLevel) is "Error" or the log level (LogLevel) is "Warning".
[0067] The log search unit 205 uses a pattern file such as that shown in FIG. 6 acquired by the pattern acquisition unit 204 to search the operation log stored in the first log storage unit 202 for lines that match the search conditions defined in the pattern file.
[0068] Next, a specific search operation for an operation log using a pattern file by the log search unit 205 will be described with reference to Fig. 7. The description section of the pattern file shown in Fig. 7(a) is the same as the description section 1001 shown in Fig. 6. In detail, as shown in Fig. 7(a), the description section 1001 includes a description section 1001a, a description section 1001b, and a description section 1001c.
[0069] The description section 1001b indicates that the result (Result) is "Failed" as a search condition for searching for a target log from the operation log shown in FIG. 7(b). The description section 1001c indicates that the log type (LogType) is "Stored File .+" as a search condition for searching for a target log from the operation log shown in FIG. 7(b). The description section 1001a indicates that the search condition indicated by the description section 1001b and the search condition indicated by the description section 1001c are AND conditions. As a result of searching the operation log based on the description section of the pattern file shown in FIG. 7(a) (the description section 1001 shown in FIG. 6), a line with the result (Result) being "Failed" and the log type (LogType) being "Stored File .+" is extracted as shown in FIG. 7(b). That is, as shown in Figure 7(b), a row is extracted in which the date and time (Time) is "2023-02-12 15:57:04", the log type (LogType) is "Stored File Deletion", the log level (LogLevel) is "Error", the result (Result) is "Failed", the user ID (UserId) is "0x000010", and the document name (DocumentName) is "R_SCAN0001".
[0070] (Searching the operation log) Fig. 8 is a diagram showing an example of an operation log stored in the image forming apparatus according to the embodiment. Fig. 9 is a diagram showing an example of a pattern file for searching the operation log. Fig. 10 is a diagram explaining a search operation for the operation log of the image forming apparatus according to the embodiment. Searching for the operation log stored in the image forming apparatus 20 according to the present embodiment will be explained with reference to Figs. 8 to 10.
[0071] First, an example of the operation log shown in Fig. 8 will be described. As shown in Fig. 8, the operation log is configured by associating, for example, the date and time when an event such as various operations occurred, a log level indicating the level of detail of the log activity, a tag name which is the name of the application that recorded the log, and a message indicating the operation content. The operation log is stored in the second log storage unit 203 as a file in, for example, CSV format, and if there is no information, it is stored as a blank field. Note that, if an upper limit capacity is specified for the operation log, it is managed in a FIFO format in which the oldest log is deleted first.
[0072] It should be noted that the contents of the operation log shown in FIG. 8 are merely an example, and it is not necessary for the operation log to include all of the contents shown in FIG. 8, and it may include contents other than these contents.
[0073] Next, an example of a pattern file for searching the operation log shown in Fig. 9 will be described. As shown in the description section of the pattern file shown in Fig. 9, a regular expression may be used for the character string to be searched. Specifically, description section 1101 of the pattern file shown in Fig. 9 is a regular expression indicating an arbitrary date and time, and description section 1102 indicates an arbitrary message content.
[0074] Next, a specific search operation for an operation log using a pattern file by the log search unit 205 will be described with reference to Fig. 10. The pattern file shown in Fig. 10(a) includes a description portion 1111a, a description portion 1111b, and a description portion 1111c.
[0075] The description section 1111b indicates that the log level (LogLevel) is "E" as a search condition for searching for a target log from the operation log shown in FIG. 10(b). The description section 1111c indicates that the tag name (Tag) is "CopyApp" as a search condition for searching for a target log from the operation log shown in FIG. 10(b). The description section 1111a indicates that the search condition indicated by the description section 1111b and the search condition indicated by the description section 1111c are AND conditions. As a result of searching the operation log based on the description section of the pattern file shown in FIG. 10(a), a line with the log level (LogLevel) being "E" and the tag name (Tag) being "CopyApp" is extracted as shown in FIG. 10(b). That is, as shown in FIG. 10(b), a line with the date and time "09-13 23:56:41.911", the log level "E", the tag name "CopyApp", and the message content "Error! No Response, error id=10" is extracted.
[0076] (About the setting screen for setting the logs to be acquired) Fig. 11 is a diagram showing an example of an acquisition log selection setting screen. Fig. 12 is a diagram showing an example of an acquisition log detail setting screen. The screen for setting logs to be acquired (extracted) from the operation log and the behavior log will be described with reference to Figs. 11 and 12.
[0077] First, an acquisition log selection setting screen 2000 (an example of a setting screen) shown in Fig. 11 will be described. The acquisition log selection setting screen 2000 shown in Fig. 11 is a screen for setting what kind of logs are to be acquired from the operation logs and behavior logs stored in the image forming apparatus 20.
[0078] When a user operates operation input unit 207 via a browser displayed on panel display unit 940a of image forming apparatus 20, display control unit 208 transmits an acquisition request for screen information of acquisition log selection setting screen 2000 configured as a Web page or the like to server 10 via communication unit 201. When UI providing unit 102 of server 10 receives the acquisition request via communication unit 101, it transmits screen information (Web page) of acquisition log selection setting screen 2000 to image forming apparatus 20 via communication unit 101. As a result, display control unit 208 of image forming apparatus 20 displays acquisition log selection setting screen 2000 on the browser.
[0079] As shown in FIG. 11, the acquisition log selection setting screen 2000 includes a URL (Uniform Resource Locator) display area 2001, an operation log selection area 2002, an operation log selection area 2003, an OK button 2004, and a cancel button 2005.
[0080] The URL display area 2001 is a URL corresponding to the Web page of the acquired log selection setting screen 2000 .
[0081] The operation log selection area 2002 is an area of a group of check boxes for selecting which operations to acquire from the operation log. In the example shown in Fig. 11, it is possible to select to acquire logs for various operations such as "login", "logout", "delete stored documents", "unauthorized copying", "firmware update", "password change", and "administrator change". Note that the selection items shown in Fig. 11 are merely an example and do not need to include all of these, and different selection items may be included.
[0082] The operation log selection area 2003 is an area of a group of check boxes for selecting which operation logs are to be acquired from the operation log. In the example shown in Fig. 11, it is possible to select to acquire logs for various operations such as "copy", "stored document print", "scanner: send", "scanner: document storage", and "printer: print". Note that the selection items shown in Fig. 11 are merely an example and do not need to include all of these, and different selection items may be included.
[0083] The OK button 2004 is a button for transmitting the contents selected and set in the operation log selection area 2002 and the action log selection area 2003 to the server 10 as setting information. When the OK button 2004 is pressed, the display control unit 208 transmits the setting information to the server 10 via the communication unit 201. When the setting unit 103 of the server 10 receives the setting information via the communication unit 101, it creates a pattern file based on the setting information, or, if a pattern file already exists, updates it with the contents of the setting information.
[0084] The cancel button 2005 is a button for canceling the contents selected in the operation log selection area 2002 and the action log selection area 2003 .
[0085] Next, an acquired log details setting screen 2100 (an example of a setting screen) shown in Fig. 12 will be described. The acquired log details setting screen 2100 shown in Fig. 12 is a screen for making detailed settings regarding logs to be acquired from operation logs stored in the image forming apparatus 20.
[0086] When a user operates the operation input unit 207 via a browser displayed on the panel display unit 940a of the image forming apparatus 20, the display control unit 208 transmits an acquisition request for screen information of an acquisition log detail setting screen 2100 configured of a Web page or the like to the server 10 via the communication unit 201. When the UI providing unit 102 of the server 10 receives the acquisition request via the communication unit 101, it transmits the screen information (Web page) of the acquisition log detail setting screen 2100 to the image forming apparatus 20 via the communication unit 101. As a result, the display control unit 208 of the image forming apparatus 20 displays the acquisition log detail setting screen 2100 on the browser.
[0087] As shown in FIG. 12, the acquisition log detail setting screen 2100 includes a URL display area 2101, a time specification selection checkbox 2102, a time setting area 2103, a result specification checkbox 2104, a result selection input area 2105, a document name specification checkbox 2106, a document name input area 2107, an OK button 2108, and a cancel button 2109.
[0088] The URL display area 2101 is a URL corresponding to the Web page of the acquired log details setting screen 2100 .
[0089] The time specification selection checkbox 2102 is a checkbox for selecting the specification of the time for acquiring a specific log from the operation log. The time setting area 2103 is an area for setting and inputting the start time (start date and time) and end time (end date and time) for acquiring a specific log from the operation log. Note that the time setting area 2103 may be set and input when the time specification selection checkbox 2102 is checked.
[0090] The result specification check box 2104 is a check box for specifying acquisition of a log that is a desired result from the operation log. The result selection input area 2105 is an area for selecting and inputting a result in order to acquire a log that is a desired result from the operation log. Note that the result selection input area 2105 may be configured to be selectable and inputtable when the result specification check box 2104 is checked.
[0091] The document name specification checkbox 2106 is an area for specifying acquisition of a log including a desired document name from the operation log. The document name input area 2107 is an area for setting and inputting a desired document name in order to acquire a log including the document name from the operation log. Note that the document name input area 2107 may be set and input when the document name specification checkbox 2106 is checked.
[0092] The OK button 2108 is a button for transmitting the contents input in the time setting area 2103, the result selection input area 2105, and the document name input area 2107 as setting information to the server 10. When the OK button 2108 is pressed, the display control unit 208 transmits the setting information to the server 10 via the communication unit 201. When the setting unit 103 of the server 10 receives the setting information via the communication unit 101, it creates a pattern file based on the setting information, or, if a pattern file already exists, updates it with the contents of the setting information.
[0093] The cancel button 2109 is a button for canceling the contents input in the time setting area 2103 , the result selection input area 2105 , and the document name input area 2107 .
[0094] The setting contents in the acquired log selection setting screen 2000 and the acquired log detail setting screen 2100 are merely examples, and other contents may be set. The acquired log detail setting screen 2100 shown in Fig. 12 is a screen for making detailed settings for logs acquired from operation logs stored in the image forming apparatus 20, but a setting screen that allows detailed settings for logs acquired from operation logs may be provided. The acquired log selection setting screen 2000 and the acquired log detail setting screen 2100 may set a pattern file that is commonly applied to a plurality of image forming apparatuses 20, or may set a pattern file for each image forming apparatus 20.
[0095] In addition, the acquired log selection setting screen 2000 and the acquired log detail setting screen 2100 have been described as being displayed and set on the image forming device 20, but this is not limited to the above, and these setting screens may be displayed and settings may be input on an information processing device other than the image forming device 20, such as a PC, that is capable of communicating with the server 10.
[0096] (Flow of log search operation in image forming device) 13 is a flowchart showing an example of the flow of a log search operation in the image forming apparatus 20 according to the embodiment, with reference to FIG.
[0097] <Step S11> The image forming apparatus 20 executes the process from step S12 onward at regular time intervals. After the regular time has elapsed, the process proceeds to step S12.
[0098] <Step S12> The pattern acquisition unit 204 of the image forming apparatus 20 checks whether the pattern file managed by the image forming apparatus 20 has been updated. For example, the pattern acquisition unit 204 may transmit a pattern file update check request to the server 10, and check whether the pattern file has been updated based on a response to the update check request from the server 10. Then, the process proceeds to step S13.
[0099] <Step S13> If the pattern file has been updated (step S13: Yes), the process proceeds to step S14, and if the pattern file has not been updated (step S13: No), the process proceeds to step S15.
[0100] <Step S14> The pattern acquisition unit 204 acquires (downloads) the updated pattern file managed by the server 10 via the communication unit 201. Then, the process proceeds to step S15.
[0101] <Step S15> The log search unit 205 of the image forming apparatus 20 searches the operation log stored in the first log storage unit 202 and the operation log stored in the second log storage unit 203 for a specific character string or the like that matches a pattern defined in the pattern file acquired by the pattern acquisition unit 204. If only one of the operation log and the operation log is stored, the log search unit 205 executes a search on that one log. If the pattern file has not been updated in step S13, the pattern file already acquired by the pattern acquisition unit 204 may be used for the search by the log search unit 205. Then, the process proceeds to step S16.
[0102] <Step S16> The log transmission unit 206 of the image forming apparatus 20 transmits, as an extracted log, a specific character string or the like obtained by the search of at least one of the operation log and the behavior log by the log search unit 205 to the server 10 via the communication unit 201. This ends the log search operation by the image forming apparatus 20.
[0103] As described above, in the image forming apparatus 20 according to this embodiment, the storage units (e.g., first log storage unit 202, second log storage unit 203) store device logs related to the image forming apparatus 20, the pattern acquisition unit 204 acquires a pattern file that specifies searching for a specific log from the server 10, the log search unit 205 searches the device logs for logs that match the pattern file acquired by the pattern acquisition unit 204, and the log transmission unit 206 transmits the logs obtained by the search by the log search unit 205 to the server 10. This makes it possible to transmit necessary logs to the server 10 without changing the program of an electronic device such as the image forming apparatus 20.
[0104] In the image forming apparatus 20 according to the present embodiment, the display control unit 208 displays a setting screen (e.g., an acquired log selection setting screen 2000, an acquired log detail setting screen 2100, etc.) on the panel display unit 940a, which allows the content of the pattern file to be set, and the pattern file can be set on the setting screen. This makes it possible to set a search for a desired log to be managed by the server 10 as necessary, without changing the program of an electronic device such as the image forming apparatus 20.
[0105] In the above-described embodiment, when at least one of the functional units of the image forming apparatus 20 is realized by executing a program, the program is provided by being pre-installed in a ROM or the like. In the above-described embodiment, the program executed by the image forming apparatus 20 may be provided by being recorded in a computer-readable recording medium such as a CD-ROM (Compact Disc Read Only Memory), a flexible disk (FD), a CD-R (Compact Disk-Recordable), or a DVD (Digital Versatile Disc) in an installable or executable format. In the above-described embodiment, the program executed by the image forming apparatus 20 may be provided by being stored on a computer connected to a network such as the Internet and downloaded via the network. In the above-described embodiment, the program executed by the image forming apparatus 20 may be provided or distributed via a network such as the Internet. Furthermore, in the above-described embodiment, the program executed by the image forming apparatus 20 has a modular configuration including at least any one of the above-described functional units, and in terms of actual hardware, the CPU 901 reads out and executes the program from the above-described storage device (e.g., MEM-P 902, MEM-C 907, HD 909, etc.), so that each of the above-described functional units is loaded onto the main storage device and generated.
[0106] The aspects of the present invention are as follows. <1> An electronic device, a storage unit for storing a device log relating to the electronic device; an acquisition unit that acquires, from a server, a pattern file that specifies searching for a specific log; a search unit that searches the device log for a log that matches the pattern file acquired by the acquisition unit; a transmission unit that transmits the log obtained by the search by the search unit to the server; It is an electronic device equipped with <2> a display control unit that displays a setting screen on a display device, the setting screen enabling the content of the pattern file to be set; The pattern file is configurable on the setting screen. <1> The electronic device is as described above. <3> The device log includes a first log indicating a history of various operations performed on the electronic device, and a second log indicating a history of various operations in the electronic device. <2> The electronic device is as described above. <4> The display control unit causes the display device to display the setting screen that enables a user to set what kind of operation log on the electronic device is to be searched for from the first log stored in the storage unit. <3> The electronic device is as described above. <5> The display control unit causes the display device to display the setting screen that enables a user to set what kind of operation of the electronic device is to be searched for from the second log stored in the storage unit. <3> The electronic device is as described above. <6> The pattern file is generated for each electronic device. <1> ~ <5> 1 is an electronic device according to any one of claims 1 to 9. <7> The acquisition unit is Check whether the pattern file managed by the server has been updated; If the pattern file is updated, the updated pattern file is obtained from the server. <1> ~ <5> 1 is an electronic device according to any one of claims 1 to 9. <8> An information processing system including an electronic device and a server, The server includes a storage unit that stores a pattern file that specifies searching for a specific log, The electronic device includes: a storage unit for storing a device log relating to the electronic device; an acquisition unit that acquires the pattern file from a server; a search unit that searches the device log for a log that matches the pattern file acquired by the acquisition unit; a transmission unit that transmits the log obtained by the search by the search unit to the server; It is an information processing system equipped with the above. <9> the electronic device further includes a display control unit that causes a display device to display a setting screen that enables the content of the pattern file to be set; The server further includes a generating unit that generates or updates the pattern file based on setting information input on the setting screen of the electronic device. <8> The information processing system is as described above. <10> A log management method for an electronic device, comprising: a storage step of storing a device log relating to the electronic device in a storage unit; An acquisition step of acquiring a pattern file that specifies searching for a specific log from a server; a searching step of searching the device log for a log that matches the acquired pattern file; a transmitting step of transmitting the log obtained by the search to the server; The log management method includes the steps of: <11> On the computer, a storage step of storing a device log relating to the electronic device in a storage unit; An acquisition step of acquiring a pattern file that specifies searching for a specific log from a server; a searching step of searching the device log for a log that matches the acquired pattern file; a transmitting step of transmitting the log obtained by the search to the server; This is a program for executing the above. [Explanation of symbols]
[0107] 1. Information Processing Systems 10 Server 20, 20a, 20b Image forming device 101 Communications Department 102 UI provision department 103 Setting section 104 Pattern memory section 105 Pattern transmission unit 106 Log Acquisition Unit 107 Log storage unit 201 Communications Department 202 First Log Storage Unit 203 Second Log Storage Unit 204 Pattern Acquisition Unit 205 Log Search Unit 206 Log transmission unit 207 Operation input section 208 Display control section 501 CPU 502 ROM 503 RAM 504 HD 505 HDD Controller 506 Display 508 External device connection interface 509 Network Interface 510 Bus Line 511 Keyboard 512 Pointing Device 513 DVD 514 DVD-RW drive 515 Media 516 Media Interface 901 CPU 902 MEM-P 902a ROM 902b RAM 903 NB 904SB 906 ASIC 907 MEM-C 908 HDD Controller 909 HD 910 Controller 920 Near field communication circuit 920a Antenna 921 AGP Bus 922 PCI bus 930 Engine control unit 931 Scanner section 932 Printer section 940 Operation Panel 940a Panel display 940b Hard Key 950 Network Interface 1001, 1001a~1001c Description 1002 Description 1101, 1102 Description 1111a~1111c Description section 2000 Log selection setting screen 2001 URL display area 2002 Operation log selection area 2003 Operation log selection area 2004 OK button 2005 Cancel button 2100 Detailed log setting screen 2101 URL display area 2102 Time selection checkbox 2103 Time setting area 2104 Result specification checkbox 2105 Result selection input area 2106 Document name specification check box 2107 Document name input area 2108 OK button 2109 Cancel button A-C Applications D System Program N Network [Prior art documents] [Patent documents]
[0108] [Patent Document 1] Patent Publication No. 2022-015778< / condition> < / condition> < / or> < / condition> < / and> < / condition> < / saerch>
Claims
1. An electronic device, a storage unit for storing a device log relating to the electronic device; an acquisition unit that acquires, from a server, a pattern file that specifies searching for a specific log; a search unit that searches the device log for a log that matches the pattern file acquired by the acquisition unit; a transmission unit that transmits the log obtained by the search by the search unit to the server; Electronic equipment equipped with
2. a display control unit that displays a setting screen on a display device, the setting screen enabling the content of the pattern file to be set; The electronic device according to claim 1 , wherein the pattern file can be set on the setting screen.
3. The electronic device according to claim 2 , wherein the device log includes a first log indicating a history of various operations performed on the electronic device, and a second log indicating a history of various operations in the electronic device.
4. The electronic device according to claim 3 , wherein the display control unit causes the display device to display the setting screen that enables the user to set what kind of operation logs for the electronic device are to be searched for from the first log stored in the storage unit.
5. The electronic device according to claim 3 , wherein the display control unit causes the display device to display the setting screen that enables the user to set what kind of operation of the electronic device to search for from the second log stored in the storage unit.
6. 6. The electronic device according to claim 1, wherein the pattern file is generated for each electronic device.
7. The acquisition unit is Check whether the pattern file managed by the server has been updated; 6. The electronic device according to claim 1, further comprising: if the pattern file is updated, the electronic device acquires the updated pattern file from the server.
8. An information processing system including an electronic device and a server, The server includes a storage unit that stores a pattern file that specifies searching for a specific log, The electronic device includes: a storage unit for storing a device log relating to the electronic device; an acquisition unit that acquires the pattern file from a server; a search unit that searches the device log for a log that matches the pattern file acquired by the acquisition unit; a transmission unit that transmits the log obtained by the search by the search unit to the server; An information processing system comprising:
9. the electronic device further includes a display control unit that causes a display device to display a setting screen that allows the content of the pattern file to be set; The information processing system according to claim 8 , wherein the server further comprises a generating unit that generates or updates the pattern file based on setting information input on the setting screen of the electronic device.
10. A log management method for an electronic device, comprising: a storage step of storing a device log relating to the electronic device in a storage unit; An acquisition step of acquiring a pattern file that specifies searching for a specific log from a server; a searching step of searching the device log for a log that matches the acquired pattern file; a transmitting step of transmitting the log obtained by the search to the server; The log management method includes the steps of:
11. On the computer, a storage step of storing a device log relating to the electronic device in a storage unit; An acquisition step of acquiring a pattern file that specifies searching for a specific log from a server; a searching step of searching the device log for a log that matches the acquired pattern file; a transmitting step of transmitting the log obtained by the search to the server; A program for executing.
Citation Information
Patent Citations
Operation characteristic acquisition device, operation characteristic acquisition method, and program
JP2022015778A
