Log data processing method, device and computer equipment for supplementary service
Patent Information
- Application Number
- CN202310123815.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-14
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2043-02-14
AI Technical Summary
现有技术中,终端可通过Ut接口进行补充业务的配置,但是,补充业务往往涉及大量的配置数据,当补充业务的业务过程出错时,大量的配置数据导致难以定位配置异常数据
Smart Images

Figure CN117411778B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, specifically to a method, apparatus, computer equipment, and storage medium for processing log data for supplementary services. Background Technology
[0002] Supplementary services (SS) in 2G / 3G are services that modify or supplement basic call services. Examples of supplementary services include, but are not limited to, number display, call forwarding, call waiting, and call hold. In existing technologies, terminals can configure supplementary services via the Ut interface. However, supplementary services often involve a large amount of configuration data. When errors occur during the supplementary service process, the large amount of configuration data makes it difficult to locate the abnormal configuration data. Summary of the Invention
[0003] Therefore, it is necessary to provide a log data processing method, apparatus, computer equipment, and storage medium to supplement the above-mentioned technical problems, so as to improve the efficiency of locating configuration anomaly data.
[0004] Firstly, this application provides a method for processing log data for supplementary services, the method comprising:
[0005] Obtain basic configuration information for supplementary services, including protocol configuration information and time zone configuration information for supplementary services;
[0006] Extract the modem logs and parse the client address from the modem logs;
[0007] Extract network layer logs and parse the server address from the network layer logs;
[0008] Based on protocol configuration information, client address, and server address, filter target network layer logs from network layer logs;
[0009] The modem logs and target network layer logs are merged based on the time zone configuration information to obtain supplementary service configuration logs.
[0010] Identify the abnormal configuration data of the supplementary service based on the supplementary service configuration log.
[0011] In some embodiments of this application, the step of merging modem logs and target network layer logs based on time zone configuration information to obtain supplementary service configuration logs includes:
[0012] Based on the time zone configuration information, obtain the first local time corresponding to the UTC time in the target network layer log;
[0013] Based on the first local time in the target network layer log and the second local time in the modem log, the modem log and the target network layer log are merged to obtain a supplementary service configuration log.
[0014] In some embodiments of this application, the target network layer log includes the target authentication log and the target request log;
[0015] The steps for filtering target network layer logs from network layer logs based on protocol configuration information, client address, and server address include:
[0016] The protocol configuration information, client address, and server address are randomly combined to obtain multiple sets of combined configuration information.
[0017] Retrieve the target authentication logs that match the combined configuration information from the network layer logs;
[0018] Retrieve the target request logs that match the combined configuration information from the network layer logs.
[0019] In some embodiments of this application, the step of determining abnormal configuration data of supplementary services based on supplementary service configuration logs includes:
[0020] Match the supplementary business configuration logs with the preset log rules;
[0021] If the match fails, the business configuration log will be supplemented to identify the abnormal configuration data.
[0022] In some embodiments of this application, after the step of determining the supplementary service configuration log as configuration anomaly data, the method further includes:
[0023] Provide a log display interface to highlight configuration exception data.
[0024] In some embodiments of this application, the step of obtaining basic configuration information for supplementary services includes:
[0025] Determine the log file path corresponding to the preset type of log data;
[0026] Traverse the log file paths to check whether the log data of each preset type is complete;
[0027] If the log data for each preset type is complete, then obtain the basic configuration information for supplementary services.
[0028] Secondly, this application provides a log data processing apparatus for supplementary services, the apparatus comprising:
[0029] The basic configuration acquisition module is used to acquire the basic configuration information of the supplementary services. The basic configuration information includes the protocol configuration information and time zone configuration information of the supplementary services.
[0030] The client address acquisition module is used to extract modem logs and parse the client address from the modem logs;
[0031] The server address acquisition module is used to extract network layer logs and parse the server address from the network layer logs;
[0032] The log filtering module is used to filter target network layer logs from network layer logs based on protocol configuration information, client address, and server address.
[0033] The log merging module is used to merge modem logs and target network layer logs based on time zone configuration information to obtain supplementary service configuration logs.
[0034] The abnormal data determination module is used to determine abnormal configuration data of supplementary services based on the supplementary service configuration logs.
[0035] Thirdly, this application also provides a computer device, which includes:
[0036] One or more processors;
[0037] Memory; and
[0038] One or more applications, wherein one or more applications are stored in memory and configured to be executed by a processor to implement log data processing methods for supplementary business.
[0039] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to perform steps in a log data processing method for supplementary business operations.
[0040] The aforementioned supplementary service log data processing method, apparatus, computer equipment, and storage medium obtain basic configuration information for the supplementary service, including protocol configuration information and time zone configuration information. The method involves: extracting modem logs and parsing client addresses from them; extracting network layer logs and parsing server addresses from them; filtering target network layer logs from the network layer logs based on the protocol configuration information, client addresses, and server addresses; merging the modem logs and target network layer logs based on the time zone configuration information to obtain the supplementary service configuration log; and identifying abnormal configuration data for the supplementary service based on the supplementary service configuration log. By parsing client addresses from modem logs and server addresses from network layer logs, and then filtering target network layer logs from the network layer logs based on the protocol configuration information, client addresses, and server addresses, and merging the target network layer logs with the modem logs in chronological order to obtain the supplementary service configuration log, abnormal configuration data for the supplementary service can be quickly located from the supplementary service configuration log. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0042] Figure 1 This is a schematic diagram of a scenario for the log data processing method of supplementary services in an embodiment of this application;
[0043] Figure 2 This is a flowchart illustrating the log data processing method for supplementary services in this application embodiment;
[0044] Figure 3 This is a flowchart illustrating the image region acquisition step in an embodiment of this application;
[0045] Figure 4 This is a flowchart illustrating the steps for obtaining the object size recognition model in an embodiment of this application;
[0046] Figure 5 This is a schematic diagram of the log data processing device for supplementary services in this application embodiment;
[0047] Figure 6 This is a schematic diagram of the structure of the computer device in the embodiments of this application. Detailed Implementation
[0048] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0049] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0050] In the description of this application, the word "for example" is used to mean "used as an example, illustration, or description." Any embodiment described as "for example" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0051] The log data processing method for supplementary services provided in this application embodiment can be applied to, for example... Figure 1The supplementary service log data processing system shown includes a terminal 100 and a server 200. The server 200 obtains basic configuration information for the supplementary service from the terminal 100, including protocol configuration information and time zone configuration information. It also extracts modem logs, parses the client address from the modem logs, extracts network layer logs, and parses the server address from the network layer logs. Furthermore, based on the protocol configuration information, client address, and server address, the server 200 filters target network layer logs from the network layer logs. It merges the modem logs and target network layer logs based on the time zone configuration information to obtain the supplementary service configuration log. Based on the supplementary service configuration log, it identifies configuration anomalies in the supplementary service. The terminal 100 can be a device that includes both receiving and transmitting hardware, i.e., a device with receiving and transmitting hardware capable of performing bidirectional communication on a bidirectional communication link. Such a device can include cellular or other communication devices. Specifically, the terminal 100 can be a desktop terminal or a mobile terminal, such as a mobile phone, tablet computer, laptop computer, or a camera installed at the monitoring site for information collection, storage, and transmission. Server 200 can be a standalone server, or a server network or server cluster, including but not limited to computers, network hosts, single network servers, multiple network server sets, or cloud servers composed of multiple servers. Among them, cloud servers consist of a large number of computers or network servers based on cloud computing.
[0052] Those skilled in the art will understand that Figure 1 The application environment shown is merely one application scenario of the solution in this application and does not constitute a limitation on the application scenario of the solution in this application. Other application environments may include those that are more specific to this application. Figure 1 The number of computer devices shown is more or less, for example Figure 1 Only one server (200) is shown. It is understood that the log data processing system for this supplementary service may also include one or more other servers; specific details are not specified here. Additionally, as... Figure 1 As shown, the log data processing system for this supplementary service may also include a storage device for storing data, such as log data.
[0053] It should also be noted that, Figure 1The schematic diagram of the log data processing system for supplementary services shown is merely an example. The log data processing system and scenario for supplementary services described in this embodiment are intended to more clearly illustrate the technical solutions of this embodiment and do not constitute a limitation on the technical solutions provided by this embodiment. As those skilled in the art will know, with the evolution of the log data processing system for supplementary services and the emergence of new business scenarios, the technical solutions provided by this embodiment are also applicable to similar technical problems.
[0054] See Figure 2 This application provides a method for processing log data for supplementary services, mainly applied to the above-mentioned... Figure 1 Taking server 200 as an example, the method includes steps S210 to S230, as follows:
[0055] Step S210: Obtain the basic configuration information of the supplementary service, which includes the protocol configuration information and time zone configuration information of the supplementary service.
[0056] Supplementary services refer to services that modify or supplement basic call services. Specifically, supplementary services include, but are not limited to, number display services, call forwarding services, call waiting and call hold services, multi-party calling services, call restriction services, and call transfer services.
[0057] The basic configuration information for supplementary services includes, but is not limited to, protocol configuration information and time zone configuration information. Specifically, protocol configuration information includes protocol information and port information configured on the network side for supplementary services, such as the XML Configuration Access Protocol (XCAP), XCAP Port, BSF (Bootstrapping Server Function) protocol, and BSF Port. Time zone configuration information refers to the working time zone of supplementary services, which can be set to the value in [persist.sys.timezone]. For example, when the value of the time zone configuration information [persist.sys.timezone] is [America / Toronto], the working time zone of supplementary services is Coordinated Universal Time (UTC) minus 4 hours.
[0058] Specifically, a Radio Program module and a Prop Program module can be provided. Terminal 100 can extract supplementary service protocol configuration information from the Radio Log through the Radio Program module, and extract time zone configuration information from the Properties log through the Prop Program module.
[0059] Step S220: Extract the modem log and parse the client address from the modem log.
[0060] Among them, modem logs refer to log data that records communication between the terminal and the base station or server. It can be understood that when the modem provides core capabilities for the Qualcomm platform, the modem log is called Modem Log; when the modem provides core capabilities for the MTK platform, the modem log is called ELT (Evolved Logging Tool) Log.
[0061] The client address refers to the terminal's IP address. Each log entry in the modem log includes at least one client address; for example, the client address could be "IPv6:2001:56b:3f7f:7845:0:4e:3781:6401".
[0062] Specifically, an ELT Program module can be provided to extract and parse modem logs. By extracting and analyzing XCAP-related data in the modem logs, the client address can be determined.
[0063] Step S230: Extract the network layer logs and parse the server address from the network layer logs.
[0064] Among them, the network layer log records log data of request messages (such as HTTP / HTTPS requests, etc.) sent by the terminal to the supplementary service related servers; the server address refers to the IP address of the supplementary service related server.
[0065] Specifically, the domain name information in the network layer log can be resolved through the Domain Name System (DNS) to obtain the server address, which includes, but is not limited to, the BSF server address and the XCAP server address.
[0066] Step S240: Based on the protocol configuration information, client address, and server address, filter the target network layer logs from the network layer logs.
[0067] Understandably, the network layer logs between the terminal and the servers related to supplementary services not only record request messages during the supplementary service configuration process, but also record a large number of HTTP / HTTPS messages during the supplementary service implementation process. Therefore, after determining the server address and client address, the target network layer logs related to the supplementary service configuration process can be filtered from the network layer logs based on the protocol configuration information, client address, and server address.
[0068] Specifically, such as Figure 3 As shown, in one embodiment, the target network layer log includes target authentication log and target request log; the step of filtering the target network layer log from the network layer log based on protocol configuration information, client address, and server address includes:
[0069] Step S310: Randomly combine the protocol configuration information, client address, and server address to obtain multiple sets of combined configuration information;
[0070] Step S320: Obtain the target authentication logs that match the combined configuration information from the network layer logs;
[0071] Step S320: Obtain the target request logs that match the combined configuration information from the network layer logs.
[0072] Among them, the target authentication log refers to the log of the interaction between the terminal and the authentication server, such as the BSF server, to realize the authentication process; the target request data refers to the log of the interaction between the terminal and the supplementary service server, such as the XCAP server, to realize the configuration process of the supplementary service.
[0073] Specifically, after determining the server and client addresses, the protocol configuration information, client address, and server address can be randomly combined to obtain multiple sets of combined configuration information. For example, the server address includes bsf ip address and xcap ip address, the client address includes ue ip address 1, ue ip address 2, ... and ue ip address n, and the protocol configuration information includes bsf protocol, bsf port, xcap protocol, and xcap port. At this point, the protocol configuration information, client address, and server address can be randomly combined. The following shows four sets of combined configuration information (other sets of configuration information exist besides those shown below, but are not listed here):
[0074] Group 1: ue ip address 1, bsf ip address, bsf protocol, bsf port;
[0075] The second group: ue ip address 1, xcap ip address, xcap protocol, xcap port;
[0076] The third group: ue ip address n, bsf ip address, bsf protocol, bsf port;
[0077] Group 4: ue ip address n, xcap ip address, xcap protocol, xcap port;
[0078] Once multiple sets of combined configuration information are obtained, these combined configuration information can be used as query conditions to obtain all target authentication logs and target request data from the network layer logs.
[0079] Step S250: Merge the modem log and the target network layer log based on the time zone configuration information to obtain a supplementary service configuration log.
[0080] The time bases of modem logs and target network layer logs are often different. When performing configuration anomaly data detection, it is difficult to determine the correspondence between modem logs and target network layer logs, resulting in low efficiency of configuration anomaly data detection.
[0081] Specifically, after obtaining the modem log and the target network layer log, the time information in the modem log and the target network layer log can be aligned according to the time zone configuration information. Then, the modem log and the target network layer log are merged in sequence to align the modem log and the target network layer log, so as to quickly locate abnormal configuration data.
[0082] In one embodiment, such as Figure 4 As shown, the steps for merging modem logs and target network layer logs based on time zone configuration information to obtain supplementary service configuration logs include:
[0083] Step S410: Based on the time zone configuration information, obtain the first local time corresponding to the UTC time in the target network layer log;
[0084] Step S420: Based on the first local time in the target network layer log and the second local time in the modem log, merge the modem log and the target network layer log to obtain a supplementary service configuration log.
[0085] UTC (Universal Time Coordinated) refers to Coordinated Universal Time, also known as World Time. The capture of target network layer logs is based on UTC time; regardless of the terminal's location, the time information in the captured target network layer logs will be in UTC time. Modem logs, on the other hand, are captured based on local time. For example, if the terminal's timezone is set to Toronto, Canada, the time information in the captured modem logs will be Toronto's local time; similarly, if the terminal's timezone is set to Beijing, China, the time information in the captured modem logs will be Beijing's local time.
[0086] Specifically, the UTC time in the target network layer log can be switched to the first local time corresponding to the time zone configuration information based on the time zone configuration information. Then, according to the first local time in the target network layer log and the second local time in the modem log, the modem logs and target network layer logs with the same time are aligned one by one. Then, the aligned modem logs and target network layer logs are merged to achieve one-to-one merging of modem logs and target network layer logs with the same time.
[0087] Step S260: Determine the abnormal configuration data of the supplementary service based on the supplementary service configuration log.
[0088] After obtaining the supplementary service configuration log, abnormal configuration data for the supplementary service can be identified from the log. Specifically, in one embodiment, the step of identifying abnormal configuration data for the supplementary service based on the supplementary service configuration log may include: matching the supplementary service configuration log with preset log rules; if the matching fails, the supplementary service configuration log is identified as abnormal configuration data. By matching with preset log rules, abnormal configuration data in the supplementary service configuration log can be quickly found, improving the efficiency of abnormal data retrieval.
[0089] Furthermore, in one embodiment, after the supplementary service configuration log is identified as configuration abnormal data, a log display interface can be provided, and the configuration abnormal data can be highlighted in the log interface.
[0090] The above-described method for processing log data for supplementary services involves: obtaining basic configuration information for the supplementary services, including protocol configuration information and time zone configuration information; extracting modem logs and parsing client addresses from them; extracting network layer logs and parsing server addresses from them; filtering target network layer logs from the network layer logs based on the protocol configuration information, client addresses, and server addresses; merging the modem logs and target network layer logs based on the time zone configuration information to obtain the supplementary service configuration log; and identifying configuration anomalies in the supplementary services based on the supplementary service configuration log. By parsing client addresses from modem logs and server addresses from network layer logs, and then filtering target network layer logs from the network layer logs based on the protocol configuration information, client addresses, and server addresses, and merging the target network layer logs with the modem logs in chronological order to obtain the supplementary service configuration log, configuration anomalies in the supplementary services can be quickly located from the supplementary service configuration log.
[0091] In one embodiment, the step of obtaining basic configuration information for supplementary services includes: determining the log file path corresponding to log data of a preset type; traversing the log file path to check whether log data of each preset type is complete; and if log data of each preset type is complete, obtaining the basic configuration information for supplementary services.
[0092] Before obtaining the basic configuration information for supplementary services, it is necessary to check whether the log data used later is complete. If the log data is complete, the process of checking for abnormal configuration data continues. If the log data is incomplete, the process of checking for abnormal configuration data ends.
[0093] Specifically, the log file paths corresponding to preset types of log data can be predetermined, and then the log file paths can be traversed to check whether the log data of each preset type is complete. For example, the preset types of log data include Radio Log, Properties Log, Net Log, ELT Log, etc. Among them, Radio Log records protocol configuration information for supplementary services, Properties Log records time zone configuration information, Net Log refers to network layer log, and ELT Log refers to modem log. Specifically, it can check whether the .cap file under the log file path corresponding to ELT Log exists, whether the file starting with radio_log_ under the log file path corresponding to Radio Log exists, whether the file with the full name of properties under the log file path corresponding to Properties Log exists, and whether the .elg file under the log file path corresponding to ELT Log exists.
[0094] To better implement the log data processing method for supplementary services provided in the embodiments of this application, based on the log data processing method for supplementary services provided in the embodiments of this application, the embodiments of this application also provide a log data processing apparatus for supplementary services, such as... Figure 5 As shown, the log data processing device for supplementary services includes:
[0095] The basic configuration acquisition module 510 is used to acquire the basic configuration information of the supplementary service, including the protocol configuration information and time zone configuration information of the supplementary service.
[0096] The client address acquisition module 520 is used to extract modem logs and parse the client address from the modem logs;
[0097] The server address acquisition module 530 is used to extract network layer logs and parse the server address from the network layer logs.
[0098] Log filtering module 540 is used to filter target network layer logs from network layer logs based on protocol configuration information, client address, and server address.
[0099] The log merging module 550 is used to merge modem logs and target network layer logs based on time zone configuration information to obtain supplementary service configuration logs.
[0100] The abnormal data determination module 560 is used to determine abnormal configuration data of supplementary services based on the supplementary service configuration log.
[0101] In some embodiments of this application, the log merging module 550 is used to obtain the first local time corresponding to the UTC time in the target network layer log based on the time zone configuration information; and to merge the modem log and the target network layer log according to the first local time in the target network layer log and the second local time in the modem log to obtain a supplementary service configuration log.
[0102] In some embodiments of this application, the target network layer log includes target authentication log and target request log; the log filtering module 540 is used to randomly combine protocol configuration information, client address and server address to obtain multiple sets of combined configuration information; obtain target authentication logs that match the combined configuration information from the network layer log; and obtain target request logs that match the combined configuration information from the network layer log.
[0103] In some embodiments of this application, the abnormal data determination module 560 is used to match the supplementary service configuration log with preset log rules; if the matching fails, the supplementary service configuration log is determined to be abnormal configuration data.
[0104] In some embodiments of this application, the abnormal data determination module 560 is used to provide a log display interface, in which configuration abnormal data is highlighted.
[0105] In some embodiments of this application, the basic configuration acquisition module 510 is used to determine the log file path corresponding to the log data of the preset type; traverse the log file path to detect whether the log data of each preset type is complete; if the log data of each preset type is complete, then acquire the basic configuration information of the supplementary service.
[0106] In some embodiments of this application, the log data processing device 500 for supplementary services can be implemented as a computer program, which can be implemented in, for example... Figure 6 The computer device shown operates on this computer. The computer device's memory can store various program modules of the log data processing unit 500 that constitute this supplementary service, for example, Figure 5 The module shown includes a basic configuration acquisition module 510, a client address acquisition module 520, a server address acquisition module 530, a log filtering module 540, a log merging module 550, and an abnormal data determination module 560. The computer program comprised of these modules causes the processor to execute the steps in the log data processing method for supplementary services of the various embodiments of this application described in this specification.
[0107] For example, Figure 6 The computer equipment shown can be used as follows Figure 5 The basic configuration acquisition module 510 in the log data processing device 500 for supplementary services executes step S210. The computer device can execute step S220 via the client address acquisition module 520. The computer device can execute step S230 via the server address acquisition module 530. The computer device can execute step S240 via the log filtering module 540. The computer device can execute step S250 via the log merging module 550. The computer device can execute step S260 via the abnormal data determination module 560. The computer device includes a processor, memory, and a network interface connected via a system bus. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with external computer devices via a network connection. When the computer program is executed by the processor, it implements a log data processing method for supplementary services.
[0108] Those skilled in the art will understand that Figure 6The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0109] In some embodiments of this application, a computer device is provided, including one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processors of the following steps:
[0110] Obtain basic configuration information for supplementary services, including protocol configuration information and time zone configuration information for supplementary services;
[0111] Extract the modem logs and parse the client address from the modem logs;
[0112] Extract network layer logs and parse the server address from the network layer logs;
[0113] Based on protocol configuration information, client address, and server address, filter target network layer logs from network layer logs;
[0114] The modem logs and target network layer logs are merged based on the time zone configuration information to obtain supplementary service configuration logs.
[0115] Identify the abnormal configuration data of the supplementary service based on the supplementary service configuration log.
[0116] In some embodiments of this application, when the processor executes the computer program, it also performs the following steps: based on time zone configuration information, it obtains the first local time corresponding to the UTC time in the target network layer log; according to the first local time in the target network layer log and the second local time in the modem log, it merges the modem log and the target network layer log to obtain a supplementary service configuration log.
[0117] In some embodiments of this application, the target network layer log includes a target authentication log and a target request log; when the processor executes the computer program, it also performs the following steps: randomly combining protocol configuration information, client address and server address to obtain multiple sets of combined configuration information; obtaining target authentication logs that match the combined configuration information from the network layer log; obtaining target request logs that match the combined configuration information from the network layer log.
[0118] In some embodiments of this application, when the processor executes the computer program, it also performs the following steps: matching the supplementary service configuration log with preset log rules; if the matching fails, the supplementary service configuration log is determined to be configuration abnormal data.
[0119] In some embodiments of this application, when the processor executes the computer program, it also performs the following steps: providing a log display interface and highlighting configuration exception data in the log interface.
[0120] In some embodiments of this application, when the processor executes the computer program, it also performs the following steps: determining the log file path corresponding to the log data of a preset type; traversing the log file path to detect whether the log data of each preset type is complete; if the log data of each preset type is complete, then obtaining the basic configuration information of the supplementary service.
[0121] In some embodiments of this application, a computer-readable storage medium is provided, storing a computer program that is loaded by a processor, causing the processor to perform the following steps:
[0122] Obtain basic configuration information for supplementary services, including protocol configuration information and time zone configuration information for supplementary services;
[0123] Extract the modem logs and parse the client address from the modem logs;
[0124] Extract network layer logs and parse the server address from the network layer logs;
[0125] Based on protocol configuration information, client address, and server address, filter target network layer logs from network layer logs;
[0126] The modem logs and target network layer logs are merged based on the time zone configuration information to obtain supplementary service configuration logs.
[0127] Identify the abnormal configuration data of the supplementary service based on the supplementary service configuration log.
[0128] In some embodiments of this application, when the computer program is executed by the processor, it further implements the following steps: based on time zone configuration information, obtaining the first local time corresponding to the UTC time in the target network layer log; merging the modem log and the target network layer log according to the first local time in the target network layer log and the second local time in the modem log to obtain a supplementary service configuration log.
[0129] In some embodiments of this application, the target network layer log includes a target authentication log and a target request log; when the computer program is executed by the processor, it also performs the following steps: randomly combining protocol configuration information, client address and server address to obtain multiple sets of combined configuration information; obtaining target authentication logs that match the combined configuration information from the network layer log; obtaining target request logs that match the combined configuration information from the network layer log.
[0130] In some embodiments of this application, when the computer program is executed by the processor, it further performs the following steps: matching the supplementary service configuration log with preset log rules; if the matching fails, the supplementary service configuration log is determined to be configuration abnormal data.
[0131] In some embodiments of this application, when the computer program is executed by the processor, it further implements the following steps: providing a log display interface, in which configuration exception data is highlighted.
[0132] In some embodiments of this application, when the computer program is executed by the processor, it further performs the following steps: determining the log file path corresponding to the log data of a preset type; traversing the log file path to detect whether the log data of each preset type is complete; if the log data of each preset type is complete, then obtaining the basic configuration information of the supplementary service.
[0133] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0134] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0135] The above provides a detailed description of a log data processing method, apparatus, computer device, and storage medium for supplementary services provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for processing log data for supplementary business operations, characterized in that, The method includes: Obtain basic configuration information for supplementary services, wherein the basic configuration information includes protocol configuration information and time zone configuration information for the supplementary services; Extract the modem logs and parse the client address from the modem logs; Extract network layer logs and parse the server address from the network layer logs; Based on the protocol configuration information, the client address, and the server address, target network layer logs are filtered from the network layer logs. The modem log and the target network layer log are merged based on the time zone configuration information to obtain a supplementary service configuration log; The abnormal configuration data of the supplementary service is determined based on the supplementary service configuration log.
2. The method according to claim 1, characterized in that, The step of merging the modem logs and the target network layer logs based on the time zone configuration information to obtain supplementary service configuration logs includes: Based on the time zone configuration information, obtain the first local time corresponding to the UTC time in the target network layer log; Based on the first local time in the target network layer log and the second local time in the modem log, the modem log and the target network layer log are merged to obtain a supplementary service configuration log.
3. The method according to claim 1, characterized in that, The target network layer log includes the target authentication log and the target request log; The step of filtering target network layer logs from the network layer logs based on the protocol configuration information, the client address, and the server address includes: The protocol configuration information, the client address, and the server address are randomly combined to obtain multiple sets of combined configuration information. Obtain the target authentication logs that match the combined configuration information from the network layer logs; Obtain the target request logs that match the combined configuration information from the network layer logs.
4. The method according to claim 1, characterized in that, The step of determining the abnormal configuration data of the supplementary service based on the supplementary service configuration log includes: The supplementary service configuration logs are matched with preset log rules; If the matching fails, the supplementary business configuration log will be identified as configuration error data.
5. The method according to claim 4, characterized in that, After the step of determining the supplementary service configuration log as configuration anomaly data, the method further includes: Provide a log display interface, in which configuration exception data is highlighted.
6. The method according to claim 1, characterized in that, The steps for obtaining the basic configuration information of supplementary services include: Determine the log file path corresponding to the preset type of log data; Traverse the log file paths to check whether the log data of each preset type is complete; If the log data of each of the preset types is complete, then obtain the basic configuration information of the supplementary services.
7. The method according to claim 1, characterized in that, The step of parsing the server address from the network layer log includes: The server address is obtained by resolving the domain name information in the network layer log using the Domain Name System.
8. A log data processing device for supplementary services, characterized in that, The device includes: The basic configuration acquisition module is used to acquire basic configuration information of the supplementary service, wherein the basic configuration information includes the protocol configuration information and time zone configuration information of the supplementary service; A client address acquisition module is used to extract modem logs and parse the client address from the modem logs; The server address acquisition module is used to extract network layer logs and parse the server address from the network layer logs; The log filtering module is used to filter target network layer logs from the network layer logs based on the protocol configuration information, the client address, and the server address. The log merging module is used to merge the modem logs and the target network layer logs based on the time zone configuration information to obtain supplementary service configuration logs; The abnormal data determination module is used to determine the abnormal configuration data of the supplementary service based on the supplementary service configuration log.
9. A computer device, characterized in that, The computer device includes: One or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the log data processing method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, It stores a computer program, which is loaded by a processor to perform the steps in the log data processing method for supplementary services as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Log data processing method, device and equipment and computer readable storage medium
CN111274095A