CN117336081A - Abnormal log monitoring method, device, equipment and computer storage medium - Google Patents
Abnormal log monitoring method, device, equipment and computer storage medium Download PDFInfo
- Publication number
- CN117336081A CN117336081A CN202311393647.0A CN202311393647A CN117336081A CN 117336081 A CN117336081 A CN 117336081A CN 202311393647 A CN202311393647 A CN 202311393647A CN 117336081 A CN117336081 A CN 117336081A
- Authority
- CN
- China
- Prior art keywords
- log
- data
- abnormal
- target system
- program
- 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.)
- Pending
Links
- 230000002159 abnormal effect Effects 0.000 title claims abstract description 211
- 238000012544 monitoring process Methods 0.000 title claims abstract description 80
- 238000000034 method Methods 0.000 title claims abstract description 68
- 238000013500 data storage Methods 0.000 claims abstract description 21
- 238000012806 monitoring device Methods 0.000 claims abstract description 19
- 230000005856 abnormality Effects 0.000 claims description 6
- 238000012545 processing Methods 0.000 abstract description 31
- 230000008569 process Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 5
- 238000009825 accumulation Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000003542 behavioural effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1408—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1408—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
- H04L63/1425—Traffic logging, e.g. anomaly detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/12—Detection or prevention of fraud
- H04W12/121—Wireless intrusion detection systems [WIDS]; Wireless intrusion prevention systems [WIPS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种异常日志监测方法、装置、设备和计算机存储介质。The present application relates to the field of communication technology, and in particular to an abnormal log monitoring method, device, equipment and computer storage medium.
背景技术Background technique
在无线网等系统中,通常会面临数据迭代快、数据量大、历史数据多且异常、数据质量低且不稳定,以及系统迭代后登录异常等问题。通过日志监测系统可以记录用户在出现异常情况的前后行为操作和异常触发时间,从而便于迅速定位问题发生点,可以及时制定有针对性的改进方案,在提升用户使用体验上和敏捷迭代时具有重大的意义。In systems such as wireless networks, there are usually problems such as fast data iteration, large data volume, large and abnormal historical data, low and unstable data quality, and abnormal login after system iteration. The log monitoring system can record the user's behavioral operations before and after abnormal situations and the abnormal trigger time, so as to quickly locate the point where the problem occurs, and formulate targeted improvement plans in a timely manner, which is of great significance in improving user experience and agile iteration. meaning.
在现有的日志系统中,大多为用户进行一次操作,客户端就向服务端发送一次日志记录,从而达到日志实时监测的效果;但是,由于日志本身是针对用户在使用过程中,出现异常情况时实现迅速定位问题的效果,实时的发送数据必然会导致大量垃圾数据堆积在服务端,从而给服务端带来较大的数据处理和存储压力,并且,实时发送日志记录的实际价值和意义均较低。In the existing log system, most of the users perform an operation, and the client sends a log record to the server, thereby achieving the effect of real-time log monitoring; however, since the log itself is for the user, abnormal situations occur during the use process. The effect of quickly locating problems can be achieved in real time. Sending data in real time will inevitably lead to a large amount of junk data accumulating on the server, which will bring greater data processing and storage pressure to the server. Moreover, the actual value and significance of sending log records in real time are both lower.
因此,通过实时的方式来记录日志,使得服务器在短时间内收到大量的操作请求,从而需要耗费大量的在处理日志的高并发以及海量垃圾数据上,并且,在针对异常数据进行处理的时候,还需要先在大量数据中筛出异常数据,增加了大量的额外工作。Therefore, recording logs in a real-time manner causes the server to receive a large number of operation requests in a short period of time, which requires a lot of time in processing logs with high concurrency and massive garbage data, and when processing abnormal data , it is also necessary to filter out abnormal data from a large amount of data, which adds a lot of extra work.
发明内容Contents of the invention
本申请提供一种异常日志监测方法、装置、设备和计算机存储介质,用以解决现有技术中实时进行日志记录,导致服务器的存储压力、数据处理需求的增加,以及无法及时定位异常数据的缺陷。This application provides an abnormal log monitoring method, device, equipment and computer storage medium to solve the existing technology's shortcomings in real-time logging, which results in increased storage pressure on the server, increased data processing requirements, and the inability to locate abnormal data in a timely manner. .
第一方面,本申请提供一种异常日志监测方法,包括:In the first aspect, this application provides an abnormal log monitoring method, including:
获取目标系统的工作状态,所述目标系统用于指示目标用户选择运行的前端服务;Obtain the working status of the target system, which is used to instruct the target user to select a front-end service to run;
在所述目标系统的工作状态为运行状态时,判断当前是否配置有与客户端对应的日志数据库;When the working state of the target system is a running state, determine whether a log database corresponding to the client is currently configured;
若当前配置有与所述客户端对应的所述日志数据库,则判断第一预设周期内的日志数据是否存在异常记录;If the log database corresponding to the client is currently configured, determine whether there are abnormal records in the log data within the first preset period;
在所述第一预设周期内的日志数据存在异常记录时,获取与所述异常记录对应的第一预设周期内的日志数据,并将所述日志数据发送至服务端。When there is an abnormal record in the log data in the first preset period, the log data in the first preset period corresponding to the abnormal record is obtained, and the log data is sent to the server.
可选的,在所述判断第一预设周期内的日志数据是否存在异常记录之前,所述方法还包括:Optionally, before determining whether there are abnormal records in the log data within the first preset period, the method further includes:
获取所述目标用户的登录事件,并加载与所述日志数据库对应的日志程序,所述日志程序用于指示所述客户端对所述目标系统进行日志记录;Obtain the login event of the target user, and load a log program corresponding to the log database, where the log program is used to instruct the client to log the target system;
控制所述日志程序记录所述登录事件,并控制所述日志程序对所述目标系统进行实时监测和记录。Control the log program to record the login event, and control the log program to monitor and record the target system in real time.
可选的,所述控制所述日志程序对所述目标系统进行实时监测和记录,包括:Optionally, the controlling the log program to monitor and record the target system in real time includes:
控制所述日志程序对所述目标系统进行实时监测;Control the log program to monitor the target system in real time;
根据所述日志程序的监测结果,确定当前所述目标系统的点击事件,所述点击事件用于指示所述目标用户的实时操作;According to the monitoring results of the log program, determine the current click event of the target system, and the click event is used to indicate the real-time operation of the target user;
通过所述点击事件触发所述日志程序的记录事件,控制所述日志程序记录与所述记录事件对应的所述日志数据。The click event triggers the recording event of the log program, and controls the log program to record the log data corresponding to the recording event.
可选的,所述控制所述日志程序记录与所述记录事件对应的所述日志数据,包括:Optionally, the controlling the log program to record the log data corresponding to the recording event includes:
根据所述日志程序,确定与所述日志数据库对应的数据记录程序;According to the log program, determine a data recording program corresponding to the log database;
根据所述数据记录程序,将所述日志数据记录至所述日志数据库;According to the data recording program, record the log data to the log database;
若当前记录的日志数据为异常日志数据,则在所述日志数据库中对所述异常日志数据进行标记。If the currently recorded log data is abnormal log data, the abnormal log data is marked in the log database.
可选的,所述异常日志监测方法还包括:Optionally, the abnormal log monitoring method also includes:
若所述第一预设周期内不存在异常记录,则控制所述日志程序继续对所述目标系统进行实时监测和记录;If there is no abnormal record within the first preset period, control the log program to continue to monitor and record the target system in real time;
根据所述监测结果,确定所述目标系统是否出现异常事件;According to the monitoring results, determine whether an abnormal event occurs in the target system;
在所述目标系统是否出现异常事件时,根据所述异常事件,确定与所述异常事件对应的所述记录事件;When an abnormal event occurs in the target system, determine the recorded event corresponding to the abnormal event according to the abnormal event;
控制所述日志程序将与所述记录事件对应的所述异常日志数据进行记录;Control the log program to record the abnormal log data corresponding to the recording event;
将所述异常日志数据发送至所述服务端,并在所述日志数据库中对所述异常日志数据进行标记。The abnormal log data is sent to the server, and the abnormal log data is marked in the log database.
可选的,所述异常日志监测方法还包括:Optionally, the abnormal log monitoring method also includes:
在当前配置有与所述客户端对应的所述日志数据库时,获取所述目标系统的当前日期;When the log database corresponding to the client is currently configured, obtain the current date of the target system;
判断所述当前日期与预设日期是否一致;Determine whether the current date is consistent with the preset date;
若所述当前日期与预设日期一致,则对所述日志数据库中的第二预设周期内的所有日志数据进行删除处理;If the current date is consistent with the preset date, delete all log data within the second preset period in the log database;
若所述当前日期与预设日期不一致,则控制所述日志程序继续对所述目标系统进行实时监测和记录。If the current date is inconsistent with the preset date, the log program is controlled to continue to monitor and record the target system in real time.
可选的,所述异常日志监测方法还包括:Optionally, the abnormal log monitoring method also includes:
若未配置有与所述客户端对应的所述日志数据库,则根据所述目标系统,生成与所述目标系统对应的数据存储表;If the log database corresponding to the client is not configured, generate a data storage table corresponding to the target system according to the target system;
加载与所述目标系统对应的日志程序;Load the log program corresponding to the target system;
根据所述数据存储表和所述日志程序,重新建立与所述客户端对应的日志数据库;According to the data storage table and the log program, re-establish a log database corresponding to the client;
控制所述日志程序对所述目标系统进行实时监测和记录,并将所述日志数据存储至所述日志数据库。Control the log program to monitor and record the target system in real time, and store the log data in the log database.
第二方面,本申请提供一种异常日志监测装置,包括:In the second aspect, this application provides an abnormal log monitoring device, including:
获取模块,用于获取目标系统的工作状态,所述目标系统用于指示目标用户选择运行的前端服务。The acquisition module is used to acquire the working status of the target system, and the target system is used to instruct the target user to select a front-end service to run.
判断模块,用于在所述目标系统的工作状态为运行状态时,判断当前是否配置有与客户端对应的日志数据库。The judgment module is used to judge whether a log database corresponding to the client is currently configured when the working state of the target system is a running state.
若当前配置有与所述客户端对应的所述日志数据库,则所述判断模块,还用于判断第一预设周期内的日志数据是否存在异常记录。If the log database corresponding to the client is currently configured, the determination module is also used to determine whether there is an abnormal record in the log data within the first preset period.
所述获取模块,还用于在所述第一预设周期内的日志数据存在异常记录时,获取与所述异常记录对应的第一预设周期内的日志数据。The acquisition module is also configured to acquire the log data in the first preset period corresponding to the abnormal record when there is an abnormal record in the log data in the first preset period.
发送模块,用于将所述日志数据发送至服务端。A sending module is used to send the log data to the server.
可选的,所述获取模块,还用于获取所述目标用户的登录事件。Optionally, the acquisition module is also used to acquire the login event of the target user.
所述异常日志监测装置还包括:处理模块。The abnormal log monitoring device also includes: a processing module.
所述处理模块,用于加载与所述日志数据库对应的日志程序,所述日志程序用于指示所述客户端对所述目标系统进行日志记录。The processing module is used to load a log program corresponding to the log database, and the log program is used to instruct the client to log the target system.
所述异常日志监测装置还包括:控制模块。The abnormal log monitoring device also includes: a control module.
所述控制模块,用于控制所述日志程序记录所述登录事件,并控制所述日志程序对所述目标系统进行实时监测和记录。The control module is used to control the log program to record the login event, and to control the log program to monitor and record the target system in real time.
可选的,所述控制模块,还用于控制所述日志程序对所述目标系统进行实时监测。Optionally, the control module is also used to control the log program to monitor the target system in real time.
所述异常日志监测装置还包括:确定模块。The abnormal log monitoring device also includes: a determination module.
所述确定模块,用于根据所述日志程序的监测结果,确定当前所述目标系统的点击事件,所述点击事件用于指示所述目标用户的实时操作。The determination module is configured to determine the current click event of the target system according to the monitoring result of the log program, and the click event is used to indicate the real-time operation of the target user.
所述控制模块,还用于通过所述点击事件触发所述日志程序的记录事件,控制所述日志程序记录与所述记录事件对应的所述日志数据。The control module is further configured to trigger a recording event of the log program through the click event, and control the log program to record the log data corresponding to the recording event.
可选的,所述确定模块,还用于根据所述日志程序,确定与所述日志数据库对应的数据记录程序。Optionally, the determination module is also configured to determine a data recording program corresponding to the log database according to the log program.
所述处理模块,还用于根据所述数据记录程序,将所述日志数据记录至所述日志数据库。The processing module is also configured to record the log data to the log database according to the data recording program.
若当前记录的日志数据为异常日志数据,则所述处理模块,还用于在所述日志数据库中对所述异常日志数据进行标记。If the currently recorded log data is abnormal log data, the processing module is also configured to mark the abnormal log data in the log database.
可选的,若所述第一预设周期内不存在异常记录,则所述控制模块,还用于控制所述日志程序继续对所述目标系统进行实时监测和记录。Optionally, if there is no abnormal record within the first preset period, the control module is also used to control the log program to continue to monitor and record the target system in real time.
所述确定模块,还用于根据所述监测结果,确定所述目标系统是否出现异常事件。The determination module is also used to determine whether an abnormal event occurs in the target system based on the monitoring results.
所述确定模块,还用于在所述目标系统是否出现异常事件时,根据所述异常事件,确定与所述异常事件对应的所述记录事件。The determination module is also configured to determine, based on the abnormal event, the recording event corresponding to the abnormal event when an abnormal event occurs in the target system.
所述控制模块,还用于控制所述日志程序将与所述记录事件对应的所述异常日志数据进行记录。The control module is also used to control the log program to record the abnormal log data corresponding to the recording event.
所述发送模块,还用于将所述异常日志数据发送至所述服务端。The sending module is also used to send the abnormal log data to the server.
所述处理模块,还用于在所述日志数据库中对所述异常日志数据进行标记。The processing module is also used to mark the abnormal log data in the log database.
可选的,所述获取模块,还用于在当前配置有与所述客户端对应的所述日志数据库时,获取所述目标系统的当前日期。Optionally, the acquisition module is also configured to acquire the current date of the target system when the log database corresponding to the client is currently configured.
所述判断模块,还用于判断所述当前日期与预设日期是否一致。The judgment module is also used to judge whether the current date is consistent with the preset date.
若所述当前日期与预设日期一致,则所述处理模块,还用于对所述日志数据库中的第二预设周期内的所有日志数据进行删除处理。If the current date is consistent with the preset date, the processing module is also configured to delete all log data within the second preset period in the log database.
若所述当前日期与预设日期不一致,则所述控制模块,还用于控制所述日志程序继续对所述目标系统进行实时监测和记录。If the current date is inconsistent with the preset date, the control module is also used to control the log program to continue to monitor and record the target system in real time.
可选的,所述异常日志监测装置还包括:生成模块。Optionally, the abnormal log monitoring device further includes: a generation module.
若未配置有与所述客户端对应的所述日志数据库,则所述生成模块,用于根据所述目标系统,生成与所述目标系统对应的数据存储表。If the log database corresponding to the client is not configured, the generating module is configured to generate a data storage table corresponding to the target system according to the target system.
所述处理模块,还用于加载与所述目标系统对应的日志程序。The processing module is also used to load a log program corresponding to the target system.
所述生成模块,还用于根据所述数据存储表和所述日志程序,重新建立与所述客户端对应的日志数据库。The generation module is also configured to re-establish a log database corresponding to the client according to the data storage table and the log program.
所述处理模块,还用于将所述日志数据存储至所述日志数据库。The processing module is also used to store the log data into the log database.
第三方面,本申请提供一种异常日志监测设备,包括:In the third aspect, this application provides an abnormal log monitoring device, including:
存储器;memory;
处理器;processor;
其中,所述存储器存储计算机执行指令;Wherein, the memory stores computer execution instructions;
所述处理器执行所述存储器存储的计算机执行指令,以实现如上述第一方面及第一方面各种可能的实现方式所述的异常日志监测方法。The processor executes the computer execution instructions stored in the memory to implement the abnormal log monitoring method as described in the above first aspect and various possible implementations of the first aspect.
第四方面,本申请提供一种计算机存储介质,其上存储有计算机执行指令,所述计算机执行指令被处理器执行以实现如上述第一方面及第一方面各种可能的实现方式所述的异常日志监测方法。In a fourth aspect, the present application provides a computer storage medium on which computer execution instructions are stored, and the computer execution instructions are executed by a processor to implement the above-mentioned first aspect and various possible implementations of the first aspect. Exception log monitoring method.
本申请提供的异常日志监测方法,通过获取目标系统的工作状态,并在目标系统的工作状态为运行状态时,判断当前是否配置有与客户端对应的日志数据库;若当前配置有与客户端对应的所述日志数据库,则判断第一预设周期内的日志数据是否存在异常记录;在第一预设周期内的日志数据存在异常记录时,获取与异常记录对应的第一预设周期内的日志数据,并将该日志数据发送至服务端;在第一预设周期内的日志数据不存在异常记录时,继续对运行数据进行监测,并在出现异常情况时,对该异常情况对应的运行数据进行记录,得到相应的异常日志数据,并将该异常日志数据发送至服务端。该方法减少了服务端由于高并发带来的数据处理压力,避免了服务端出现大量数据堆积的情况,减少了服务端数据存储的压力,实现了异常问题的精准定位,提高了用户的使用体验。The abnormal log monitoring method provided by this application obtains the working status of the target system, and when the working status of the target system is running, determines whether there is a log database corresponding to the client currently configured; if there is a log database corresponding to the client currently configured of the log database, then determine whether there is an abnormal record in the log data within the first preset period; when there is an abnormal record in the log data within the first preset period, obtain the abnormal record in the first preset period corresponding to the abnormal record Log data, and send the log data to the server; when there is no abnormal record in the log data within the first preset period, continue to monitor the operating data, and when an abnormal situation occurs, run the operation corresponding to the abnormal situation. Record the data, obtain the corresponding abnormal log data, and send the abnormal log data to the server. This method reduces the data processing pressure on the server due to high concurrency, avoids the accumulation of large amounts of data on the server, reduces the pressure on data storage on the server, achieves precise location of abnormal problems, and improves the user experience. .
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
图1为本申请提供的异常日志监测方法的场景示意图;Figure 1 is a schematic diagram of the scenario of the abnormal log monitoring method provided by this application;
图2为本申请提供的异常日志监测方法的流程示意图一;Figure 2 is a schematic flow chart of the abnormal log monitoring method provided by this application;
图3为本申请提供的异常日志监测方法的流程示意图二;Figure 3 is a flow diagram 2 of the abnormal log monitoring method provided by this application;
图4为本申请提供的异常日志监测装置的结构示意图;Figure 4 is a schematic structural diagram of the abnormal log monitoring device provided by this application;
图5为本申请提供的异常日志监测设备的结构示意图。Figure 5 is a schematic structural diagram of the abnormal log monitoring equipment provided by this application.
通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。Through the above-mentioned drawings, clear embodiments of the present application have been shown, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present application's concepts in any way, but are intended to illustrate the application's concepts for those skilled in the art with reference to specific embodiments.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the appended claims.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例例如能够以除了在这里图示或描述的那些以外的顺序实施。The terms "first", "second", "third", "fourth", etc. (if present) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects without necessarily using Used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the invention described herein, for example, can be practiced in sequences other than those illustrated or described herein.
本申请实施例中,“示例性的”或者“例如”等词用于表示例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of this application, words such as "exemplary" or "for example" are used to express examples, illustrations or illustrations. Any embodiment or design described herein as "exemplary" or "such as" is not intended to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words "exemplary" or "such as" is intended to present the concept in a concrete manner.
需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,并且相关数据的收集、使用和处理需要遵守相关法律法规和标准,并提供有相应的操作入口,供用户选择授权或者拒绝。It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all It is information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards, and a corresponding operation entrance is provided for the user to choose to authorize or refuse.
在无线网等系统中,通常会面临数据迭代快、数据量大、历史数据多且异常、数据质量低且不稳定,以及系统迭代后登录异常等问题。日志是服务器在运行的时候所产生的数据,它不仅包含了网络设备、系统及服务程序,还包含了日期、时间、使用者及动作等相关操作的描述;通过用户的操作日志,可以帮助开发人员迅速锁定问题,从而修复改进系统。通过日志监测系统可以记录用户在出现异常情况的前后行为操作和异常触发时间,从而便于迅速定位问题发生点,可以及时制定有针对性的改进方案,在提升用户使用体验上和敏捷迭代时具有重大的意义。In systems such as wireless networks, there are usually problems such as fast data iteration, large data volume, large and abnormal historical data, low and unstable data quality, and abnormal login after system iteration. Logs are data generated when the server is running. It not only includes network equipment, systems and service programs, but also includes descriptions of related operations such as date, time, users and actions. Through user operation logs, it can help develop People quickly identify problems so they can fix and improve the system. The log monitoring system can record the user's behavioral operations before and after abnormal situations and the abnormal trigger time, so as to quickly locate the point where the problem occurs, and formulate targeted improvement plans in a timely manner, which is of great significance in improving user experience and agile iteration. meaning.
在现有的日志系统中,日志通常存储在服务端,大多为用户进行一次操作,客户端就向服务端发送一次日志记录,从而达到日志实时监测的效果;但是,由于日志本身是针对用户在使用过程中,出现异常情况时实现迅速定位问题的效果,实时的发送数据必然会导致大量垃圾数据堆积在服务端,从而给服务端带来较大的数据处理和存储压力,并且,实时发送日志记录的实际价值和意义均较低。In existing log systems, logs are usually stored on the server. Most of the time, the client sends a log record to the server once the user performs an operation, thereby achieving the effect of real-time monitoring of the log; however, since the log itself is for the user, During use, it can achieve the effect of quickly locating problems when abnormal situations occur. Sending data in real time will inevitably lead to a large amount of junk data accumulating on the server, which will bring greater data processing and storage pressure to the server. Moreover, real-time log sending The actual value and significance of the record is low.
因此,通过实时的方式来记录日志,使得服务器在短时间内收到大量的操作请求,从而需要耗费大量的在处理日志的高并发以及海量垃圾数据上;此外,服务端在对日志中记录的数据进行存储时,存储的数据中可能还包含用户的敏感数据,且该数据用户并不希望进行存储;在针对异常数据进行处理的时候,还需要先在大量数据中筛出异常数据,增加了大量的额外工作。Therefore, recording logs in a real-time manner causes the server to receive a large number of operation requests in a short period of time, which requires a lot of time in processing logs with high concurrency and massive garbage data; in addition, the server needs to process the logs recorded in the logs. When the data is stored, the stored data may also contain the user's sensitive data, and the user does not want to store the data; when processing abnormal data, it is also necessary to filter out the abnormal data from a large amount of data, which increases A lot of extra work.
针对上述问题,本申请提供一种异常日志监测方法。In response to the above problems, this application provides an abnormal log monitoring method.
首先,对本申请涉及的实施场景进行说明。First, the implementation scenarios involved in this application are described.
图1是本申请提供的异常日志监测方法的场景示意图。如图1所示,客户端1与服务端2通信连接。客户端1可以通过自身配置的日志监测程序,监测当前运行过程中是否存在异常情况,并在异常情况存在时,将相应的日志数据发送至服务端2。其中,客户端1例如可以为配置有日志监测程序的用户终端,服务端2例如可以为服务器。Figure 1 is a schematic diagram of the scenario of the abnormal log monitoring method provided by this application. As shown in Figure 1, client 1 communicates with server 2. Client 1 can use its own configured log monitoring program to monitor whether there are any abnormal conditions during the current operation, and when abnormal conditions exist, send corresponding log data to server 2. The client 1 may be, for example, a user terminal configured with a log monitoring program, and the server 2 may be, for example, a server.
本申请提供的异常日志监测方法,通过在客户端建立日志数据库,控制日志监测系统对运行的数据信息进行监测和记录,即可得到日志数据,并监测和记录的日志数据存储至该日志数据库中;在出现异常事件时,客户端可以从日志数据库中获取该异常事件对应的日志数据,即异常日志数据,并将异常日志数据发送至服务端,完成当次对异常事件的监测和记录。该方法减少了服务端由于高并发带来的数据处理压力,避免了服务端出现大量数据堆积的情况,减少了服务端数据存储的压力,实现了异常问题的精准定位,提高了用户的使用体验。The abnormal log monitoring method provided by this application can obtain log data by establishing a log database on the client and controlling the log monitoring system to monitor and record the running data information, and the monitored and recorded log data is stored in the log database. ; When an abnormal event occurs, the client can obtain the log data corresponding to the abnormal event from the log database, that is, the abnormal log data, and send the abnormal log data to the server to complete the monitoring and recording of the abnormal event. This method reduces the data processing pressure on the server due to high concurrency, avoids the accumulation of large amounts of data on the server, reduces the pressure on data storage on the server, achieves precise location of abnormal problems, and improves the user experience. .
可以理解的,本申请的下述实施例中对目标用户选择的目标系统不做特殊限制,其中,目标系统是客户端中可以为用户提供的相应的前端服务,且该前端服务例如可以为浏览器、线上APP等,下述实施例以目标用户选择的目标系统为浏览器为例进行具体说明。It can be understood that in the following embodiments of the present application, there are no special restrictions on the target system selected by the target user. The target system is a corresponding front-end service that can be provided to the user in the client, and the front-end service can be, for example, browsing. browser, online APP, etc. The following embodiments take the target system selected by the target user as a browser as an example for detailed description.
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本申请的实施例进行描述。The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.
图2为本申请实施例提供的异常日志监测方法的流程图一。本实施例的执行主体例如可以为配置有日志监测程序的用户终端。如图2所示,本实施例提供的异常日志监测方法,包括:Figure 2 is a flowchart 1 of the abnormal log monitoring method provided by the embodiment of the present application. The execution subject of this embodiment may be, for example, a user terminal configured with a log monitoring program. As shown in Figure 2, the abnormal log monitoring method provided by this embodiment includes:
S201:获取目标系统的工作状态。S201: Obtain the working status of the target system.
S202:在所述目标系统的工作状态为运行状态时,判断当前是否配置有与客户端对应的日志数据库。S202: When the working state of the target system is a running state, determine whether a log database corresponding to the client is currently configured.
其中,目标系统用于指示目标用户选择运行的前端服务,工作状态用于指示目标用户是否登入当前选择的目标系统,日志数据库用于存储目标系统运行过程中的数据信息。Among them, the target system is used to instruct the target user to select the front-end service to run, the working status is used to indicate whether the target user logs in to the currently selected target system, and the log database is used to store data information during the operation of the target system.
可以理解的,工作状态包括:运行状态和未运行状态;运行状态表明目标用户登入了当前选择的目标系统,且目标系统开始运行以及产生相应的运行数据;未运行状态表明目标用户未登入当前选的目标系统;日志可以对产生的运行数据进行记录,得到目标用户在操作目标系统过程中产生的日志数据,并将该数据存储至日志数据库中;为了实现对目标系统运行过程中产生的数据信息的实时监测,客户端上还配置有与日志数据库对应的日志监测系统。It can be understood that the working status includes: running status and non-running status; the running status indicates that the target user has logged in to the currently selected target system, and the target system has started running and generated corresponding running data; the non-running status indicates that the target user has not logged in to the currently selected target system. The target system; the log can record the generated operating data, obtain the log data generated by the target user during the operation of the target system, and store the data in the log database; in order to realize the data information generated during the operation of the target system For real-time monitoring, the client is also configured with a log monitoring system corresponding to the log database.
该步骤判断当前是否配置有与客户端对应的日志数据库的目的是为了确定数据信息是否有存储的位置,且在客户端建立相应的日志数据库,还可以减少服务端数据的处理和存储压力。The purpose of this step to determine whether a log database corresponding to the client is currently configured is to determine whether the data information has a storage location, and to establish a corresponding log database on the client, which can also reduce the processing and storage pressure of data on the server.
通过对目标用户是否登入目标系统的检测,可以确定目标系统的工作状态;当目标系统的工作状态为运行状态时,判断当前客户端中是否配置有相应的日志数据库,从而确定当前产生的日志数据的存储位置;若当前客户端中配置有相应的日志数据库,则表明当前可以对日志数据进行正常的监测和记录,此时控制相应的监测程序对目标用户在操作目标系统过程中产生的日志数据进行监测和记录;若当前客户端中未配置有相应的日志数据库,为了确保产生的日志数据能否被及时、准确地存储,需要根据当前客户端建立相应的日志数据库。By detecting whether the target user logs into the target system, the working status of the target system can be determined; when the working status of the target system is running, it is determined whether the corresponding log database is configured in the current client, thereby determining the currently generated log data. storage location; if the current client is configured with a corresponding log database, it indicates that the log data can currently be monitored and recorded normally. At this time, the corresponding monitoring program is controlled to monitor the log data generated by the target user during the operation of the target system. Monitor and record; if the current client is not configured with a corresponding log database, in order to ensure that the generated log data can be stored promptly and accurately, a corresponding log database needs to be established based on the current client.
例如,用户当前选择的目标系统可以为浏览器,用户终端可以对用户是否登入该浏览器进行检测,从而确定用户当前进行的操作以及与该操作对应的浏览器是否运行;在用户登入相应的浏览器后,对当前是否存在日志数据库进行检测,且该日志数据库可以为indexed数据库;在确定indexed数据库存在之后,通过用户终端自身配置的日志监测系统,对用户操作过程中产生的运行数据进行监测和记录;若indexed数据库不存在,则根据用户终端重新建立indexed数据库。本实施例对目标浏览器不做特殊限制。For example, the target system currently selected by the user can be a browser, and the user terminal can detect whether the user is logged in to the browser, thereby determining the user's current operation and whether the browser corresponding to the operation is running; when the user logs in to the corresponding browser After the server is installed, it is detected whether a log database currently exists, and the log database can be an indexed database; after it is determined that the indexed database exists, the operating data generated during the user's operation is monitored and processed through the log monitoring system configured by the user terminal itself. Record; if the indexed database does not exist, the indexed database will be re-established according to the user terminal. This embodiment places no special restrictions on the target browser.
S203:若当前配置有与所述客户端对应的所述日志数据库,则判断第一预设周期内的日志数据是否存在异常记录。S203: If the log database corresponding to the client is currently configured, determine whether there are abnormal records in the log data within the first preset period.
其中,异常记录用于指示目标用户在操作目标系统的过程中,对于出现的异常事件进行记录得到的相应信息;第一预设周期例如可以为3天。The exception record is used to instruct the target user to record corresponding information about abnormal events that occur while operating the target system; the first preset period may be, for example, 3 days.
该步骤判断第一预设周期内的日志数据是否存在异常记录的目的是为了确定是否需要上传日志数据至服务端。The purpose of this step of determining whether there are abnormal records in the log data within the first preset period is to determine whether it is necessary to upload the log data to the server.
若当前配置有与客户端对应的日志数据库,则表明目标用户在操作目标系统过程中产生的日志数据可以被存储和记录,且客户端当前配置的日志数据库中至少存储有前次运行时产生的日志数据,此时,对日志数据库中的数据进行判断,判断第一预设周期内的日志数据是否存在异常记录。If there is a log database corresponding to the client currently configured, it means that the log data generated by the target user during the operation of the target system can be stored and recorded, and the log database currently configured by the client stores at least the log data generated during the previous run. Log data. At this time, the data in the log database is judged to determine whether there are abnormal records in the log data within the first preset period.
若第一预设周期内的日志数据存在异常记录,则表明客户端在第一预设周期内的运行过程中存在异常事件,且日志监测系统已对该异常事件进行监测和记录,与该异常事件对应的日志数据也被存储至日志数据库,并对标记该数据为异常数据,此时,为了确保服务端能够对异常事件进行精准定位和及时处理,需要获取第一预设周期内日志数据库中的全部日志数据,并将该日志数据发送至服务端,完成此次对异常日志数据的监测。If there is an abnormal record in the log data within the first preset period, it indicates that there is an abnormal event during the operation of the client within the first preset period, and the log monitoring system has monitored and recorded the abnormal event, and the abnormal event is related to the abnormal event. The log data corresponding to the event is also stored in the log database, and the data is marked as abnormal data. At this time, in order to ensure that the server can accurately locate and handle abnormal events in a timely manner, it is necessary to obtain the log data in the log database within the first preset period. All log data and send the log data to the server to complete the monitoring of abnormal log data.
若第一预设周期内的日志数据不存在异常记录,则表明客户端在第一预设周期内的运行过程均为正常运行,不存在异常事件,且日志数据库中的日志数据也均为正常运行过程中产生的数据信息,此时,保持当前对目标系统运行过程中产生的数据的实时监测和记录。If there are no abnormal records in the log data within the first preset period, it means that the client's operation process during the first preset period is normal, there are no abnormal events, and the log data in the log database is also normal. The data information generated during the operation process. At this time, the current real-time monitoring and recording of the data generated during the operation process of the target system is maintained.
例如,若当前用户终端配置有indexed数据库,服务端可以为Web服务器,则以浏览器当次运行的当前日期为时间节点,判断该时间节点前的3天内的浏览器日志数据是否存在异常记录,且该异常记录可以为:“界面加载时长超时”;若该时间节点前的3天内的浏览器日志数据存在异常记录,则表明日志监测系统在当前时间节点前的3天内监测到运行异常,并将该异常数据记录且存储至indexed数据库,此时获取当前时间节点前的3天内的所有日志数据,并将所有日志数上传至Web服务器;若该时间节点前的3天内的浏览器日志数据不存在异常记录,则表明日志监测系统在当前时间节点前的3天内未监测到运行异常,此时日志监测系统正常运行,并对当前浏览器产生的数据信息进行监测和记录。For example, if the current user terminal is configured with an indexed database and the server can be a Web server, then the current date when the browser is running is used as the time node to determine whether there are abnormal records in the browser log data within 3 days before the time node. And the abnormal record can be: "Interface loading time timeout"; if there are abnormal records in the browser log data within 3 days before the time node, it means that the log monitoring system detected an operating abnormality within 3 days before the current time node, and Record and store the abnormal data in the indexed database. At this time, obtain all log data within 3 days before the current time node, and upload all log data to the web server; if the browser log data within 3 days before the time node does not The existence of abnormal records indicates that the log monitoring system has not detected any operating abnormalities within 3 days before the current time node. At this time, the log monitoring system is running normally and monitors and records the data information generated by the current browser.
可选的,所述方法还包括:Optionally, the method also includes:
在当前配置有与客户端对应的日志数据库时,获取目标系统的当前日期;判断当前日期与预设日期是否一致;若当前日期与预设日期一致,则对日志数据库中的第二预设周期内的所有日志数据进行删除处理;若当前日期与预设日期不一致,则控制日志程序继续对目标系统进行实时监测和记录。When the log database corresponding to the client is currently configured, obtain the current date of the target system; determine whether the current date is consistent with the preset date; if the current date is consistent with the preset date, then the second preset period in the log database is All log data within will be deleted; if the current date is inconsistent with the preset date, the control log program will continue to monitor and record the target system in real time.
其中,第二预设周期例如可以为1个月,预设日期例如可以为每月1日。The second preset period may be, for example, one month, and the preset date may be, for example, the first day of each month.
该步骤判断当前日期与预设日期是否一致的目的是为了确定是否需要对日志数据库中的数据进行删除处理。The purpose of this step to determine whether the current date is consistent with the preset date is to determine whether the data in the log database needs to be deleted.
在当前配置有与客户端对应的日志数据库时,获取目标系统的当前日期,并判断当前日期与预设日期是否一致;若当前日期与预设日期一致,则表明当前日志数据库中已存储有第二预设周期内的所有日志数据,此时,为了减少数据存储压力,对日志数据库中的第二预设周期内的所有日志数据进行删除处理;若当前日期与预设日期不一致,则表明当前日志数据库中已存储的日志数据,仅为第二预设周期的部分时间段内的所有日志数据,此时日志数据库还可以继续存储日志数据,那么,控制日志程序继续对目标系统进行实时监测和记录。When a log database corresponding to the client is currently configured, obtain the current date of the target system and determine whether the current date is consistent with the preset date; if the current date is consistent with the preset date, it means that the current log database has stored the first All log data within the second preset period. At this time, in order to reduce data storage pressure, all log data within the second preset period in the log database are deleted; if the current date is inconsistent with the preset date, it indicates that the current The log data stored in the log database is only all log data within a part of the second preset period. At this time, the log database can continue to store log data. Then, the control log program continues to monitor and control the target system in real time. Record.
可以理解的,预设日期可以是当前客户端配置的日志数据库建立的日期,也可以由用户进行自主设置,本申请对预设日期的设置不做特殊限制。It is understandable that the preset date can be the date when the log database currently configured on the client is established, or it can be set independently by the user. This application does not place special restrictions on the setting of the preset date.
例如,在当前配置有与用户终端对应的indexed数据库时,若获取的浏览器的当前日期为:“5月1日”,该日期符合每月1日的条件,则表明当前日期与预设日期一致,且当前indexed数据库中已存储有4月1日至5月1日这一时间段内浏览器产生的所有日志数据,此时,对indexed数据库中这一时间段内的所有日志数据进行删除处理;若获取的浏览器的当前日期为:“5月12日”,该日期不符合每月1日的条件,则表明当前日期与预设日期不一致,此时控制日志程序继续对浏览器进行实时监测和记录。For example, when the indexed database corresponding to the user terminal is currently configured, if the current date of the obtained browser is: "May 1st", and this date meets the conditions of the first of every month, it means that the current date is the same as the default date. Consistent, and the current indexed database has stored all the log data generated by the browser during the period from April 1 to May 1. At this time, delete all the log data within this period from the indexed database. Processing; if the current date of the obtained browser is: "May 12", which does not meet the conditions of the 1st of each month, it means that the current date is inconsistent with the preset date. At this time, the control log program continues to process the browser. Real-time monitoring and recording.
可选的,所述方法还包括:Optionally, the method also includes:
若未配置有与客户端对应的日志数据库,则根据目标系统,生成与目标系统对应的数据存储表;加载与目标系统对应的日志程序;根据数据存储表和日志程序,重新建立与客户端对应的日志数据库;控制日志程序对目标系统进行实时监测和记录,并将日志数据存储至日志数据库。If the log database corresponding to the client is not configured, generate the data storage table corresponding to the target system based on the target system; load the log program corresponding to the target system; re-establish the database corresponding to the client based on the data storage table and log program Log database; control the log program to monitor and record the target system in real time, and store the log data in the log database.
其中,数据存储表用于指示日志数据库中对于数据信息存储的格式,日志程序用于对目标系统运行过程中产生的运行数据进行监测和记录,且日志程序装载于日志监测系统之中。Among them, the data storage table is used to indicate the format of data information storage in the log database, the log program is used to monitor and record the operating data generated during the operation of the target system, and the log program is loaded into the log monitoring system.
可以理解的,不同客户端配置有与当前使用用户适配的日志数据库,不同客户端配置的日志数据库中,存储的日志数据存在差异;根据不同用户的使用习惯,相应客户端上具有的前端服务存在差异,因此,需要监测和记录的运行数据也有所不同。It is understandable that different client configurations have log databases adapted to the current user. There are differences in the log data stored in the log databases configured by different clients. According to the usage habits of different users, the front-end services provided on the corresponding clients There are differences, and therefore, the operational data that needs to be monitored and recorded is also different.
若当前客户端未配置有日志数据库,则表明当前对目标系统进行监测和记录得到的日志数据无法存储在客户端中,此时需要重新建立与当前客户端对应的日志数据;根据目标系统,确定日志数据库建立所需的基础信息,生成与目标系统对应的数据存储表;加载与目标系统对应的日志程序,且该日志程序用于目标系统运行时,对数据信息进行监测和记录;根据数据存储表和日志程序,重新建立与客户端对应的日志数据库;在重新建立日志数据库之后,控制日志程序对目标系统进行实时监测和记录,并将日志数据存储至日志数据库。If the current client is not configured with a log database, it means that the log data currently obtained by monitoring and recording the target system cannot be stored in the client. At this time, the log data corresponding to the current client needs to be re-established; according to the target system, determine Establish the basic information required for the log database and generate the data storage table corresponding to the target system; load the log program corresponding to the target system, and the log program is used to monitor and record the data information when the target system is running; according to the data storage table and log program, re-establish the log database corresponding to the client; after re-establishing the log database, control the log program to monitor and record the target system in real time, and store the log data in the log database.
例如,若当前客户端未配置有indexed数据库,则表明当前对浏览器进行监测和记录得到的日志数据无法存储在用户终端中,此时需要重新建立indexed数据库;根据当前运行的浏览器,确定日志数据库建立所需的基础信息,基础信息可以为:用户设备类型、用户ID、浏览器类型等,生成与目标系统对应的数据存储表;加载与目标系统对应的日志程序,使得用户终端可以实现对浏览器的数据信息的监测和记录;根据数据存储表和日志程序,重新建立与用户终端对应的indexed数据库;在重新建立indexed数据库之后,控制日志程序对浏览器进行实时监测和记录,并将日志数据存储至indexed数据库。For example, if the current client is not configured with an indexed database, it means that the log data currently obtained by monitoring and recording the browser cannot be stored in the user terminal. In this case, the indexed database needs to be re-established; determine the log data based on the currently running browser. The basic information required to establish the database. The basic information can be: user device type, user ID, browser type, etc., generate a data storage table corresponding to the target system; load the log program corresponding to the target system, so that the user terminal can implement Monitor and record browser data information; re-establish the indexed database corresponding to the user terminal according to the data storage table and log program; after re-establishing the indexed database, control the log program to monitor and record the browser in real time, and save the log The data is stored in the indexed database.
S204:在所述第一预设周期内的日志数据存在异常记录时,获取与所述异常记录对应的第一预设周期内的日志数据,并将所述日志数据发送至服务端。S204: When there is an abnormal record in the log data in the first preset period, obtain the log data in the first preset period corresponding to the abnormal record, and send the log data to the server.
本实施例提供的异常日志监测方法,通过获取目标系统的工作状态,并在目标系统的工作状态为运行状态时,判断当前是否配置有与客户端对应的日志数据库;若当前配置有与客户端对应的所述日志数据库,则判断第一预设周期内的日志数据是否存在异常记录;在第一预设周期内的日志数据存在异常记录时,获取与异常记录对应的第一预设周期内的日志数据,并将该日志数据发送至服务端。该方法避免了服务端出现大量数据堆积的情况,减少了服务端数据存储的压力,提高了用户的使用体验。The abnormal log monitoring method provided in this embodiment obtains the working status of the target system, and when the working status of the target system is the running status, determines whether a log database corresponding to the client is currently configured; if there is a log database corresponding to the client currently configured; Corresponding to the log database, it is determined whether there is an abnormal record in the log data in the first preset period; when there is an abnormal record in the log data in the first preset period, the log data in the first preset period corresponding to the abnormal record is obtained. log data and send the log data to the server. This method avoids the accumulation of large amounts of data on the server side, reduces the pressure on data storage on the server side, and improves the user experience.
图3为本申请实施例提供的异常日志监测方法的流程图二。如图3所示,本实施例在图2实施例的基础上,对异常日志监测方法进行详细说明,本实施例示出的异常日志监测方法,包括:Figure 3 is a flow chart 2 of the abnormal log monitoring method provided by the embodiment of the present application. As shown in Figure 3, this embodiment provides a detailed description of the abnormal log monitoring method based on the embodiment of Figure 2. The abnormal log monitoring method shown in this embodiment includes:
S301:获取目标系统的工作状态。S301: Obtain the working status of the target system.
S302:在所述目标系统的工作状态为运行状态时,判断当前是否配置有与客户端对应的日志数据库。S302: When the working state of the target system is a running state, determine whether a log database corresponding to the client is currently configured.
步骤S301-S302与上述步骤S201-S202类似,在此不再赘述。Steps S301-S302 are similar to the above-mentioned steps S201-S202, and will not be described again here.
S303:若当前配置有与所述客户端对应的所述日志数据库,则获取目标用户的登录事件,并加载与所述日志数据库对应的日志程序。S303: If the log database corresponding to the client is currently configured, obtain the login event of the target user, and load the log program corresponding to the log database.
其中,登录事件用于指示目标用户当前登入的目标系统的相关信息,登录事件例如可以为:“浏览器类型和版本、浏览器宽高、设备类型、IP、地理编码”。本实施例对目标用户的登录事件不做特殊限制。The login event is used to indicate relevant information of the target system that the target user is currently logged into. The login event may be, for example: "browser type and version, browser width and height, device type, IP, geocoding". This embodiment places no special restrictions on the target user's login events.
在当前客户端配置有日志数据库时,获取当前用户的登录事件,以此得到用户当前登入的目标系统对应的基础信息,并将加载对用户终端进行监测和记录的日志程序,从而实现对当次运行的目标系统的运行数据的监测和记录。When the current client is configured with a log database, the login event of the current user is obtained to obtain the basic information corresponding to the target system that the user is currently logged in to, and a log program that monitors and records the user terminal is loaded, thereby realizing the current log-in event. Monitoring and recording of operating data of running target systems.
例如,在当前用户终端配置有indexed数据库时,获取当前用户的登录事件,以此得到用户当前登入的浏览器的基础信息,并将加载对用户终端进行监测和记录的日志程序,从而实现对当次浏览器运行数据的监测和记录。For example, when the current user terminal is configured with an indexed database, the login event of the current user is obtained to obtain the basic information of the browser that the user is currently logged in to, and a log program that monitors and records the user terminal is loaded to achieve current monitoring of the user terminal. Monitoring and recording of browser operation data.
S304:控制所述日志程序记录所述登录事件,并控制所述日志程序对所述目标系统进行实时监测和记录。S304: Control the log program to record the login event, and control the log program to monitor and record the target system in real time.
控制日志程序记录当前获取的登录事件,可以得到当次运行的目标系统的基础信息,并将该基础信息存储至日志数据库;并控制日志程序对目标系统进行实时监测和记录,即日志监测系统正常运行。The log program is controlled to record the currently acquired login events, and the basic information of the target system running at that time can be obtained, and the basic information is stored in the log database; and the log program is controlled to monitor and record the target system in real time, that is, the log monitoring system is normal run.
可以理解的,登录事件中包含目标用户的敏感数据,即需要进行加密的数据,因此,在上传日志数据的过程中,需要对相应的敏感数据进行加密处理。It is understandable that the login event contains sensitive data of the target user, that is, data that needs to be encrypted. Therefore, during the process of uploading log data, the corresponding sensitive data needs to be encrypted.
例如,控制日志程序记录当前获取的登录事件:“浏览器类型和版本、浏览器宽高、设备类型、IP、地理编码”,并将这些基础信息存储至indexed数据库;控制日志监测系统对浏览器进行实时监测和记录。For example, the control log program records the currently acquired login events: "browser type and version, browser width and height, device type, IP, geocoding" and stores these basic information in the indexed database; the control log monitoring system monitors the browser Conduct real-time monitoring and recording.
可选的,控制日志程序对目标系统进行实时监测和记录,包括:Optionally, the control log program monitors and records the target system in real time, including:
控制日志程序对目标系统进行实时监测;根据日志程序的监测结果,确定当前目标系统的点击事件;通过点击事件触发日志程序的记录事件,控制日志程序记录与记录事件对应的日志数据。The control log program monitors the target system in real time; determines the click event of the current target system based on the monitoring results of the log program; triggers the recording event of the log program through the click event, and controls the log program to record the log data corresponding to the recorded event.
其中,点击事件用于指示目标用户的实时操作,记录事件用于指示日志程序对点击事件触发的数据信息进行记录。Among them, the click event is used to indicate the real-time operation of the target user, and the recording event is used to instruct the log program to record the data information triggered by the click event.
可以理解的,客户端配置用显示装置,目标用户可以在该显示装置上进行实时操作,即目标用户根据自身需求,对显示装置上的显示界面进行操作,且该显示界面显示有当次目标用户选择的目标系统;目标用户在显示装置上的每一次操作都与日志程序可监测的点击事件一一对应,因此,根据日志程序监测到的点击事件,可以实现对目标用户的实时操作进行监测和记录;点击事件与记录事件之间存在关联关系,记录事件进行记录的数据信息为点击事件触发的目标系统运行产生的数据信息。It can be understood that the client is configured with a display device, and the target user can perform real-time operations on the display device, that is, the target user operates the display interface on the display device according to his own needs, and the display interface displays the information of the current target user. The selected target system; every operation of the target user on the display device corresponds one-to-one with the click events that can be monitored by the log program. Therefore, based on the click events monitored by the log program, the real-time operations of the target user can be monitored and Recording; there is a correlation between the click event and the recording event, and the data information recorded by the recording event is the data information generated by the operation of the target system triggered by the click event.
控制日志程序对目标系统进行实时监测;根据日志程序的监测结果,确定当前目标系统的点击事件;根据当次获取的点击事件,可以确定目标系统的当次运行过程以及相应的运行数据,同时,触发目标程序的记录事件,将与当次点击事件对应的运行数据进行记录,并存储至日志数据库。The control log program monitors the target system in real time; based on the monitoring results of the log program, the click event of the current target system is determined; based on the click event obtained at that time, the current running process of the target system and the corresponding running data can be determined. At the same time, Trigger the recording event of the target program, record the running data corresponding to the click event, and store it in the log database.
例如,控制日志程序对浏览器进行实时监测;根据监测结果,可以得到当前点击事件为:“搜索现有手机类型”,则相应的记录事件所记录的数据信息包括:“搜索时长5秒、页面访问频率1次/天、搜索界面停留时长5分钟、地理编码为101”,此时控制日志程序将这些数据信息存储至indexed数据库;其中,“地理编码101”表示当前用户位于北京。本实施例对记录事件对应的数据信息不做特殊限制。For example, the control log program monitors the browser in real time; according to the monitoring results, it can be obtained that the current click event is: "Search for existing mobile phone types", then the data information recorded in the corresponding recording event includes: "Search duration 5 seconds, page The access frequency is 1 time/day, the search interface stays for 5 minutes, and the geocode is 101". At this time, the control log program stores these data information in the indexed database; among them, "geocode 101" means that the current user is located in Beijing. This embodiment places no special restrictions on the data information corresponding to the recorded event.
可选的,控制日志程序记录与记录事件对应的日志数据,包括:Optionally, control the log program to record log data corresponding to the recorded events, including:
根据日志程序,确定与日志数据库对应的数据记录程序;根据数据记录程序,将日志数据记录至日志数据库;若当前记录的日志数据为异常日志数据,则在日志数据库中对异常日志数据进行标记。According to the log program, the data recording program corresponding to the log database is determined; according to the data recording program, the log data is recorded to the log database; if the currently recorded log data is abnormal log data, the abnormal log data is marked in the log database.
其中,数据记录程序用于指示对目标系统的运行数据进行记录,异常日志数据用于指示目标系统发送异常事件时对应的数据信息。Among them, the data recording program is used to instruct the target system to record the operating data, and the abnormal log data is used to instruct the target system to send corresponding data information when abnormal events are sent.
可以理解的,在目标系统的运行过程中,产生的运行数据包括正常日志数据和异常日志数据,即正常运行时产生的数据信息和运行过程中出现异常事件时产生的数据信息。It can be understood that during the operation of the target system, the operation data generated includes normal log data and abnormal log data, that is, data information generated during normal operation and data information generated when abnormal events occur during operation.
对当前加载的日志程序进行筛选,确定与日志数据库对应的数据记录程序;并通过该数据记录程序,将日志数据记录至日志数据库;若当前记录的日志数据为异常日志数据,则表明当前目标系统运行存在异常情况,不能直接将获取的异常日志数据进行存储,此时需要在日志数据库中对异常日志数据进行标记,用于与正常日志数据进行区分;若当前记录的日志数据为正常日志数据,则不需要进行其他操作,正常存储至日志数据库即可。Filter the currently loaded log program to determine the data recording program corresponding to the log database; and record the log data to the log database through the data recording program; if the currently recorded log data is abnormal log data, it indicates that the current target system There are abnormal conditions in the operation, and the obtained abnormal log data cannot be stored directly. At this time, the abnormal log data needs to be marked in the log database to distinguish it from the normal log data; if the currently recorded log data is normal log data, No other operations are required, just store it in the log database normally.
例如,对当前加载的日志程序进行筛选,确定与日志数据库对应的数据记录程序;并通过该数据记录程序,将日志数据记录至indexed数据库;若当前记录的日志数据为异常日志数据,则表明当前浏览器运行存在异常情况,不能直接将获取的异常日志数据进行存储,此时需要在日志数据库中,将该日志数据标记为“异常”;若当前记录的日志数据为正常日志数据,则正常存储至indexed数据库即可。For example, filter the currently loaded log program to determine the data recording program corresponding to the log database; and record the log data to the indexed database through the data recording program; if the currently recorded log data is abnormal log data, it indicates that the current There are exceptions in the operation of the browser, and the obtained abnormal log data cannot be directly stored. At this time, the log data needs to be marked as "abnormal" in the log database; if the currently recorded log data is normal log data, it will be stored normally. Just go to the indexed database.
S305:判断第一预设周期内的日志数据是否存在异常记录;若是,则执行步骤S306;若否,则执行步骤S308。S305: Determine whether there is an abnormal record in the log data within the first preset period; if yes, execute step S306; if not, execute step S308.
S306:获取与所述异常记录对应的第一预设周期内的日志数据。S306: Obtain the log data in the first preset period corresponding to the abnormal record.
S307:将所述日志数据发送至服务端。S307: Send the log data to the server.
步骤S305-S307与步骤S203-S204类似,在此不再赘述。Steps S305-S307 are similar to steps S203-S204 and will not be described again.
S308:控制所述日志程序继续对所述目标系统进行实时监测和记录。S308: Control the log program to continue to monitor and record the target system in real time.
S309:根据所述监测结果,确定所述目标系统是否出现异常事件。S309: Based on the monitoring results, determine whether an abnormal event occurs in the target system.
在第一预设周期内的日志数据不存在异常记录时,控制日志程序继续对目标系统进行实时监测和记录,即控制日志监测系统对目标系统的运行过程进行实时监测和记录;在日志程序监测和记录的过程中,根据实时监测的结果,可以确定目标系统是否出现异常事件;在目标系统出现异常事件时,可以当前出现的异常事件,获取目标系统相应的运行数据,并确定与异常事件对应的记录事件;在目标系统未出现异常事件时,控制日志程序进行正常监测和记录。When there are no abnormal records in the log data within the first preset period, the control log program continues to monitor and record the target system in real time, that is, the control log monitoring system monitors and records the running process of the target system in real time; when the log program monitors and recording process, based on the results of real-time monitoring, it can be determined whether an abnormal event occurs in the target system; when an abnormal event occurs in the target system, the corresponding operating data of the target system can be obtained based on the currently occurring abnormal event, and the corresponding operation data of the target system can be determined and the corresponding abnormal event can be determined Record events; when no abnormal events occur in the target system, the control log program performs normal monitoring and recording.
例如,异常事件可以为:“搜索时长超时”,若当前时间节点前的3天内的浏览器日志数据不存在异常记录,则表明日志监测系统在当前时间节点前的3天内未监测到运行异常,此时日志监测系统正常运行,并对当前浏览器产生的数据信息进行监测和记录;根据日志监测系统的实时监测,当浏览器出现异常事件“搜索时长超时”时,就可以快速定位异常数据,因此,在浏览器的运行过程中,可以实时确定浏览器是否出现异常事件“搜索时长超时”;在浏览器出现异常事件“搜索时长超时”时,可以根据“搜索时长超时”,确定与“搜索时长超时”对应的记录事件;在浏览器未出现异常事件“搜索时长超时”时,控制日志程序进行正常监测和记录。For example, the abnormal event can be: "Search duration timeout". If there are no abnormal records in the browser log data within 3 days before the current time node, it means that the log monitoring system has not detected any operating abnormalities within 3 days before the current time node. At this time, the log monitoring system is running normally and monitors and records the data information generated by the current browser; according to the real-time monitoring of the log monitoring system, when an abnormal event "search timeout" occurs in the browser, the abnormal data can be quickly located. Therefore, during the running process of the browser, it can be determined in real time whether the abnormal event "search duration timeout" occurs in the browser; when the abnormal event "search duration timeout" occurs in the browser, it can be determined according to the "search duration timeout" and "search duration timeout". Recording events corresponding to "Search duration timeout"; when the abnormal event "Search duration timeout" does not occur in the browser, the control log program performs normal monitoring and recording.
S310:在所述目标系统出现异常事件时,根据所述异常事件,确定与所述异常事件对应的所述记录事件。S310: When an abnormal event occurs in the target system, determine the recording event corresponding to the abnormal event based on the abnormal event.
S311:控制所述日志程序将与所述记录事件对应的所述异常日志数据进行记录。S311: Control the log program to record the abnormal log data corresponding to the recording event.
S312:将所述异常日志数据发送至所述服务端,并在所述日志数据库中对所述异常日志数据进行标记。S312: Send the abnormal log data to the server, and mark the abnormal log data in the log database.
在确定当前异常事件对应的记录事件之后,对目标系统相应的异常运行数据进行记录,即可得到异常日志数据,此时需要在日志数据库中对异常日志数据进行标记,用于与正常日志数据进行区分;根据目标系统的当前日期,获取包含当前日期的第一预设周期内的所有日志数据,且当前获取的异常日志数据也包含在内,并将该所有日志数据发送至服务端,便于服务端对异常日志数据进行分析处理;在将所有日志数据发送至服务端之后,在日志数据库中对异常日志数据进行标记,表明该异常日志数据已发送。After determining the recording event corresponding to the current abnormal event, record the corresponding abnormal operating data of the target system to obtain the abnormal log data. At this time, the abnormal log data needs to be marked in the log database for comparison with the normal log data. Distinguishing; based on the current date of the target system, obtain all log data within the first preset period including the current date, and the currently obtained abnormal log data is also included, and send all log data to the server to facilitate service The server analyzes and processes the abnormal log data; after sending all the log data to the server, the abnormal log data is marked in the log database to indicate that the abnormal log data has been sent.
例如,对当前浏览器运行产生的异常运行数据进行记录,将该数据存储至indexed数据库,并将该数据标记为“异常”;若当前日期为5月1日,则获取5月1日前两天以及5月1日当天的,日志数据库中存储的所有日志数据,并将当前获取的所有日志数据上传至Web服务器;在将所有日志数据发送至Web服务器之后,在indexed数据库中将该异常日志数据标记为“已发送”。本申请对日志数据库中的日志数据进行标记的方法不做特殊限制。For example, record the abnormal operation data generated by the current browser operation, store the data in the indexed database, and mark the data as "abnormal"; if the current date is May 1, obtain the two days before May 1 As well as all log data stored in the log database on May 1st, and upload all currently acquired log data to the Web server; after sending all log data to the Web server, the abnormal log data is stored in the indexed database. Mark as "Sent". This application imposes no special restrictions on the method of marking log data in the log database.
本实施提供的异常日志监测方法,通过获取目标系统的工作状态,并在目标系统的工作状态为运行状态时,判断当前是否配置有与客户端对应的日志数据库;若当前配置有与客户端对应的所述日志数据库,则获取目标用户的登录事件,并加载与日志数据库对应的日志程序,控制日志程序记录登录事件,并控制日志程序对目标系统进行实时监测;根据日志程序的监测结果,确定当前目标系统的点击事件;通过该点击事件触发日志程序的记录事件,控制日志程序记录与记录事件对应的日志数据;判断第一预设周期内的日志数据是否存在异常记录;在第一预设周期内的日志数据存在异常记录时,获取与异常记录对应的第一预设周期内的日志数据,并将该日志数据发送至服务端;在第一预设周期内的日志数据不存在异常记录时,控制日志程序继续对目标系统进行实时监测和记录,并再次确定目标系统是否出现异常事件;根据确定结果,控制日志程序进行相应的记录,并在存在异常事件时,发送相应的异常日志数据至服务端。该方法减少了服务端由于高并发带来的数据处理压力,避免了服务端出现大量数据堆积的情况,减少了服务端数据存储的压力,实现了异常问题的精准定位,提高了用户的使用体验。The abnormal log monitoring method provided by this implementation obtains the working status of the target system, and when the working status of the target system is running status, it determines whether there is a log database corresponding to the client currently configured; if there is a log database corresponding to the client currently configured of the log database, obtain the login event of the target user, load the log program corresponding to the log database, control the log program to record the login event, and control the log program to monitor the target system in real time; according to the monitoring results of the log program, determine The click event of the current target system; trigger the recording event of the log program through the click event, and control the log program to record the log data corresponding to the recording event; determine whether there are abnormal records in the log data within the first preset period; in the first preset When there is an abnormal record in the log data within the period, the log data in the first preset period corresponding to the abnormal record is obtained, and the log data is sent to the server; there is no abnormal record in the log data in the first preset period. When, the control log program continues to monitor and record the target system in real time, and once again determines whether an abnormal event occurs in the target system; based on the determination results, the control log program performs corresponding recording, and when an abnormal event exists, sends corresponding abnormal log data to the server. This method reduces the data processing pressure on the server due to high concurrency, avoids the accumulation of large amounts of data on the server, reduces the pressure on data storage on the server, achieves precise location of abnormal problems, and improves the user experience. .
图4为本申请提供的异常日志监测装置的结构示意图。如图4所示,本申请提供一种异常日志监测装置,该异常日志监测装置400包括:Figure 4 is a schematic structural diagram of the abnormal log monitoring device provided by this application. As shown in Figure 4, this application provides an abnormal log monitoring device. The abnormal log monitoring device 400 includes:
获取模块401,用于获取目标系统的工作状态,所述目标系统用于指示目标用户选择运行的前端服务。The acquisition module 401 is used to acquire the working status of the target system, and the target system is used to instruct the target user to select a front-end service to run.
判断模块402,用于在所述目标系统的工作状态为运行状态时,判断当前是否配置有与客户端对应的日志数据库。The determination module 402 is used to determine whether a log database corresponding to the client is currently configured when the working state of the target system is a running state.
若当前配置有与所述客户端对应的所述日志数据库,则所述判断模块402,还用于判断第一预设周期内的日志数据是否存在异常记录。If the log database corresponding to the client is currently configured, the determination module 402 is also used to determine whether there is an abnormal record in the log data within the first preset period.
所述获取模块401,还用于在所述第一预设周期内的日志数据存在异常记录时,获取与所述异常记录对应的第一预设周期内的日志数据。The acquisition module 401 is also configured to acquire the log data in the first preset period corresponding to the abnormal record when there is an abnormal record in the log data in the first preset period.
发送模块403,用于将所述日志数据发送至服务端。The sending module 403 is used to send the log data to the server.
可选的,所述获取模块401,还用于获取所述目标用户的登录事件。Optionally, the obtaining module 401 is also used to obtain the login event of the target user.
所述异常日志监测装置还包括:处理模块404。The abnormal log monitoring device also includes: a processing module 404.
所述处理模块404,用于加载与所述日志数据库对应的日志程序,所述日志程序用于指示所述客户端对所述目标系统进行日志记录。The processing module 404 is used to load a log program corresponding to the log database, and the log program is used to instruct the client to log the target system.
所述异常日志监测装置还包括:控制模块405。The abnormal log monitoring device also includes: a control module 405.
所述控制模块405,用于控制所述日志程序记录所述登录事件,并控制所述日志程序对所述目标系统进行实时监测和记录。The control module 405 is used to control the log program to record the login event, and to control the log program to monitor and record the target system in real time.
可选的,所述控制模块405,还用于控制所述日志程序对所述目标系统进行实时监测。Optionally, the control module 405 is also used to control the log program to monitor the target system in real time.
所述异常日志监测装置还包括:确定模块406。The abnormal log monitoring device also includes: a determination module 406.
所述确定模块406,用于根据所述日志程序的监测结果,确定当前所述目标系统的点击事件,所述点击事件用于指示所述目标用户的实时操作。The determination module 406 is configured to determine the current click event of the target system according to the monitoring result of the log program, where the click event is used to indicate the real-time operation of the target user.
所述控制模块405,还用于通过所述点击事件触发所述日志程序的记录事件,控制所述日志程序记录与所述记录事件对应的所述日志数据。The control module 405 is also configured to trigger a recording event of the log program through the click event, and control the log program to record the log data corresponding to the recording event.
可选的,所述确定模块406,还用于根据所述日志程序,确定与所述日志数据库对应的数据记录程序。Optionally, the determination module 406 is also configured to determine a data recording program corresponding to the log database according to the log program.
所述处理模块404,还用于根据所述数据记录程序,将所述日志数据记录至所述日志数据库。The processing module 404 is also configured to record the log data to the log database according to the data recording program.
若当前记录的日志数据为异常日志数据,则所述处理模块404,还用于在所述日志数据库中对所述异常日志数据进行标记。If the currently recorded log data is abnormal log data, the processing module 404 is also configured to mark the abnormal log data in the log database.
可选的,若所述第一预设周期内不存在异常记录,则所述控制模块405,还用于控制所述日志程序继续对所述目标系统进行实时监测和记录。Optionally, if there is no abnormal record within the first preset period, the control module 405 is also used to control the log program to continue to monitor and record the target system in real time.
所述确定模块406,还用于根据所述监测结果,确定所述目标系统是否出现异常事件。The determination module 406 is also used to determine whether an abnormal event occurs in the target system according to the monitoring results.
所述确定模块406,还用于在所述目标系统是否出现异常事件时,根据所述异常事件,确定与所述异常事件对应的所述记录事件。The determination module 406 is also configured to determine the recording event corresponding to the abnormal event based on the abnormal event when an abnormal event occurs in the target system.
所述控制模块405,还用于控制所述日志程序将与所述记录事件对应的所述异常日志数据进行记录。The control module 405 is also used to control the log program to record the abnormal log data corresponding to the recording event.
所述发送模块403,还用于将所述异常日志数据发送至所述服务端。The sending module 403 is also used to send the exception log data to the server.
所述处理模块404,还用于在所述日志数据库中对所述异常日志数据进行标记。The processing module 404 is also used to mark the abnormal log data in the log database.
可选的,所述获取模块401,还用于在当前配置有与所述客户端对应的所述日志数据库时,获取所述目标系统的当前日期。Optionally, the obtaining module 401 is also configured to obtain the current date of the target system when the log database corresponding to the client is currently configured.
所述判断模块402,还用于判断所述当前日期与预设日期是否一致。The judgment module 402 is also used to judge whether the current date is consistent with the preset date.
若所述当前日期与预设日期一致,则所述处理模块404,还用于对所述日志数据库中的第二预设周期内的所有日志数据进行删除处理。If the current date is consistent with the preset date, the processing module 404 is also configured to delete all log data within the second preset period in the log database.
若所述当前日期与预设日期不一致,则所述控制模块405,还用于控制所述日志程序继续对所述目标系统进行实时监测和记录。If the current date is inconsistent with the preset date, the control module 405 is also used to control the log program to continue to monitor and record the target system in real time.
可选的,所述异常日志监测装置还包括:生成模块407。Optionally, the abnormal log monitoring device also includes: a generation module 407.
若未配置有与所述客户端对应的所述日志数据库,则所述生成模块407,用于根据所述目标系统,生成与所述目标系统对应的数据存储表。If the log database corresponding to the client is not configured, the generating module 407 is configured to generate a data storage table corresponding to the target system according to the target system.
所述处理模块404,还用于加载与所述目标系统对应的日志程序。The processing module 404 is also used to load a log program corresponding to the target system.
所述生成模块407,还用于根据所述数据存储表和所述日志程序,重新建立与所述客户端对应的日志数据库。The generation module 407 is also configured to re-establish a log database corresponding to the client according to the data storage table and the log program.
所述处理模块404,还用于将所述日志数据存储至所述日志数据库。The processing module 404 is also used to store the log data in the log database.
图5为本申请提供的异常日志监测设备的结构示意图。如图5所示,本申请提供一种异常日志监测设备,该异常日志监测设备500包括:接收器501、发送器502、处理器503以及存储器504。Figure 5 is a schematic structural diagram of the abnormal log monitoring equipment provided by this application. As shown in Figure 5, this application provides an abnormality log monitoring device. The abnormality log monitoring device 500 includes: a receiver 501, a transmitter 502, a processor 503, and a memory 504.
接收器501,用于接收指令和数据;Receiver 501, used to receive instructions and data;
发送器502,用于发送指令和数据;Transmitter 502, used to send instructions and data;
存储器504,用于存储计算机执行指令;Memory 504, used to store computer execution instructions;
处理器503,用于执行存储器504存储的计算机执行指令,以实现上述实施例中异常日志监测方法所执行的各个步骤。具体可以参见前述异常日志监测方法实施例中的相关描述。The processor 503 is configured to execute computer execution instructions stored in the memory 504 to implement various steps performed by the exception log monitoring method in the above embodiment. For details, please refer to the relevant descriptions in the foregoing exception log monitoring method embodiments.
可选的,上述存储器504既可以是独立的,也可以跟处理器503集成在一起。Optionally, the above-mentioned memory 504 can be independent or integrated with the processor 503 .
当存储器504独立设置时,该电子设备还包括总线,用于连接存储器504和处理器503。When the memory 504 is provided independently, the electronic device also includes a bus for connecting the memory 504 and the processor 503 .
本申请还提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当处理器执行计算机执行指令时,实现如上述异常日志监测设备所执行的异常日志监测方法。This application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the processor executes the computer-executed instructions, the abnormal log monitoring method executed by the above-mentioned abnormal log monitoring device is implemented.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the sake of simple description, the foregoing method embodiments are expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence. Because certain steps may be performed in other orders or simultaneously according to this application. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily necessary for this application.
进一步需要说明的是,虽然流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be further noted that although the steps in the flowchart are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated in this article, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flow chart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution of these sub-steps or stages The sequence is not necessarily sequential, but may be performed in turn or alternately with other steps or sub-steps of other steps or at least part of the stages.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art can understand that all or some steps, systems, and functional modules/units in the devices disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may consist of several physical components. Components execute cooperatively. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is known to those of ordinary skill in the art, the term computer storage media includes volatile and nonvolatile media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. removable, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassettes, tapes, disk storage or other magnetic storage devices, or may Any other medium used to store the desired information and that can be accessed by a computer. Additionally, it is known to those of ordinary skill in the art that communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。上述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。In the above embodiments, each embodiment is described with its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined in any way. To simplify the description, 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, all possible combinations should be used. It is considered to be within the scope of this manual.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求书指出。Other embodiments of the present application will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary technical means in the technical field that are not disclosed in this application. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
至此,已经结合附图所示的优选实施方式描述了本申请的技术方案,但是,本领域技术人员容易理解的是,本申请的保护范围显然不局限于这些具体实施方式,以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the drawings. However, those skilled in the art can easily understand that the protection scope of the present application is obviously not limited to these specific embodiments. The above embodiments are only It is used to illustrate the technical solution of the present application, but not to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still apply the technology described in the foregoing embodiments. Modify the solution, or make equivalent substitutions for some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solution to depart from the scope of the technical solutions of the embodiments of the present application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311393647.0A CN117336081A (en) | 2023-10-25 | 2023-10-25 | Abnormal log monitoring method, device, equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311393647.0A CN117336081A (en) | 2023-10-25 | 2023-10-25 | Abnormal log monitoring method, device, equipment and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117336081A true CN117336081A (en) | 2024-01-02 |
Family
ID=89290234
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311393647.0A Pending CN117336081A (en) | 2023-10-25 | 2023-10-25 | Abnormal log monitoring method, device, equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117336081A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118860782A (en) * | 2024-07-03 | 2024-10-29 | 开元云(北京)科技有限公司 | A cloud server monitoring system |
-
2023
- 2023-10-25 CN CN202311393647.0A patent/CN117336081A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118860782A (en) * | 2024-07-03 | 2024-10-29 | 开元云(北京)科技有限公司 | A cloud server monitoring system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9628349B2 (en) | Interactivity analyses of web resources based on reload events | |
US10025654B2 (en) | Diagnostic and workflow engine with system integration | |
US7551922B2 (en) | Rule based data collection and management in a wireless communications network | |
US8862880B2 (en) | Two-stage anonymization of mobile network subscriber personal information | |
US10135858B1 (en) | Method and apparatus for protecting consumers and resources in a communication network | |
US20120079079A1 (en) | Data Management System Server Apparatus and Method for Monitoring A Wireless Communication Network | |
US8782188B2 (en) | Automated device reporting | |
US10033796B2 (en) | SAAS network-based backup system | |
CN103699396A (en) | Information feedback method and terminal device | |
CN109728969B (en) | Abnormal user detection method of application software, monitoring server and storage medium | |
CN109002457A (en) | Downloading channel statistical processing methods, device and the electronic equipment of application program | |
CN117336081A (en) | Abnormal log monitoring method, device, equipment and computer storage medium | |
EP1803230A2 (en) | Rule based data collection and management in a wireless communications network | |
CN113051332A (en) | Multi-source data integration method and system based on big data technology | |
US10123223B1 (en) | System and method for evaluating operational integrity of a radio access network | |
WO2007005030A2 (en) | Rule based data collection and management in a wireless communications network | |
CN105553770B (en) | A data acquisition control method and device | |
CN108334429A (en) | Method, apparatus and system for investigating front end page problem | |
US20140143264A1 (en) | Policy event driven remote desktop recording across a data network | |
US20170034282A1 (en) | Monitoring a network session | |
CN112788153B (en) | Internet of things equipment upgrading management method, device, equipment and storage medium | |
CN115022388A (en) | Data acquisition method, device, equipment and medium | |
CN112308501B (en) | A business processing method and related device | |
WO2018036460A1 (en) | User state processing method, apparatus and system | |
WO2022270368A1 (en) | Device, method, and program for diagnosing condition of communication service |
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 |