Lightweight log visual display method and system
By functionally dividing logs and analyzing real-time parameters, generating log reports and matching adjustment strategies, we solve the problems of low log analysis efficiency and large resource usage in the existing technology, and achieve the effect of quickly locating and optimizing log functions.
Patent Information
- Application Number
- CN202410465376.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-17
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technology is difficult to provide an intuitive and fast way to analyze and view large amounts of log data, and it takes up a lot of resources and cannot effectively extract useful information.
By functionally dividing logs, obtaining real-time log parameters, generating log reports, and matching function adjustment strategies, visual display and analysis of logs can be achieved.
It realizes the rapid location of problems in logs, analysis of log trends and visualization, helping users to quickly locate problems and optimize log functions, and consumes less resources.
Smart Images

Figure CN118656531A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of log visualization, and in particular to a lightweight log visualization display method and system. Background Art
[0002] At present, in computer applications, log analysis has become an important condition for judging the quality of computers, which is conducive to timely adjustment of problems in computer operation. Log visualization should provide an intuitive and fast way to view and analyze log files. These methods should be easy to deploy, occupy less resources, and be able to quickly extract useful information from large amounts of log data.
[0003] Therefore, the present invention provides a lightweight log visualization display method and system. Summary of the invention
[0004] The present invention provides a lightweight log visualization display method and system, which are used for functionally dividing storage logs by analyzing the visualization requirements of logs, obtaining log types and visualization types corresponding to each function; obtaining current real-time log parameters based on Filebeat and a set of logs to be displayed; obtaining log reports corresponding to each function based on the real-time log parameters and the corresponding log types; matching corresponding function adjustment strategies based on the log reports; realizing log visualization based on each function and the corresponding visualization types and log information, analyzing and displaying the collected logs, helping users to quickly locate problems, analyzing log trends and realizing log visualization.
[0005] The present invention provides a lightweight log visualization display method, comprising: Step 1: Based on the log visualization requirements, the stored logs are functionally divided to obtain the log type and visualization type corresponding to each function; Step 2: Based on Filebeat and the log set to be displayed, obtain the current real-time log parameters; Step 3: Based on the real-time log parameters and the corresponding log types, a log report corresponding to each function is obtained; Step 4: Based on the log report, matching the corresponding function adjustment strategy; Step 5: Based on each function and the corresponding visualization type and log information, realize log visualization.
[0006] Preferably, the present invention provides a lightweight log visualization display method, which functionally divides the stored logs based on the log visualization requirements to obtain the log types corresponding to each function, including: Based on the visualization requirements of the logs, the first function that needs to be visualized and the second function that needs to be visualized and analyzed are obtained; Based on the first function and the second function, obtain a corresponding first log type and a corresponding second log type; Based on the first log type and the second log type, a corresponding first visualization type and a corresponding second visualization type are matched respectively.
[0007] Preferably, the present invention provides a lightweight log visualization display method, based on Filebeat and the log set to be displayed, to obtain the current real-time log parameters, including: Based on Filebeat and the log set to be displayed, get the log directory where each log type is stored; Based on Filebeat, obtain the real-time log parameters of the collected logs at the current moment.
[0008] Preferably, the present invention provides a lightweight log visualization display method, which obtains a log report corresponding to each function based on the real-time log parameters and the corresponding log types, including: Based on the real-time log parameter and the corresponding log type, obtaining a first preset parameter and a preset parameter threshold corresponding to the first log; Obtaining a first difference based on the real-time log parameter at the current moment and the first preset parameter; If the first difference is within the range of the preset parameter threshold, and the position of the current moment in the first cycle is greater than two-thirds of the first cycle, then obtaining the second parameter of the first log in the first cycle to which the current moment belongs; Based on the first preset parameter and the second parameter, construct a first parameter table in time sequence; Based on the first parameter table, obtaining a first preset parameter at each moment and a second difference value of a second parameter; Calculate the variance of all second differences to obtain the second variance; If the second variance is within the range of the preset variance, it is determined that the first log runs normally and a corresponding log report is generated; If the first difference is not within the range of the preset parameter threshold, or the second variance is no longer within the range of the preset variance, obtaining a third parameter of the first log in the first period to which the current moment belongs; Calculating the difference between the parameters at adjacent moments in the third parameter to obtain a third difference; Calculating the difference between the parameters at adjacent moments in the first preset parameters to obtain a fourth difference; Based on the third difference and the fourth difference of the same time sequence, a fifth difference is obtained; Based on all fifth differences, in order of time, construct a difference curve; Based on the difference curve, a corresponding curve characteristic is obtained; If the curve feature is a monotonic feature, obtaining the corresponding curve trend; Generate a corresponding log report based on the curve characteristics; If the curve characteristic is not monotonic, then based on the difference curve, a corresponding curve anomaly index is calculated; Based on the curve abnormality index, matching the corresponding abnormality cause in the index-abnormality comparison table; Based on the abnormal reason, a log report is generated.
[0009] Preferably, the present invention provides a lightweight log visualization display method, which calculates the corresponding curve anomaly index based on the difference curve, including: ;in, Indicates the curve anomaly index corresponding to the difference curve; represents the number of moments in the difference curve; Indicates the difference curve The value corresponding to each moment; The difference curve of the same log type in normal function. The value corresponding to each moment; Indicates the difference curve The value corresponding to each moment; The difference curve of the same log type in normal function. The value corresponding to each moment; Indicates the difference curve The calculation weight corresponding to each moment; Indicates the difference curve The impact factor corresponding to each moment; Indicates the difference curve The impact factor corresponding to each moment.
[0010] Preferably, the present invention provides a lightweight log visualization display method, based on the log report, matching the corresponding function adjustment strategy, including: If the log report shows an abnormality, obtain the abnormality cause in the log report; Based on the abnormal cause and the abnormal adjustment database corresponding to the same log type, the corresponding function adjustment strategy is matched.
[0011] Preferably, the present invention provides a lightweight log visualization display method, which realizes log visualization based on each function and the corresponding visualization type and log information, including: Based on each function that can be achieved by the stored logs, the corresponding visualization features are obtained; If the visualization feature is a color feature, the corresponding log report is obtained to obtain the corresponding first color; Based on the preset framework, each log information and the corresponding visualization type and the corresponding first color are visualized to obtain a corresponding log visualization platform.
[0012] The present invention provides a lightweight log visualization display system, comprising: Demand analysis module: Based on the visualization requirements of logs, the stored logs are functionally divided to obtain the log types and visualization types corresponding to each function; Real-time acquisition module: Based on Filebeat and the log set to be displayed, obtain the current real-time log parameters; Analysis module: based on the real-time log parameters and the corresponding log types, obtain the log report corresponding to each function; Strategy matching module: matching corresponding function adjustment strategies based on the log report; Visualization module: realizes log visualization based on each function and the corresponding visualization type and log information.
[0013] Compared with the prior art, the beneficial effects of the present application are as follows: by analyzing the visualization requirements of logs, the storage logs are functionally divided to obtain the log types and visualization types corresponding to each function; based on Filebeat and the log set to be displayed, the current real-time log parameters are obtained; based on the real-time log parameters and the corresponding log types, the log report corresponding to each function is obtained; based on the log report, the corresponding function adjustment strategy is matched; based on each function and the corresponding visualization type and log information, the log visualization is realized, the collected logs are analyzed and displayed, and users are helped to quickly locate problems, analyze log trends, and realize log visualization.
[0014] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.
[0015] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 It is a flowchart of a lightweight log visualization method provided by an embodiment of the present invention.
[0018] Figure 2 It is a structural schematic diagram of a lightweight log visualization display system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] Embodiment 1: The embodiment of the present invention provides a lightweight log visualization method, such as Figure 1 As shown, including: Step 1: Based on the log visualization requirements, the stored logs are functionally divided to obtain the log type and visualization type corresponding to each function; Step 2: Based on Filebeat and the log set to be displayed, obtain the current real-time log parameters; Step 3: Based on the real-time log parameters and the corresponding log types, a log report corresponding to each function is obtained; Step 4: Based on the log report, matching the corresponding function adjustment strategy; Step 5: Based on each function and the corresponding visualization type and log information, realize log visualization.
[0021] In this embodiment, the visualization requirement refers to a preset requirement for log visualization. Not all logs need to be visualized, only the logs included in the requirement need to be visualized.
[0022] In this embodiment, the log type refers to the type of log determined by the function implemented by the log, for example, a log that collects data is a data collection type log.
[0023] In this embodiment, the visualization type refers to a type for visualizing logs, such as a pie chart type, a table type, and other types that can visualize data.
[0024] In this example, Filebeat refers to a lightweight log collection and forwarding plugin that monitors the log files or locations you specify, collects log events, and forwards them to Elasticsearch or Logstash for indexing. When you start Filebeat, one or more finders are started, looking at the local paths you specify for log files. For each log file where the prospector is located, the prospector starts a harvester. Each harvester reads a single log file for new content and sends the new log data to libbeat, which aggregates the events and sends the aggregated data to the output you configured for Filebeat.
[0025] In this embodiment, the log set to be displayed refers to a set of all collected logs.
[0026] In this embodiment, the real-time log parameter refers to the parameter of the log acquired at the current moment in the corresponding function, for example: data in the data collection function.
[0027] In this embodiment, the log report refers to a report indicating the specific situation of function operation, including whether it is abnormal, the degree of abnormality or goodness, obtained by analyzing the real-time log parameters of the log to be analyzed.
[0028] In this embodiment, the function adjustment strategy refers to a method for adjusting an abnormal function to restore it to normal operation.
[0029] In this embodiment, log information refers to information that needs to be visualized, including log functions, log types, real-time log parameters, log reports, etc.
[0030] The working principle and beneficial effects of the above technical solution are: by analyzing the visualization requirements of logs, the storage logs are functionally divided to obtain the log types and visualization types corresponding to each function; based on Filebeat and the log set to be displayed, the current real-time log parameters are obtained; based on the real-time log parameters and the corresponding log types, the log report corresponding to each function is obtained; based on the log report, the corresponding function adjustment strategy is matched; based on each function and the corresponding visualization type and log information, the log visualization is realized, the collected logs are analyzed and displayed, and users are helped to quickly locate problems, analyze log trends and realize log visualization.
[0031] Embodiment 2: According to the method provided in Embodiment 1 of the present invention, based on the visualization requirements of logs, the stored logs are functionally divided to obtain the log types corresponding to each function, including: Based on the visualization requirements of the logs, the first function that needs to be visualized and the second function that needs to be visualized and analyzed are obtained; Based on the first function and the second function, obtain a corresponding first log type and a corresponding second log type; Based on the first log type and the second log type, a corresponding first visualization type and a corresponding second visualization type are matched respectively.
[0032] In this embodiment, the first function refers to a function that needs to be displayed visually, for example, a function of collecting data is displayed visually during the process.
[0033] In this embodiment, the second function refers to a display function that needs to be visualized and analyzed, for example, a function of collecting data needs to be visualized during the process, and data changes in each log cycle need to be analyzed and visualized.
[0034] In this embodiment, the first log type refers to the type of log corresponding to the first function to be implemented.
[0035] In this embodiment, the second log type refers to the type of log corresponding to the second function to be implemented.
[0036] In this embodiment, the first visualization type refers to a visualization type with the best visualization effect corresponding to the first log type.
[0037] In this embodiment, the second visualization type refers to a visualization type with the best visualization effect corresponding to the second log type.
[0038] The working principle and beneficial effect of the above technical solution are: by analyzing the visualization requirements of logs, the stored logs are functionally divided to obtain the log type corresponding to each function, which is conducive to the subsequent analysis of the logs.
[0039] Embodiment 3: According to the method provided in Embodiment 1 of the invention, based on Filebeat and the log set to be displayed, the current real-time log parameters are obtained, including: Based on Filebeat and the log set to be displayed, get the log directory where each log type is stored; Based on Filebeat, obtain the real-time log parameters of the collected logs at the current moment.
[0040] In this embodiment, the log directory refers to the directory where different types of logs are classified and stored during the process of Filebeat collecting logs.
[0041] The working principle and beneficial effect of the above technical solution are: by analyzing Filebeat and the log set to be displayed, the current real-time log parameters are obtained and the logs are analyzed in time.
[0042] Embodiment 4: According to the method provided in Embodiment 2 of the invention, based on the real-time log parameters and the corresponding log types, a log report corresponding to each function is obtained, including: Based on the real-time log parameter and the corresponding log type, obtaining a first preset parameter and a preset parameter threshold corresponding to the first log; Obtaining a first difference based on the real-time log parameter at the current moment and the first preset parameter; If the first difference is within the range of the preset parameter threshold, and the position of the current moment in the first cycle is greater than two-thirds of the first cycle, then obtaining the second parameter of the first log in the first cycle to which the current moment belongs; Based on the first preset parameter and the second parameter, construct a first parameter table in time sequence; Based on the first parameter table, obtaining a first preset parameter at each moment and a second difference value of a second parameter; Calculate the variance of all second differences to obtain the second variance; If the second variance is within the range of the preset variance, it is determined that the first log runs normally and a corresponding log report is generated; If the first difference is not within the range of the preset parameter threshold, or the second variance is no longer within the range of the preset variance, obtaining a third parameter of the first log in the first period to which the current moment belongs; Calculating the difference between the parameters at adjacent moments in the third parameter to obtain a third difference; Calculating the difference between the parameters at adjacent moments in the first preset parameters to obtain a fourth difference; Based on the third difference and the fourth difference of the same time sequence, a fifth difference is obtained; Based on all fifth differences, in order of time, construct a difference curve; Based on the difference curve, a corresponding curve characteristic is obtained; If the curve feature is a monotonic feature, obtaining the corresponding curve trend; Generate a corresponding log report based on the curve characteristics; If the curve characteristic is not monotonic, then based on the difference curve, a corresponding curve anomaly index is calculated; Based on the curve abnormality index, matching the corresponding abnormality cause in the index-abnormality comparison table; Based on the abnormal reason, a log report is generated.
[0043] In this embodiment, the first log refers to a log corresponding to the real-time log parameter at the current moment.
[0044] In this embodiment, the first preset parameter refers to the value of the parameter corresponding to the function corresponding to the first log at each moment in the normal cycle of the next log.
[0045] In this embodiment, the preset parameter threshold refers to a reasonable range of the difference between the real-time log parameter of the same time sequence and the first preset parameter, which is preset to indicate that the function corresponding to the first log is operating normally.
[0046] In this embodiment, the first period refers to a period corresponding to the first log.
[0047] In this embodiment, the second parameter refers to the value of the parameter corresponding to each moment in the first period to which the current moment belongs in the first log.
[0048] In this embodiment, the first parameter table refers to the first preset parameters and the second parameters, and a table of the first preset parameters and the second parameters corresponding to each other is constructed in time sequence.
[0049] In this embodiment, the second difference refers to the difference between the first preset parameter and the second parameter at each moment in the first parameter table.
[0050] In this embodiment, the second variance refers to the variance of all second difference values.
[0051] In this embodiment, the preset variance refers to a preset variance of the second difference value indicating that the corresponding function is performed normally.
[0052] In this embodiment, the third parameter refers to the value of the parameter corresponding to each moment in the first cycle to which the first log belongs at the current moment, if the first difference is not within the range of the preset parameter threshold, or the second variance is no longer within the range of the preset variance.
[0053] In this embodiment, the third difference refers to the difference between parameters at adjacent moments in the third parameter.
[0054] In this embodiment, the fourth difference refers to the difference between parameters at adjacent moments in the first preset parameters.
[0055] In this embodiment, the fifth difference refers to the difference between the third difference and the fourth difference in the same time sequence.
[0056] In this embodiment, the difference curve refers to a curve graph of all fifth differences constructed in time sequence.
[0057] In this embodiment, the curve characteristic refers to a characteristic representing the change of the curve obtained by analyzing the difference curve, including: monotonicity and others.
[0058] In this embodiment, the curve trend refers to a change trend of the curve obtained by analyzing the difference curve, including upward or downward.
[0059] In this embodiment, the curve anomaly index refers to an index indicating the degree of anomaly of a difference curve obtained by calculating a difference curve whose curve characteristics are not monotonic.
[0060] In this embodiment, the index-abnormality comparison table refers to a comparison table of curve abnormality indexes and abnormality causes.
[0061] In this embodiment, the abnormality cause refers to the cause of the abnormality of the difference curve.
[0062] The working principle and beneficial effect of the above technical solution are: by analyzing the real-time log parameters and the corresponding log types, the log report corresponding to each function is obtained, the log trend is accurately analyzed and the log is visualized.
[0063] Embodiment 5: According to the method provided in Embodiment 4 of the invention, based on the difference curve, calculating the corresponding curve anomaly index includes: ;in, Indicates the curve anomaly index corresponding to the difference curve; represents the number of moments in the difference curve; Indicates the difference curve The value corresponding to each moment; The difference curve of the same log type in normal function. The value corresponding to each moment; Indicates the difference curve The value corresponding to each moment; The difference curve of the same log type in normal function. The value corresponding to each moment; Indicates the difference curve The calculation weight corresponding to each moment; Indicates the difference curve The impact factor corresponding to each moment; Indicates the difference curve The impact factor corresponding to each moment.
[0064] In this embodiment, the calculation weight refers to the The value of the weight involved in the calculation corresponding to each moment.
[0065] In this embodiment, the impact factor refers to the The value of the influencing factor involved in the calculation corresponding to each moment.
[0066] The working principle and beneficial effect of the above technical solution are: by analyzing the difference curve, calculating the corresponding curve anomaly index, accurately analyzing the trend of the log, it is conducive to accurately visualizing the log.
[0067] Embodiment 6: According to the method provided in Embodiment 5 of the present invention, matching a corresponding function adjustment strategy based on the log report includes: If the log report shows an abnormality, obtain the abnormality cause in the log report; Based on the abnormal cause and the abnormal adjustment database corresponding to the same log type, the corresponding function adjustment strategy is matched.
[0068] In this embodiment, the abnormality adjustment database refers to a database containing function adjustment strategies corresponding to abnormality causes corresponding to each log type.
[0069] The working principle and beneficial effect of the above technical solution are: by analyzing the log report, matching the corresponding function adjustment strategy, and timely adjusting the function corresponding to the log.
[0070] Embodiment 7: According to the method provided in Embodiment 1 of the invention, log visualization is implemented based on each function and the corresponding visualization type and log information, including: Based on each function that can be achieved by the stored logs, the corresponding visualization features are obtained; If the visualization feature is a color feature, the corresponding log report is obtained to obtain the corresponding first color; Based on the preset framework, each log information and the corresponding visualization type and the corresponding first color are visualized to obtain a corresponding log visualization platform.
[0071] In this embodiment, the visualization feature refers to whether the implementation status of the function needs to be displayed in color.
[0072] In this embodiment, the first color refers to a color that needs to be displayed and is obtained by analyzing the log report.
[0073] The working principle and beneficial effects of the above technical solution are: by analyzing each function and the corresponding visualization type and log information, log visualization is achieved, the collected logs are analyzed and displayed, helping users to quickly locate problems, analyze log trends and achieve log visualization.
[0074] Embodiment 8: According to the system provided by embodiment 1 of the invention, Figure 2 As shown, including: Demand analysis module: Based on the visualization requirements of logs, the stored logs are functionally divided to obtain the log types and visualization types corresponding to each function; Real-time acquisition module: Based on Filebeat and the log set to be displayed, obtain the current real-time log parameters; Analysis module: based on the real-time log parameters and the corresponding log types, obtain the log report corresponding to each function; Strategy matching module: matching corresponding function adjustment strategies based on the log report; Visualization module: realizes log visualization based on each function and the corresponding visualization type and log information.
[0075] The working principle and beneficial effects of the above technical solution are: by analyzing the visualization requirements of logs, the storage logs are functionally divided to obtain the log types and visualization types corresponding to each function; based on Filebeat and the log set to be displayed, the current real-time log parameters are obtained; based on the real-time log parameters and the corresponding log types, the log report corresponding to each function is obtained; based on the log report, the corresponding function adjustment strategy is matched; based on each function and the corresponding visualization type and log information, the log visualization is realized, the collected logs are analyzed and displayed, and users are helped to quickly locate problems, analyze log trends and realize log visualization.
[0076] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A lightweight log visualization method, characterized in that: include: Step 1: Based on the log visualization requirements, the stored logs are functionally divided to obtain the log type and visualization type corresponding to each function; Step 2: Based on Filebeat and the log set to be displayed, obtain the current real-time log parameters; Step 3: Based on the real-time log parameters and the corresponding log types, a log report corresponding to each function is obtained; Step 4: Based on the log report, matching the corresponding function adjustment strategy; Step 5: Based on each function and the corresponding visualization type and log information, realize log visualization.
2. The method according to claim 1, characterized in that Based on the visualization requirements of logs, the stored logs are functionally divided to obtain the log types corresponding to each function, including: Based on the visualization requirements of the logs, the first function that needs to be visualized and the second function that needs to be visualized and analyzed are obtained; Based on the first function and the second function, obtain a corresponding first log type and a corresponding second log type; Based on the first log type and the second log type, a corresponding first visualization type and a corresponding second visualization type are matched respectively.
3. The method according to claim 1, characterized in that Based on Filebeat and the log set to be displayed, obtain the current real-time log parameters, including: Based on Filebeat and the log set to be displayed, get the log directory where each log type is stored; Based on Filebeat, obtain the real-time log parameters of the collected logs at the current moment.
4. The method according to claim 2, characterized in that: Based on the real-time log parameters and the corresponding log types, a log report corresponding to each function is obtained, including: Based on the real-time log parameter and the corresponding log type, obtaining a first preset parameter and a preset parameter threshold corresponding to the first log; Obtaining a first difference based on the real-time log parameter at the current moment and the first preset parameter; If the first difference is within the range of the preset parameter threshold, and the position of the current moment in the first cycle is greater than two-thirds of the first cycle, then obtaining the second parameter of the first log in the first cycle to which the current moment belongs; Based on the first preset parameter and the second parameter, construct a first parameter table in time sequence; Based on the first parameter table, obtaining a first preset parameter at each moment and a second difference value of a second parameter; Calculate the variance of all second differences to obtain the second variance; If the second variance is within the range of the preset variance, it is determined that the first log runs normally and a corresponding log report is generated; If the first difference is not within the range of the preset parameter threshold, or the second variance is no longer within the range of the preset variance, obtaining a third parameter of the first log in the first period to which the current moment belongs; Calculating the difference between the parameters at adjacent moments in the third parameter to obtain a third difference; Calculating the difference between the parameters at adjacent moments in the first preset parameters to obtain a fourth difference; Based on the third difference and the fourth difference of the same time sequence, a fifth difference is obtained; Based on all fifth differences, in order of time, construct a difference curve; Based on the difference curve, a corresponding curve characteristic is obtained; If the curve feature is a monotonic feature, obtaining the corresponding curve trend; Generate a corresponding log report based on the curve characteristics; If the curve characteristic is not monotonic, then based on the difference curve, a corresponding curve anomaly index is calculated; Based on the curve abnormality index, matching the corresponding abnormality cause in the index-abnormality comparison table; Based on the abnormal reason, a log report is generated.
5. The method according to claim 4, characterized in that Based on the difference curve, the corresponding curve anomaly index is calculated, including: ;in, Indicates the curve anomaly index corresponding to the difference curve; represents the number of moments in the difference curve; Indicates the difference curve The value corresponding to each moment; The difference curve of the same log type in normal function. The value corresponding to each moment; Indicates the difference curve The value corresponding to each moment; The difference curve of the same log type in normal function. The value corresponding to each moment; Indicates the difference curve The calculation weight corresponding to each moment; Indicates the difference curve The impact factor corresponding to each moment; Indicates the difference curve The impact factor corresponding to each moment.
6. The method according to claim 5, characterized in that Based on the log report, the corresponding function adjustment strategy is matched, including: If the log report shows an abnormality, obtain the abnormality cause in the log report; Based on the abnormal cause and the abnormal adjustment database corresponding to the same log type, the corresponding function adjustment strategy is matched.
7. The method according to claim 1, characterized in that Based on each function and the corresponding visualization type and log information, log visualization is achieved, including: Based on each function that can be achieved by the stored logs, the corresponding visualization features are obtained; If the visualization feature is a color feature, the corresponding log report is obtained to obtain the corresponding first color; Based on the preset framework, each log information and the corresponding visualization type and the corresponding first color are visualized to obtain a corresponding log visualization platform.
8. A lightweight log visualization system, characterized in that: include: Demand analysis module: Based on the visualization requirements of logs, the stored logs are functionally divided to obtain the log types and visualization types corresponding to each function; Real-time acquisition module: Based on Filebeat and the log set to be displayed, obtain the current real-time log parameters; Analysis module: based on the real-time log parameters and the corresponding log types, obtain the log report corresponding to each function; Strategy matching module: matching corresponding function adjustment strategies based on the log report; Visualization module: realizes log visualization based on each function and the corresponding visualization type and log information.
