Communication log exception identification method and system, electronic device, and storage medium
By acquiring the storage rate of the communication system and generating alarm information, the problem of the inability to identify lost communication diagnostic logs in real time in the existing technology is solved, enabling timely identification and elimination of obstacles, and improving the stability and working efficiency of the communication system.
Patent Information
- Application Number
- CN202111165845.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2041-09-30
AI Technical Summary
Existing technologies cannot proactively identify lost communication diagnostic logs in real time, resulting in low query efficiency and an inability to promptly detect and eliminate obstacles.
By obtaining the communication diagnostic log storage rate of the communication system and comparing it with a preset rate threshold, alarm information is generated to indicate abnormalities, including SD card performance abnormalities and data block application failures.
It enables real-time proactive identification of lost communication diagnostic logs, improves work efficiency, promptly eliminates obstacles, and ensures stable storage of communication diagnostic logs.
Smart Images

Figure CN113986699B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a communication log abnormality identification method and system, an electronic device and a storage medium. BACKGROUND
[0002] In the process of grabbing communication diagnostic logs, there may be a situation that communication diagnostic logs cannot be grabbed, that is, communication diagnostic logs are lost. Currently, for the situation that communication diagnostic logs are lost, the reason for the loss of communication diagnostic logs can be queried through subsequent communication diagnostic log playback. However, this way of querying the reason for the loss of communication diagnostic logs has low efficiency and cannot actively identify the loss of communication diagnostic logs in real time. SUMMARY
[0003] The present application aims to solve the technical problem of the prior art that communication diagnostic logs cannot be automatically identified as abnormal. The present application provides a communication log abnormality identification method and system, an electronic device and a storage medium.
[0004] The present application solves the above technical problem by the following technical scheme:
[0005] A communication log abnormality identification method, the abnormality identification method comprising the following steps:
[0006] Obtaining the storage rate of communication diagnostic logs of a communication system;
[0007] If the storage rate is lower than a preset rate threshold, an alarm information is generated.
[0008] Preferably, the step of obtaining the storage rate of communication diagnostic logs of a communication system specifically comprises:
[0009] Obtaining the storage rate of communication diagnostic logs of a communication system to an SD card;
[0010] After the step of generating an alarm information, the identification method further comprises the following steps:
[0011] Generating a first prompt information for prompting that the SD card has an abnormal performance.
[0012] Preferably, the communication system comprises multiple application scenarios;
[0013] If the storage rate is lower than a preset rate threshold, the step of generating an alarm information specifically comprises:
[0014] Obtaining the current application scenario of the communication system;
[0015] If the storage rate is lower than a preset rate threshold corresponding to the current application scenario, an alarm information is generated.
[0016] Preferably, the communication system comprises at least one data block for storing the communication diagnostic log;
[0017] The abnormality identification method further comprises the following steps:
[0018] When the data block cannot be applied to store the real-time captured communication diagnostic log, it is determined that the communication diagnostic log storage is abnormal.
[0019] Preferably, after the step of determining that the communication diagnostic log storage is abnormal, the abnormality identification method further comprises the following steps:
[0020] Second prompt information is generated to prompt the user that the communication diagnostic log storage is abnormal.
[0021] An abnormality identification system of a communication log, comprising:
[0022] An acquisition module is configured to acquire a storage rate of a communication diagnostic log of a communication system;
[0023] A judgment module is configured to generate an alarm information if the storage rate is lower than a preset rate threshold.
[0024] The acquisition module is further configured to acquire a storage rate of a communication diagnostic log of a communication system to an SD card (a storage card);
[0025] A prompt module is configured to generate first prompt information to prompt that the SD card is abnormal.
[0026] Preferably, the communication system comprises a plurality of application scenarios.
[0027] The acquisition module is further configured to acquire a current application scenario of the communication system.
[0028] The judgment module is further configured to generate an alarm information if the storage rate is lower than a preset rate threshold corresponding to the current application scenario.
[0029] Preferably, the communication system comprises at least one data block for storing the communication diagnostic log.
[0030] The judgment module is further configured to determine that the communication diagnostic log storage is abnormal when the data block cannot be applied to store the real-time captured communication diagnostic log.
[0031] The prompt module is further configured to generate second prompt information to prompt the user that the communication diagnostic log storage is abnormal.
[0032] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the communication log anomaly identification method as described above.
[0033] A computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the anomaly identification method for communication logs as described above.
[0034] The positive and progressive effects of this invention are as follows: by acquiring the storage rate of the communication diagnostic logs of the communication system; if the storage rate is lower than a preset rate threshold, an alarm message is generated. This allows for real-time proactive identification of whether communication diagnostic logs have been lost and timely generation of alarm messages, enabling real-time monitoring of the communication diagnostic log status, facilitating timely troubleshooting, improving work efficiency, and simplifying maintenance and monitoring. Attached Figure Description
[0035] Figure 1 This is a flowchart illustrating the communication log anomaly identification method of Embodiment 1 of the present invention.
[0036] Figure 2 This is a flowchart illustrating a further optimization of step S1 in the communication log anomaly identification method of Embodiment 1 of the present invention.
[0037] Figure 3 A flowchart illustrating the communication log anomaly identification method of Embodiment 2 of the present invention.
[0038] Figure 4 A flowchart illustrating the communication log anomaly identification method of Embodiment 3 of the present invention.
[0039] Figure 5 The module structure diagram of the communication log anomaly identification system of Embodiment 4 of the present invention.
[0040] Figure 6 A schematic diagram of the structure of the electronic device in Embodiment 5 of the present invention. Detailed Implementation
[0041] The present invention will be further illustrated by way of embodiments below, but the present invention is not limited to the scope of the embodiments described herein.
[0042] Example 1
[0043] like Figure 1 As shown, this embodiment provides a method for anomaly identification in communication logs. The anomaly identification method includes the following steps:
[0044] S1. Obtain the storage rate of the communication diagnostic log of the communication system.
[0045] S2, determining whether the storage rate is lower than a preset rate threshold, if yes, performing S21, if no, returning to S1.
[0046] S21, generating an alarm information.
[0047] It should be noted that in the process of capturing the communication diagnostic log of the communication system, the storage rate of the communication diagnostic log stored to the database, the storage space or the SD card can be obtained. The obtained storage rate of the communication log is compared with the preset rate threshold. If the storage rate is lower than the preset rate threshold, an alarm information is generated in time to identify that the communication diagnostic log is abnormal, and the user is prompted that the communication diagnostic log is being lost in time. The user can understand the actual situation in real time, which is convenient for timely troubleshooting and analysis of the cause of the loss, realizes real-time identification of whether the communication diagnostic log is abnormal, and improves the work efficiency.
[0048] Specifically, as shown in Figure 2 S1 includes the following steps:
[0049] S11, obtaining the storage rate of the communication diagnostic log of the communication system stored to the SD card.
[0050] After the step of S21, the identification method further includes the following steps:
[0051] S3, generating a first prompt information, and the first prompt information is used to prompt that the performance of the SD card is abnormal.
[0052] Because the storage modes of the communication diagnostic log are different, the specific reason causing the loss of the communication diagnostic log can be analyzed according to the comparison result of the storage rate of the communication diagnostic log and the preset rate threshold. Taking the storage of the communication diagnostic log to the SD card as an example, when it is detected that the rate of the communication diagnostic log stored to the SD card is lower than the normal rate, i.e. the preset rate threshold, an alarm information is generated. The user can know that the storage of the communication diagnostic log is abnormal according to the alarm information. Further, a prompt information is generated to prompt the user that the performance of the SD card is abnormal, the communication diagnostic log cannot be stored to the SD card, and the communication diagnostic log is abnormal, i.e. lost.
[0053] In this embodiment, the communication diagnostic log can be stored by different storage modes, which are not limited herein. The alarm information can be alarmed by different forms, such as text alarm, sound alarm, trigger alarm, etc., which are not limited herein. The prompt information can also be prompted by different forms, such as text prompt, picture prompt, message sending prompt, etc., as long as the prompt function is realized. The prompt information can be displayed through a display interface, which is not limited herein.
[0054] The embodiment obtains the storage rate of the communication diagnosis log, generates an alarm in time according to the comparison result of the storage rate and the preset rate threshold, and timely reminds the user to pay attention to the storage of the communication diagnosis log, thereby improving the work efficiency. For example, when the storage rate of the communication diagnosis log to the SD card is lower than the normal rate, it indicates that the SD card performance is abnormal, the communication diagnosis log is lost, the user is timely alarmed and reminded, and a prompt message is sent, so that the user can timely find and solve the problem, the detection speed is fast, and the work efficiency is high.
[0055] Embodiment 2
[0056] As shown in Figure 3 The communication log abnormality identification method provided by the embodiment is a further improvement of the embodiment 1. The communication system includes multiple application scenarios, and the specific application scenarios are not limited here.
[0057] S2 specifically includes:
[0058] S22, obtaining the current application scenario of the communication system;
[0059] S23, judging whether the storage rate is lower than the preset rate threshold corresponding to the current application scenario, if yes, executing S21, and if no, returning to S22.
[0060] It should be noted that the standards for judging the storage rate of the communication diagnosis log are different for different application scenarios, and the preset rate threshold is also different. The preset rate threshold is set according to different application scenarios. The application scenarios can be chat information storage, call content storage, etc., which are not limited here.
[0061] The embodiment judges the storage rate of the communication diagnosis log according to different application scenarios of the communication system, improves the accuracy and flexibility of diagnosing and identifying the loss of the log, further improves the work efficiency, and saves the troubleshooting time.
[0062] Embodiment 3
[0063] As shown in Figure 4 The embodiment provides a communication log abnormality identification method, and provides another communication log abnormality identification method. In the process of grabbing the communication diagnosis log, the grabbing process can be divided into different stages, and the methods for judging the loss of the communication diagnosis log are different in different stages. The communication log abnormality identification method provided by the embodiment can be applied to the initial stage of grabbing the communication diagnosis log.
[0064] The communication system includes at least one data block, and the data block is used to be called to store the communication diagnosis log;
[0065] The communication log abnormality identification method of the embodiment includes the following steps:
[0066] S4, determining whether the data block storage real-time capture of the communication diagnostic log is successful, if not, performing S41, if yes, determining that the communication diagnostic log storage is normal.
[0067] S41, determining that the communication diagnostic log storage is abnormal.
[0068] After the step S41, the abnormality identification method further comprises:
[0069] S411, generating a second prompt information for prompting the user that the communication diagnostic log storage is abnormal.
[0070] It should be noted that the data block is used to store the real communication diagnostic log. In the process of capturing the communication diagnostic log, the data block applied under normal circumstances can ensure normal data transmission, and there should be no situation of not being able to apply for the data block. If it is found that the data block cannot be applied, it means that there is a problem, i.e., the communication diagnostic log is abnormal and is lost. After determining that the communication diagnostic storage is abnormal, a second prompt information is generated to prompt the user that the communication diagnostic log storage is abnormal. The second prompt information can have various forms, such as text form, picture form, etc., which are not limited herein.
[0071] For example, in the process of capturing the communication diagnostic log, it can be divided into a source part (i.e., an initial stage) and a channel part (a subsequent stage of the initial stage). The source part can use the diagnostic identification method provided in this embodiment to identify whether the communication diagnostic log is lost, or use the abnormality identification method of embodiment 1 or 2. The channel part can use the abnormality identification method of embodiment 1 or 2 for abnormality identification, which is not limited herein and can be used in cross, combination or separately according to actual conditions.
[0072] This embodiment can diagnose and identify whether the communication diagnostic log is abnormal in the initial stage of capturing the communication diagnostic log. When it is identified that the data block for storing the communication diagnostic log cannot be applied, it is determined that the communication diagnostic log storage is abnormal, i.e., is lost, and the user is reminded in time through the prompt information. The obstacles causing the loss are eliminated in time in the initial stage, the loss amount of the communication diagnostic log is reduced, and the abnormality identification process is optimized.
[0073] Embodiment 4
[0074] As shown in Figure 5 This embodiment provides an abnormality identification system of communication log, which comprises an acquisition module 1, a judgment module 2, and a prompt module 3.
[0075] The acquisition module 1 is used to acquire the storage rate of the communication diagnostic log of the communication system.
[0076] The judging module 2 is configured to generate the alarm information if the storage rate is lower than the preset rate threshold.
[0077] It should be noted that in the process of capturing the communication diagnostic log of the communication system, the storage rate of the communication diagnostic log stored in the database, the storage space or the SD card can be obtained. The obtained storage rate of the communication diagnostic log is compared with the preset rate threshold. If the storage rate is lower than the preset rate threshold, the alarm information is generated in time. It is identified that the communication diagnostic log is abnormal. The user is prompted in time that the communication diagnostic log is being lost. The user can understand the actual situation in real time. The cause of the loss can be analyzed and checked in time. Real-time active identification of whether the communication diagnostic log is abnormal is realized. The working efficiency is improved.
[0078] The obtaining module 1 is further configured to obtain the storage rate of the communication diagnostic log of the communication system stored in the SD card.
[0079] The prompting module 3 is configured to generate the first prompt information for prompting the abnormal performance of the SD card.
[0080] Because the storage modes of the communication diagnostic log are different, the specific cause of the loss of the communication diagnostic log can be analyzed according to the comparison result of the storage rate of the communication diagnostic log and the preset rate threshold. For example, when the communication diagnostic log is stored in the SD card, if the rate of the communication diagnostic log stored in the SD card is lower than the normal rate, that is, the preset rate threshold, the alarm information is generated. The user can know that the storage of the communication diagnostic log is abnormal according to the alarm information. Further, the prompt information is generated to prompt the user that the performance of the SD card is abnormal. The communication diagnostic log cannot be stored in the SD card. The communication diagnostic log is lost.
[0081] The embodiment obtains the storage rate of the communication diagnostic log. The alarm is generated in time according to the comparison result of the storage rate and the preset rate threshold. The user is reminded in time to pay attention to the storage condition of the communication diagnostic log. The working efficiency is improved. For example, when the storage rate of the communication diagnostic log stored in the SD card is lower than the normal rate, it is indicated that the performance of the SD card is abnormal. The communication diagnostic log is lost. The user is reminded in time by the alarm. The prompt message is sent. The user can discover and solve the problem in time. The detection speed is fast. The working efficiency is high.
[0082] Further, the communication system includes a plurality of application scenarios.
[0083] The obtaining module 1 is further configured to obtain the current application scenario of the communication system.
[0084] The judging module 2 is further configured to generate the alarm information if the storage rate is lower than the preset rate threshold corresponding to the current application scenario.
[0085] It should be noted that different application scenarios have different standards for judging the storage rate of the communication diagnostic log, and the preset rate threshold is also different. The preset rate threshold is set according to different application scenarios. The application scenarios can be chat information storage, call content storage, and the like, which are not limited herein.
[0086] The embodiment judges the storage rate of the communication diagnostic log according to different application scenarios of the communication system, improves the accuracy and flexibility of diagnostic identification of log loss, and further improves the work efficiency and saves troubleshooting time.
[0087] Further, the communication system includes at least one data block, and the data block is used to store the communication diagnostic log.
[0088] The judging module 2 is also used to determine that the communication diagnostic log storage is abnormal when the data block cannot be applied to store the real-time captured communication diagnostic log.
[0089] The prompting module 3 is also used to generate second prompt information for prompting the user that the communication diagnostic log storage is abnormal.
[0090] It should be noted that the data block is used to store the real communication diagnostic log. In the process of capturing the communication diagnostic log, the data block applied under normal circumstances can ensure normal data transmission, and there should be no situation of unavailability. If it is found that the data block cannot be applied, it means that there is a problem, i.e., the communication diagnostic log is lost. After determining that the communication diagnostic storage is abnormal, the second prompt information is generated to prompt the user that the communication diagnostic log storage is abnormal. The second prompt information can have various forms, such as a text form, a picture form, and the like, which are not limited herein.
[0091] The embodiment can diagnose and identify whether the communication diagnostic log is abnormal in the initial stage of capturing the communication diagnostic log. When it is identified that the data block for storing the communication diagnostic log cannot be applied, it is determined that the communication diagnostic log storage is abnormal, i.e., loss occurs. The user is reminded in time through the prompt information. The obstacles causing the loss are eliminated in time in the initial stage, the loss amount of the communication diagnostic log is reduced, and the abnormal identification process is optimized.
[0092] Embodiment 5
[0093] Figure 6 A structure schematic diagram of an electronic device provided in the embodiment 5 of the present application is provided. The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the communication log abnormal identification method in any one of the preceding embodiments 1-3 is implemented. Figure 6 The electronic device 30 displayed is merely an example and should not impose any limitation on the functions and use range of the embodiment of the present application.
[0094] The electronic device 30 can be in the form of a general computing device, for example it can be a server device. Components of the electronic device 30 can include, but are not limited to, the at least one processor 31 described above, the at least one memory 32 described above, a bus 33 that connects the different system components, including the memory 32 and the processor 31.
[0095] The bus 33 includes a data bus, an address bus, and a control bus.
[0096] The memory 32 can include volatile memory, such as random access memory (RAM) 321 and / or cache memory 322, and can further include non-volatile memory, such as read-only memory (ROM) 323.
[0097] The memory 32 can also include a program / utility 325 having a set of program modules 324 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which can give rise to the implementation of a network environment in one or a combination of the examples.
[0098] The processor 31 performs various function applications and data processing by running the computer program stored in the memory 32, such as the communication log anomaly identification method described in any one of the embodiments 1-3 of the present application.
[0099] The electronic device 30 can also communicate with one or more external devices 34 such as a keyboard or a pointing device, by way of Input / Output (I / O) interface 35. Additionally, the model generation device 30 can communicate with one or more networks, such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet, by way of the network adapter 36. As illustrated, the network adapter 36 communicates with the other modules of the model generation device 30 by way of the bus 33. It should be appreciated that the model generation device 30 can be connected to other types of hardware and / or software modules (including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.) that can provide additional functionality, all of which can also be considered "resources" as that term is defined herein.
[0100] It should be noted that although several units / modules or sub-units / modules of an electronic device are mentioned in the foregoing detailed description, such a division is merely exemplary and not mandatory. Indeed, according to an embodiment of the application, the features and functionalities of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functionalities of one unit / module described above can be further divided into a plurality of units / modules.
[0101] Embodiment 6
[0102] The application also provides a computer readable medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the communication log abnormality identification method according to any one of the preceding embodiments 1-3.
[0103] More specifically, the readable storage medium can include, but is not limited to, a portable disc, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0104] In possible implementation manners, the application can also be implemented in the form of a program product, which includes program codes for causing a terminal device to execute the steps of the communication log abnormality identification method according to any one of the preceding embodiments 1-3 when the program product is run on the terminal device.
[0105] The program codes for implementing the application can be written in any combination of one or more programming languages, and can be executed completely on the user device, partially on the user device, as a separate software package, partially on the user device and partially on a remote device, or completely on a remote device.
[0106] Although the specific embodiments of the application are described above, those skilled in the art should understand that this is only an illustration, and the protection scope of the application is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principles and essence of the application, and these changes and modifications all fall within the protection scope of the application.
Claims
1. A method for anomaly identification in communication logs, characterized in that, The anomaly identification method includes the following steps: Obtain the storage rate of the communication diagnostic logs of the communication system; If the storage rate is lower than a preset rate threshold, an alarm message is generated; The communication system includes at least one data block, which is used to be invoked to store the communication diagnostic log; The anomaly identification method further includes the following steps: If the requested data block cannot store the real-time captured communication diagnostic logs, then the communication diagnostic log storage is determined to be abnormal; the step of obtaining the storage rate of the communication system's communication diagnostic logs specifically includes: Obtain the storage rate of the communication diagnostic logs of the communication system stored on the SD card; After the step of generating alarm information, the anomaly identification method further includes the following steps: A first prompt message is generated to indicate that the SD card is experiencing performance issues.
2. The communication log anomaly identification method as described in claim 1, characterized in that, The communication system includes multiple application scenarios; If the storage rate is lower than a preset rate threshold, the step of generating an alarm message specifically includes: Obtain the current application scenario of the communication system; If the storage rate is lower than a preset rate threshold corresponding to the current application scenario, an alarm message will be generated.
3. The anomaly identification method for communication logs as described in claim 1, characterized in that, After determining the communication diagnostic log storage anomaly, the identification method further includes the following steps: A second prompt message is generated to notify the user that an anomaly has occurred in the storage of the communication diagnostic log.
4. An anomaly detection system for communication logs, characterized in that, The anomaly detection system includes: The acquisition module is used to acquire the storage rate of the communication diagnostic logs of the communication system; The judgment module is used to determine if the storage rate is lower than a preset rate threshold, and then generate an alarm message. The acquisition module is also used to acquire the storage rate of the communication diagnostic logs of the communication system stored on the SD card; The prompt module is used to generate a first prompt message to indicate that the SD card is experiencing performance abnormalities. The communication system includes at least one data block, which is used to store the communication diagnostic log; The judgment module is also used to determine that the communication diagnostic log storage is abnormal when the data block cannot be requested to store the real-time captured communication diagnostic log.
5. The communication log anomaly identification system as described in claim 4, characterized in that, The communication system includes multiple application scenarios; The acquisition module is also used to acquire the current application scenario of the communication system; The judgment module is also used to determine if the storage rate is lower than a preset rate threshold corresponding to the current application scenario, and then generate an alarm message.
6. The communication log anomaly identification system as described in claim 4, characterized in that, The prompting module is also used to generate a second prompt message to notify the user that the communication diagnostic log storage has encountered an anomaly.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the communication log anomaly identification method as described in any one of claims 1-3.
8. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the communication log anomaly identification method as described in any one of claims 1-3.
Citation Information
Patent Citations
Diagnostic information logging
CN103339608A
Log data storage method, electronic equipment and storage medium
CN110727608A
PCIE equipment anomaly detection method and system, electronic equipment and storage medium
CN111309532A