CN111736978B - System diary data classification processing method and device and intelligent electronic equipment - Google Patents

System diary data classification processing method and device and intelligent electronic equipment Download PDF

Info

Publication number
CN111736978B
CN111736978B CN202010741291.5A CN202010741291A CN111736978B CN 111736978 B CN111736978 B CN 111736978B CN 202010741291 A CN202010741291 A CN 202010741291A CN 111736978 B CN111736978 B CN 111736978B
Authority
CN
China
Prior art keywords
log
target
information
thread
diary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010741291.5A
Other languages
Chinese (zh)
Other versions
CN111736978A (en
Inventor
文建全
王先知
黎杰
毛定旺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Weikang Information Technology Co ltd
Original Assignee
Changsha Weikang Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changsha Weikang Information Technology Co ltd filed Critical Changsha Weikang Information Technology Co ltd
Priority to CN202010741291.5A priority Critical patent/CN111736978B/en
Publication of CN111736978A publication Critical patent/CN111736978A/en
Application granted granted Critical
Publication of CN111736978B publication Critical patent/CN111736978B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification

Abstract

The invention relates to the technical field of data processing, in particular to a method and a device for classifying and processing system diary data and intelligent electronic equipment; the method comprises the steps of obtaining respective log records sent by each target device in a device cluster, storing and judging the received log records, obtaining target log texts from the log records of all the target devices if the log records are stored, extracting the corresponding log information in the log records according to the obtained target log texts, obtaining an event list according to the log information, further screening event identifications updated relative to the log records in the event list, and classifying the log thread information according to a preset classification method to obtain different types of log classification results. The invention can quickly and accurately classify and store the log information of different types of the system diary on the hospital platform so as to be convenient for accurately calling the system diary in the later period.

Description

System diary data classification processing method and device and intelligent electronic equipment
Technical Field
The invention relates to the technical field of data processing, in particular to a system diary data classification processing method and device and intelligent electronic equipment.
Background
The design goal of the medical association (corporate) body platform is to place the center of gravity of medical and health work on the health of common people in the security city (county). The platform design takes the target of a healthy Chinese as reference, the medical improvement target as support and the satisfaction of common people as basis, integrates medical resources in the city (county) area, realizes the maximization of resource sharing and innovates the medical insurance payment mode. Meanwhile, expert resources at the national level and the provincial and municipal level are introduced, and specific and advantageous subject construction is created according to the actual situation of the city (county) region, subjects with heads and special doctors are cultivated, the overall medical technical level in the city (county) region is improved, and the blood transfusion mechanism is changed into the hematopoiesis mechanism. Finally realizing the situation of internal treatment in big disease county (city), watching small disease nearby and preventing disease together. The system diary of the hospital association (co) body platform is a file for recording the operation records of hardware and software of the intelligent electronic device, and is usually stored in the system memory of the intelligent electronic device. The system diary can be used to monitor events occurring in the intelligent electronic device.
The system diary is gradually updated and accumulated along with the operation of the intelligent electronic equipment, along with the development of science and technology, the functions of the intelligent electronic equipment are more and more, the diary information categories of the system diary are gradually increased, and how to rapidly and accurately classify and store the diary information of different categories of the system diary so as to accurately acquire the system diary in the later period is a technical problem to be solved urgently at present.
Disclosure of Invention
In order to solve the technical problems in the related art, the invention provides a method and a device for classifying and processing system diary data and intelligent electronic equipment.
The invention provides a system diary data classification processing method, which is applied to a server and comprises the following steps:
acquiring respective log records sent by each target device included in the device cluster; the log record of each target device is obtained by the corresponding target device from the operation terminal corresponding to the target device, and the running state of the target device is adjusted and sent according to the obtained log record;
storing the received log records and judging whether the log records of all target devices included in the device cluster are stored or not;
if the log records of all the target devices included in the device cluster are stored, respectively sending the log records of all the target devices included in the device cluster to each target device included in the device cluster, so that each target device included in the device cluster obtains a target log text from the log records of all the target devices included in the device cluster;
extracting diary information in corresponding log records based on target log texts acquired by each target device from the log records of all target devices included in the device cluster, and acquiring an event list in a system log included in the diary information according to the diary information;
screening event identifiers updated relative to the log records in the event list, extracting log thread information of which error logs do not change along with the updating of the updated event identifiers in the log information according to the event identifiers, and classifying the log thread information according to a preset classification method to obtain log classification results of different types; the log thread information is used for starting a corresponding log thread to call a corresponding real-time log record from the log thread.
Optionally, extracting, based on a target log text obtained by each target device from log records of all target devices included in the device cluster, log information in a corresponding log record, specifically including:
acquiring log type identification information based on an equipment identification corresponding to each target equipment, and judging the log type identification information according to preset identification information to obtain a log recording track comprising a log recording time value and a log recording time value;
analyzing the log recording track based on the log recording time value, and mapping the log type identification information meeting the set recording condition to obtain the mapped log type identification information;
acquiring a target log text corresponding to the log type identification information based on the obtained log type identification information after mapping processing, and extracting a log text recording time point corresponding to the target log text;
determining a log text code based on the log recording time value and the log text recording time point, and extracting the corresponding log information in the log record according to the log text code.
Optionally, obtaining an event list in a system log included in the diary information according to the diary information specifically includes:
extracting a diary type label corresponding to the diary information;
determining an event attribute value of a tag event corresponding to the diary type tag, and judging whether the event attribute value is matched with a preset event attribute value;
if so, counting the total number of first events of the label events corresponding to the diary type label, and acquiring the configuration parameters and the total number of second events in the system log included in the diary information based on the total number of the first events;
and determining a corresponding relation between the total number of first events of the label events corresponding to the diary type label and the total number of second events in the system log based on the configuration parameters, and determining an event list in the system log according to the corresponding relation.
Optionally, the log thread information is classified according to a preset classification method to obtain different types of log classification results, and the method specifically includes:
determining thread state information corresponding to the log thread information and a state change track corresponding to the thread state information; the thread state information is used for representing state information of the log thread information, and the state change track is used for representing a change track of the log thread information;
performing state information node marking on the thread state information corresponding to the log thread information based on the state change track to obtain state information node packets of different nodes;
and carrying out information classification on the log thread information according to the obtained state information node packets of different nodes and a preset classification method to obtain different types of log classification results.
Optionally, respectively sending log records of all target devices included in the device cluster to each target device included in the device cluster, specifically including:
aiming at a target path in a plurality of preset sending paths before log records of all target devices are respectively sent to each target device included in the device cluster, matching the log records of all target devices to be sent by adopting a path track obtained after the optimized path parameters are corrected, and obtaining a target path track corresponding to the log record;
analyzing whether the transmission time length of the log recorded in the obtained target path track is greater than a preset transmission time length or not;
if the transmission time length of the log record in the obtained target path track is longer than the preset transmission time length, adjusting the path parameters corresponding to the target path track;
and if the transmission time length of the log record in the obtained target path track is less than or equal to the preset transmission time length, respectively sending the log records of all target devices included in the device cluster to each target device included in the device cluster according to the target path track.
The invention also provides a system diary data classification processing device, which is applied to a server and comprises:
the log record acquisition module is used for acquiring respective log records sent by each target device included in the device cluster; the log record of each target device is obtained by the corresponding target device from the operation terminal corresponding to the target device, and the running state of the target device is adjusted and sent according to the obtained log record;
the log record judging module is used for storing the received log record and judging whether the log records of all target devices included in the device cluster are stored or not;
a log text obtaining module, configured to send log records of all target devices included in the device cluster to each target device included in the device cluster, respectively, if the log records of all target devices included in the device cluster have been stored, so that each target device included in the device cluster obtains a target log text from the log records of all target devices included in the device cluster;
the device comprises a device cluster, a diary information extraction module and a system log display module, wherein the device cluster comprises a device log information acquisition module, a diary information extraction module and a diary information display module, the diary information extraction module is used for extracting diary information in corresponding log records based on target log texts acquired by each target device from the log records of all target devices in the device cluster, and acquiring an event list in the system log included in the diary information according to the diary information;
the log thread classification module is used for screening event identifiers updated relative to the log records in the event list, extracting log thread information of which error logs do not change along with the updating of the updated event identifiers in the log information according to the event identifiers, and classifying the log thread information according to a preset classification method to obtain log classification results of different types; the log thread information is used for starting a corresponding log thread to call a corresponding real-time log record from the log thread.
Optionally, the diary information extraction module is specifically configured to:
acquiring log type identification information based on an equipment identification corresponding to each target equipment, and judging the log type identification information according to preset identification information to obtain a log recording track comprising a log recording time value and a log recording time value;
analyzing the log recording track based on the log recording time value, and mapping the log type identification information meeting the set recording condition to obtain the mapped log type identification information;
acquiring a target log text corresponding to the log type identification information based on the obtained log type identification information after mapping processing, and extracting a log text recording time point corresponding to the target log text;
determining a log text code based on the log recording time value and the log text recording time point, and extracting the corresponding log information in the log record according to the log text code.
Optionally, the log thread classification module is specifically configured to:
determining thread state information corresponding to the log thread information and a state change track corresponding to the thread state information; the thread state information is used for representing state information of the log thread information, and the state change track is used for representing a change track of the log thread information;
performing state information node marking on the thread state information corresponding to the log thread information based on the state change track to obtain state information node packets of different nodes;
and carrying out information classification on the log thread information according to the obtained state information node packets of different nodes and a preset classification method to obtain different types of log classification results.
Optionally, the log text obtaining module is specifically configured to:
aiming at a target path in a plurality of preset sending paths before log records of all target devices are respectively sent to each target device included in the device cluster, matching the log records of all target devices to be sent by adopting a path track obtained after the optimized path parameters are corrected, and obtaining a target path track corresponding to the log record;
analyzing whether the transmission time length of the log recorded in the obtained target path track is greater than a preset transmission time length or not;
if the transmission time length of the log record in the obtained target path track is longer than the preset transmission time length, adjusting the path parameters corresponding to the target path track;
and if the transmission time length of the log record in the obtained target path track is less than or equal to the preset transmission time length, respectively sending the log records of all target devices included in the device cluster to each target device included in the device cluster according to the target path track.
The invention also provides intelligent electronic equipment, which comprises a processor, a memory and a bus, wherein the memory and the bus are connected with the processor; wherein, the processor and the memory complete mutual communication through the bus; the processor is configured to call program instructions in the memory to perform any of the methods described above.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects.
The invention provides a system diary data classification processing method, a device and an intelligent electronic device, which are characterized in that respective log records sent by each target device included in a device cluster are obtained, the received log records are stored and judged, if the log records are stored, target log texts are obtained from the log records of all the target devices, diary information in the corresponding log records is extracted from each obtained target log text, an event list is obtained according to the diary information, event identifications updated relative to the log records in the event list are further screened, meanwhile, log thread information is extracted according to the event identifications, and the log thread information is further classified according to a preset classification method to obtain different types of log classification results. By the design, the log information of different types of the system diary can be rapidly and accurately classified and stored, so that the system diary can be accurately called in the later period.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart of a system diary data classification processing method according to an embodiment of the present invention.
Fig. 2 is a block diagram of a system diary data classification processing apparatus according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a hardware structure of an intelligent electronic device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Fig. 1 is a flowchart of a system diary data classification processing method according to the present invention, which can be applied to a server 100, and the method can include the following.
Step S110, obtaining respective log records sent by each target device included in the device cluster; the log record of each target device is obtained by the corresponding target device from the operation terminal corresponding to the target device, and the operation state of the target device is adjusted according to the obtained log record and then sent.
Step S120, storing the received log record and determining whether log records of all target devices included in the device cluster have been stored.
Step S130, if the log records of all the target devices included in the device cluster have been saved, respectively sending the log records of all the target devices included in the device cluster to each target device included in the device cluster, so that each target device included in the device cluster obtains a target log text from the log records of all the target devices included in the device cluster.
Step S140, based on the target log text obtained by each target device from the log records of all the target devices included in the device cluster, extracting the journal information in the corresponding log record, and obtaining the event list in the system log included in the journal information according to the journal information.
Step S150, screening the updated event identifier corresponding to the log record in the event list, extracting the log thread information of which the error log does not change along with the update of the updated event identifier in the log information according to the event identifier, and classifying the log thread information according to a preset classification method to obtain different types of log classification results.
In this embodiment, the log thread information is used to start a corresponding log thread to retrieve a corresponding real-time log record from the log thread.
By executing the content described in step S110 and step S150, the respective log records sent by each target device included in the device cluster are obtained, the received log records are stored and judged, if the log records are stored, the target log texts are obtained from the log records of all the target devices, the journal information in the corresponding log record is extracted every obtained target log text, an event list is obtained according to the journal information, event identifiers updated relative to the log records in the event list are further screened, meanwhile, the log thread information is extracted according to the event identifiers, and the log thread information is further classified according to a preset classification method, so as to obtain different types of log classification results. By the design, the log information of different types of the system diary can be rapidly and accurately classified and stored, so that the system diary can be accurately called in the later period.
In a specific implementation, in order to accurately extract the diary information in the log record and avoid tampering the log record in the extraction process, the method described in step S140 may extract the diary information in the corresponding log record based on the target log text acquired by each target device from the log records of all target devices included in the device cluster, which specifically includes the contents described in the following steps S1401 to S1404.
Step S1401, obtaining log type identification information based on the device identifier corresponding to each target device, and determining the log type identification information according to preset identification information to obtain a log recording track including a log recording time value and a log recording track corresponding to the log recording time value.
Step S1402, analyzing the log recording trace based on the log recording time value, and mapping the log type identification information satisfying the set recording condition to obtain the mapped log type identification information.
Step S1403, based on the obtained mapping-processed log type identification information, a target log text corresponding to the log type identification information is obtained, and a log text recording time point corresponding to the target log text is extracted.
Step S1404, determining a log text code based on the log recording time value and the log text recording time point, and extracting the diary information in the corresponding log record according to the log text code.
Executing the contents described in steps S1401 to S1404, obtaining a log recording time value and a log recording track by obtaining and judging log type identification information, further dividing the log recording track and performing mapping processing on the log type identification information meeting set recording conditions, obtaining a target log text and extracting a log text recording time point, determining a log text code based on the log recording time value and the log text recording time point, and extracting the log information in the corresponding log record according to the log text code. By the design, the diary information in the diary record can be accurately extracted, and meanwhile, the diary record is prevented from being tampered in the extraction process.
In a specific implementation, in order to reduce time consumption for acquiring the event list and improve work efficiency, the step S140 of acquiring the event list in the system log included in the diary information according to the diary information may further include the following contents described in step S1405 to step S1408.
Step S1405, extracting a diary type tag corresponding to the diary information.
Step S1406, determining an event attribute value of a tag event corresponding to the diary type tag, and determining whether the event attribute value matches a preset event attribute value.
Step S1407, if the matching is performed, counting a total number of first events of the tag events corresponding to the diary type tag, and obtaining the configuration parameters and a total number of second events in the system log included in the diary information based on the total number of first events.
Step S1408, determining a corresponding relationship between a first total number of events of the tag events corresponding to the diary type tag and a second total number of events in the system log based on the configuration parameter, and determining an event list in the system log according to the corresponding relationship.
Executing the contents described in step S1405-step S1408, extracting the journal type tag, determining whether the event attribute value matches with the preset event attribute value, if so, obtaining the configuration parameters and the second event total number in the system log based on the counted first event total number, further determining the corresponding relationship between the first event total number and the second event total number, and determining the event list in the system log according to the corresponding relationship. Therefore, by judging whether the event attribute value is matched with the preset event attribute value or not, the time consumed for acquiring the event list can be effectively reduced, and meanwhile, the working efficiency can be improved.
In a specific implementation, in order to accurately classify the log thread information and facilitate searching the log thread information subsequently, the classification processing of the log thread information according to the preset classification method described in step S150 is performed to obtain different types of log classification results, which may specifically include the contents described in steps S1501 to S1503 below.
Step S1501, determining thread state information corresponding to the log thread information and a state change track corresponding to the thread state information; the thread state information is used for representing the state information of the log thread information, and the state change track is used for representing the change track of the log thread information.
Step S1502, based on the state change trajectory, performs state information node marking on the thread state information corresponding to the log thread information, to obtain state information node packets of different nodes.
And S1503, performing information classification on the log thread information according to the obtained state information node packets of the different nodes and a preset classification method to obtain different types of log classification results.
Executing the contents described in the steps S1501 to S1503, firstly determining the thread state information and the state change trajectory, secondly performing state information node marking on the thread state information to obtain state information node packets of different nodes, and finally performing information classification on the log thread information according to the obtained state information node packets of different nodes and a preset classification method to obtain log classification results of different types. By the design, the log thread information is classified according to the state information node packets of different nodes and a preset classification method, the log thread information can be accurately classified, and meanwhile, the log thread information can be conveniently searched in the follow-up process.
In a specific implementation, in order to accurately and quickly send the log records to each target device included in the device cluster, the sending of the log records of all the target devices included in the device cluster to each target device included in the device cluster described in step S130 may specifically include the contents described in steps S1301 to S1304 below.
Step S1301, aiming at a target path in a plurality of preset sending paths before sending log records of all target devices to each target device included in the device cluster, matching the log records of all target devices to be sent by using a path trajectory obtained after correcting the optimized path parameters, and obtaining a target path trajectory corresponding to the log record.
Step S1302, analyzing whether a transmission duration of the log recorded in the obtained target path trajectory is greater than a preset transmission duration.
Step S1303, if the transmission duration of the log record in the obtained target path trajectory is longer than a preset transmission duration, adjusting the path parameter corresponding to the target path trajectory.
Step S1304, if the transmission duration of the log record in the obtained target path trajectory is less than or equal to a preset transmission duration, respectively sending the log records of all target devices included in the device cluster to each target device included in the device cluster according to the target path trajectory.
Executing the contents described in the steps S1301 to S1304, matching log records of all target devices to be sent by using the path track obtained after the optimized path parameter is modified to obtain a target path track, further analyzing whether a transmission duration of the log record in the obtained target path track is greater than a preset transmission duration, and if so, adjusting the path parameter. And if the target path track is smaller than or equal to the target path track, respectively sending the log records of all the target devices included in the device cluster to each target device included in the device cluster. In this way, the log records can be accurately and quickly sent to each target device included in the device cluster.
Further, in a specific implementation, in order to solve the problem of low screening efficiency in the prior art, and further prevent the screening from being missed in the screening process, the screening of the event identifier in the event list, which is updated with respect to the log record, described in step S150 may further include the following contents described in step S1504 to step S1507.
Step S1504, determining a list sub-list included in the event list.
Step S1505, selecting a first list sub-list from the event list; wherein the first list sub-list belongs to one of the event list sub-lists.
In step S1506, a log record list updated with respect to the log record is analyzed from the first list sub-list.
Step S1507, the analyzed log record list and the first list sub-list are successively traversed and filtered to obtain a second list sub-list, and an event identifier in the event list, which is updated relative to the log record, is screened out based on the second list sub-list.
Executing the contents described in step S1504 to step S1507, first determining the list sub-list, picking out the first list sub-list from the list sub-list, secondly analyzing the updated log record list relative to the log record from the first list sub-list, successively traversing and filtering the analyzed log record list and the first list sub-list to obtain a second list sub-list, and finally screening the event identifier in the event list relative to the updated log record based on the second list sub-list. Therefore, the problem of low screening efficiency in the prior art can be solved by sequentially traversing and filtering the log record list and the first list sub-list, and the condition of missing in the screening process is further prevented.
Based on the same inventive concept as above, please refer to fig. 2, further providing a system diary data classification processing apparatus 100, applied to a server, the apparatus comprising:
a log record obtaining module 110, configured to obtain respective log records sent by each target device included in the device cluster; the log record of each target device is obtained by the corresponding target device from the operation terminal corresponding to the target device, and the running state of the target device is adjusted and sent according to the obtained log record;
a log record judging module 120, configured to store the received log record and judge whether log records of all target devices included in the device cluster have been stored;
a log text obtaining module 130, configured to send log records of all target devices included in the device cluster to each target device included in the device cluster, respectively, if the log records of all target devices included in the device cluster are already stored, so that each target device included in the device cluster obtains a target log text from the log records of all target devices included in the device cluster;
a journal information extraction module 140, configured to extract journal information in corresponding journal records based on a target journal text acquired by each target device from the journal records of all the target devices included in the device cluster, and acquire an event list in a system journal included in the journal information according to the journal information;
the log thread classification module 150 is configured to filter event identifiers updated in the event list with respect to the log records, extract log thread information in which error logs in the log information do not change with updating of the updated event identifiers according to the event identifiers, and classify the log thread information according to a preset classification method to obtain different types of log classification results; the log thread information is used for starting a corresponding log thread to call a corresponding real-time log record from the log thread.
In an alternative embodiment, the diary information extraction module 140 is specifically configured to:
acquiring log type identification information based on an equipment identification corresponding to each target equipment, and judging the log type identification information according to preset identification information to obtain a log recording track comprising a log recording time value and a log recording time value;
analyzing the log recording track based on the log recording time value, and mapping the log type identification information meeting the set recording condition to obtain the mapped log type identification information;
acquiring a target log text corresponding to the log type identification information based on the obtained log type identification information after mapping processing, and extracting a log text recording time point corresponding to the target log text;
determining a log text code based on the log recording time value and the log text recording time point, and extracting the corresponding log information in the log record according to the log text code.
In an alternative embodiment, the log thread classification module 150 is specifically configured to:
determining thread state information corresponding to the log thread information and a state change track corresponding to the thread state information; the thread state information is used for representing state information of the log thread information, and the state change track is used for representing a change track of the log thread information;
performing state information node marking on the thread state information corresponding to the log thread information based on the state change track to obtain state information node packets of different nodes;
and carrying out information classification on the log thread information according to the obtained state information node packets of different nodes and a preset classification method to obtain different types of log classification results.
In an alternative embodiment, the journal text obtaining module 130 is specifically configured to:
aiming at a target path in a plurality of preset sending paths before log records of all target devices are respectively sent to each target device included in the device cluster, matching the log records of all target devices to be sent by adopting a path track obtained after the optimized path parameters are corrected, and obtaining a target path track corresponding to the log record;
analyzing whether the transmission time length of the log recorded in the obtained target path track is greater than a preset transmission time length or not;
if the transmission time length of the log record in the obtained target path track is longer than the preset transmission time length, adjusting the path parameters corresponding to the target path track;
and if the transmission time length of the log record in the obtained target path track is less than or equal to the preset transmission time length, respectively sending the log records of all target devices included in the device cluster to each target device included in the device cluster according to the target path track.
On the basis, please refer to fig. 3, further providing an intelligent electronic device 200, which includes a processor 211, a memory 212 connected to the processor 211, and a bus 213; wherein, the processor 211 and the memory 212 complete the communication with each other through the bus 213; the processor 211 is configured to call the program instructions in the memory 212 to execute the above-mentioned method.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (6)

1. A system diary data classification processing method is applied to a server, and comprises the following steps:
acquiring respective log records sent by each target device included in the device cluster; the log record of each target device is obtained by the corresponding target device from the operation terminal corresponding to the target device, and the running state of the target device is adjusted and sent according to the obtained log record;
storing the received log records and judging whether the log records of all target devices included in the device cluster are stored or not;
if the log records of all the target devices included in the device cluster are stored, respectively sending the log records of all the target devices included in the device cluster to each target device included in the device cluster, so that each target device included in the device cluster obtains a target log text from the log records of all the target devices included in the device cluster;
extracting diary information in corresponding log records based on target log texts acquired by each target device from the log records of all target devices included in the device cluster, and acquiring an event list in a system log included in the diary information according to the diary information;
screening event identifiers updated relative to the log records in the event list, extracting log thread information of which error logs do not change along with the updating of the updated event identifiers in the log information according to the event identifiers, and classifying the log thread information according to a preset classification method to obtain log classification results of different types; the log thread information is used for starting a corresponding log thread to call a corresponding real-time log record from the log thread;
extracting the journal information in the corresponding journal record based on the target journal text acquired by each target device from the journal records of all the target devices included in the device cluster, including:
acquiring log type identification information based on an equipment identification corresponding to each target equipment, and judging the log type identification information according to preset identification information to obtain a log recording track comprising a log recording time value and a log recording time value;
analyzing the log recording track based on the log recording time value, and mapping the log type identification information meeting the set recording condition to obtain the mapped log type identification information;
acquiring a target log text corresponding to the log type identification information based on the obtained log type identification information after mapping processing, and extracting a log text recording time point corresponding to the target log text;
determining a log text code based on the log recording time value and the log text recording time point, and extracting corresponding log information in a log record according to the log text code;
the method includes the following steps of classifying the log thread information according to a preset classification method to obtain different types of log classification results, and specifically includes: determining thread state information corresponding to the log thread information and a state change track corresponding to the thread state information; the thread state information is used for representing state information of the log thread information, and the state change track is used for representing a change track of the log thread information; performing state information node marking on the thread state information corresponding to the log thread information based on the state change track to obtain state information node packets of different nodes; and carrying out information classification on the log thread information according to the obtained state information node packets of different nodes and a preset classification method to obtain different types of log classification results.
2. The method for classifying and processing system diary data according to claim 1, wherein acquiring an event list in a system log included in the diary information according to the diary information specifically includes:
extracting a diary type label corresponding to the diary information;
determining an event attribute value of a tag event corresponding to the diary type tag, and judging whether the event attribute value is matched with a preset event attribute value;
if so, counting the total number of first events of the label events corresponding to the diary type label, and acquiring the configuration parameters and the total number of second events in the system log included in the diary information based on the total number of the first events;
and determining a corresponding relation between the total number of first events of the label events corresponding to the diary type label and the total number of second events in the system log based on the configuration parameters, and determining an event list in the system log according to the corresponding relation.
3. The method for classifying and processing system diary data according to claim 1, wherein the step of sending log records of all target devices included in the device cluster to each target device included in the device cluster includes:
aiming at a target path in a plurality of preset sending paths before log records of all target devices are respectively sent to each target device included in the device cluster, matching the log records of all target devices to be sent by adopting a path track obtained after the optimized path parameters are corrected, and obtaining a target path track corresponding to the log record;
analyzing whether the transmission time length of the log recorded in the obtained target path track is greater than a preset transmission time length or not;
if the transmission time length of the log record in the obtained target path track is longer than the preset transmission time length, adjusting the path parameters corresponding to the target path track;
and if the transmission time length of the log record in the obtained target path track is less than or equal to the preset transmission time length, respectively sending the log records of all target devices included in the device cluster to each target device included in the device cluster according to the target path track.
4. A system diary data classification processing apparatus, applied to a server, the apparatus comprising:
the log record acquisition module is used for acquiring respective log records sent by each target device included in the device cluster; the log record of each target device is obtained by the corresponding target device from the operation terminal corresponding to the target device, and the running state of the target device is adjusted and sent according to the obtained log record;
the log record judging module is used for storing the received log record and judging whether the log records of all target devices included in the device cluster are stored or not;
a log text obtaining module, configured to send log records of all target devices included in the device cluster to each target device included in the device cluster, respectively, if the log records of all target devices included in the device cluster have been stored, so that each target device included in the device cluster obtains a target log text from the log records of all target devices included in the device cluster;
the device comprises a device cluster, a diary information extraction module and a system log display module, wherein the device cluster comprises a device log information acquisition module, a diary information extraction module and a diary information display module, the diary information extraction module is used for extracting diary information in corresponding log records based on target log texts acquired by each target device from the log records of all target devices in the device cluster, and acquiring an event list in the system log included in the diary information according to the diary information;
the log thread classification module is used for screening event identifiers updated relative to the log records in the event list, extracting log thread information of which error logs do not change along with the updating of the updated event identifiers in the log information according to the event identifiers, and classifying the log thread information according to a preset classification method to obtain log classification results of different types; the log thread information is used for starting a corresponding log thread to call a corresponding real-time log record from the log thread;
the diary information extraction module is specifically configured to:
acquiring log type identification information based on an equipment identification corresponding to each target equipment, and judging the log type identification information according to preset identification information to obtain a log recording track comprising a log recording time value and a log recording time value;
analyzing the log recording track based on the log recording time value, and mapping the log type identification information meeting the set recording condition to obtain the mapped log type identification information;
acquiring a target log text corresponding to the log type identification information based on the obtained log type identification information after mapping processing, and extracting a log text recording time point corresponding to the target log text;
determining a log text code based on the log recording time value and the log text recording time point, and extracting corresponding log information in a log record according to the log text code;
the log thread classification module is specifically configured to:
determining thread state information corresponding to the log thread information and a state change track corresponding to the thread state information; the thread state information is used for representing state information of the log thread information, and the state change track is used for representing a change track of the log thread information;
performing state information node marking on the thread state information corresponding to the log thread information based on the state change track to obtain state information node packets of different nodes; and carrying out information classification on the log thread information according to the obtained state information node packets of different nodes and a preset classification method to obtain different types of log classification results.
5. The system diary data classification processing device according to claim 4, wherein the journal text acquisition module is specifically configured to:
aiming at a target path in a plurality of preset sending paths before log records of all target devices are respectively sent to each target device included in the device cluster, matching the log records of all target devices to be sent by adopting a path track obtained after the optimized path parameters are corrected, and obtaining a target path track corresponding to the log record;
analyzing whether the transmission time length of the log recorded in the obtained target path track is greater than a preset transmission time length or not;
if the transmission time length of the log record in the obtained target path track is longer than the preset transmission time length, adjusting the path parameters corresponding to the target path track;
and if the transmission time length of the log record in the obtained target path track is less than or equal to the preset transmission time length, respectively sending the log records of all target devices included in the device cluster to each target device included in the device cluster according to the target path track.
6. An intelligent electronic device, comprising a processor, and a memory and a bus connected to the processor; wherein, the processor and the memory complete mutual communication through the bus; the processor is configured to call program instructions in the memory to perform the method of any of the preceding claims 1-3.
CN202010741291.5A 2020-07-29 2020-07-29 System diary data classification processing method and device and intelligent electronic equipment Active CN111736978B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010741291.5A CN111736978B (en) 2020-07-29 2020-07-29 System diary data classification processing method and device and intelligent electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010741291.5A CN111736978B (en) 2020-07-29 2020-07-29 System diary data classification processing method and device and intelligent electronic equipment

Publications (2)

Publication Number Publication Date
CN111736978A CN111736978A (en) 2020-10-02
CN111736978B true CN111736978B (en) 2020-11-27

Family

ID=72656303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010741291.5A Active CN111736978B (en) 2020-07-29 2020-07-29 System diary data classification processing method and device and intelligent electronic equipment

Country Status (1)

Country Link
CN (1) CN111736978B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685274A (en) * 2020-12-29 2021-04-20 北京达佳互联信息技术有限公司 Log generation method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043704A (en) * 2009-10-14 2011-05-04 中兴通讯股份有限公司 Method and system for generating log information
CN103368756A (en) * 2012-03-29 2013-10-23 福建星网视易信息系统有限公司 A management system for monitoring the operation log of an embedded system
CN110968493A (en) * 2019-12-24 2020-04-07 上海英方软件股份有限公司 Method and system for analyzing and deducing running state of program based on running log

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7984129B2 (en) * 2003-07-11 2011-07-19 Computer Associates Think, Inc. System and method for high-performance profiling of application events
US9871809B2 (en) * 2013-08-26 2018-01-16 Shine Security Ltd. Reversion of system objects affected by a malware

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043704A (en) * 2009-10-14 2011-05-04 中兴通讯股份有限公司 Method and system for generating log information
CN103368756A (en) * 2012-03-29 2013-10-23 福建星网视易信息系统有限公司 A management system for monitoring the operation log of an embedded system
CN110968493A (en) * 2019-12-24 2020-04-07 上海英方软件股份有限公司 Method and system for analyzing and deducing running state of program based on running log

Also Published As

Publication number Publication date
CN111736978A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN108769823B (en) Direct broadcasting room display methods, device, equipment
CN108170750A (en) A kind of face database update method, system and terminal device
US20210357678A1 (en) Information processing method and apparatus, and storage medium
CN107886079A (en) Object identifying method, apparatus and system
CN105677728A (en) Object image recognition and classification managing method
CN106375133B (en) A kind of method and apparatus of processing, the display of network access speed information
CN109413017B (en) Method and system for managing heterogeneous firewall
CN110956269A (en) Data model generation method, device, equipment and computer storage medium
CN110881131B (en) Classification method of live review videos and related device thereof
CN109740129B (en) Report generation method, device and equipment based on blockchain and readable storage medium
CN111736978B (en) System diary data classification processing method and device and intelligent electronic equipment
CN103684900B (en) Business method for inspecting and system
CN112199530B (en) Multi-dimensional face library picture automatic updating method, system, equipment and medium
CN109448811B (en) Prescription auditing improvement method and device, electronic equipment and storage medium
CN109660936A (en) A kind of face and mobile device identification number mapping method, system and readable storage medium storing program for executing
CN108388672A (en) Lookup method, device and the computer readable storage medium of video
CN114065090A (en) Method and system for updating classification database, storage medium and computer equipment
CN108197050B (en) Equipment identification method, device and system
CN112278647A (en) Intelligent garbage classification system and implementation method thereof
CN116563038A (en) Medical insurance fee control recommendation method, system and storage medium based on regional big data
CN110796014A (en) Garbage throwing habit analysis method, system and device and storage medium
CN109585013A (en) A kind of distributed medical diagnostic analysis method and system
CN114020962A (en) Video system management method, electronic device, and computer-readable storage medium
CN113923190A (en) Method and device for identifying equipment identification jump, server and storage medium
CN109947803B (en) Data processing method, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant