CN112860733A - Log verification method and system - Google Patents

Log verification method and system Download PDF

Info

Publication number
CN112860733A
CN112860733A CN202110235506.0A CN202110235506A CN112860733A CN 112860733 A CN112860733 A CN 112860733A CN 202110235506 A CN202110235506 A CN 202110235506A CN 112860733 A CN112860733 A CN 112860733A
Authority
CN
China
Prior art keywords
log
verification
data
log data
result
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.)
Withdrawn
Application number
CN202110235506.0A
Other languages
Chinese (zh)
Inventor
姚峰
王志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Yusheng Technology Co ltd
Original Assignee
Hangzhou Yusheng Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Yusheng Technology Co ltd filed Critical Hangzhou Yusheng Technology Co ltd
Priority to CN202110235506.0A priority Critical patent/CN112860733A/en
Publication of CN112860733A publication Critical patent/CN112860733A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a log verification method and a log verification system. Wherein, the method comprises the following steps: acquiring log data; comparing the log data with a preset verification parameter to obtain a comparison result; and analyzing a log verification result according to the comparison result. The invention solves the technical problems that in the prior art, log access and application processes are only recorded and analyzed through original log data, the probability of error data is increased, and the accuracy of log analysis results is reduced.

Description

Log verification method and system
Technical Field
The invention relates to the field of log processing, in particular to a log verification method and a log verification system.
Background
With the continuous development of intelligent and information technology, people use intelligent devices in more and more lives, works and studies, for example, in a large amount of data, the devices need logs of different types to record data traces, and the change of data to be checked by adding, deleting and modifying needs to be realized through the logs.
At present, in the process of log processing, in order to obtain a log recording result, a method of directly recording original data into a log, displaying and analyzing the log is generally adopted, but when the data volume is huge, the original data is directly used, so that the data error rate is increased, namely certain error data is applied to log analysis, and the accuracy of the log application process is reduced.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a log verification method and a log verification system, which at least solve the technical problems that in the prior art, log access and application processes are only recorded and analyzed through original log data, the probability of error data is increased, and the accuracy of log analysis results is reduced.
According to an aspect of an embodiment of the present invention, there is provided a log checking method, including: acquiring log data; comparing the log data with a preset verification parameter to obtain a comparison result; and analyzing a log verification result according to the comparison result.
Optionally, after the obtaining of the log data, the method further includes: and preprocessing the log data.
Optionally, the preprocessing includes: and (6) redundant elimination.
Optionally, according to the comparison result, after the analyzing the log checking result, the method further includes: and displaying the log verification result.
According to another aspect of the embodiments of the present invention, there is also provided a log verification system, including: the acquisition module is used for acquiring log data; the comparison module is used for comparing the log data with preset verification parameters to obtain a comparison result; and the analysis module is used for analyzing the log verification result according to the comparison result.
Optionally, the system further includes: and the preprocessing module is used for preprocessing the log data.
Optionally, the preprocessing includes: and (6) redundant elimination.
Optionally, the system further includes: and the display module is used for displaying the log verification result.
According to another aspect of embodiments of the present invention, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform a log check method.
According to another aspect of the embodiments of the present invention, there is also provided a non-volatile storage medium, where the non-volatile storage medium includes a stored program, and the program controls a device in which the non-volatile storage medium is located to execute a log verification method when running.
In the embodiment of the invention, log data are obtained; comparing the log data with a preset verification parameter to obtain a comparison result; according to the comparison result, the log verification result is analyzed, and the technical problems that in the prior art, the log access and application process is only recorded and analyzed through original log data, the probability of error data is increased, and the accuracy of the log analysis result is reduced are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a log checking method according to an embodiment of the present invention;
fig. 2 is a block diagram of a log checking system according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present invention, there is provided a method embodiment of a log check method, it should be noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than that presented herein.
Example one
Fig. 1 is a flowchart of a log checking method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, log data is acquired.
Specifically, in order to analyze and verify the acquired log, the embodiment of the present invention needs to first acquire log data, where the log data is a log obtained by acquiring and recording device-related information in real time, and the data relates to sensing data of a plurality of sensors or operation data of a server.
Optionally, after the obtaining of the log data, the method further includes: and preprocessing the log data.
Optionally, the preprocessing includes: and (6) redundant elimination.
Specifically, after the log data is obtained, in order to facilitate analysis and verification of the log data, the original log data needs to be optimized, that is, the log data needs to be preprocessed, where the preprocessing includes: and (6) redundant elimination. Therefore, the preprocessed log data can be better executed by subsequent analysis and verification operations, and the efficiency of the whole log analysis and verification is increased.
It should be noted that the elimination of the redundant log may be by capturing a data packet; analyzing the data packet to obtain a log corresponding to the data packet; acquiring relevant characteristics of a log to be detected, and judging whether the log is a relevant log or not according to the relevant characteristics; if the log to be detected is an irrelevant log, judging whether the log is a repeated log according to the repeated characteristics of the log, and performing corresponding processing after judging whether the log is the relevant log or the repeated log.
And step S104, comparing the log data with preset verification parameters to obtain a comparison result.
Specifically, after the optimized log data is obtained, the embodiment of the present invention needs to compare the log data with preset check parameters, such as check bit comparison and integrity comparison, so as to achieve the purpose of verifying the accuracy of the log.
And step S106, analyzing the log verification result according to the comparison result.
Specifically, after log data is verified, according to comparison between the log data and verification parameters, a comparison result can be analyzed so as to obtain information such as whether verification is successful or not, the verification degree and the like, and then all verification results are displayed to the terminal, wherein the log result can be also made in a chart form, and the validity of the log verification result is improved.
Optionally, according to the comparison result, after the analyzing the log checking result, the method further includes: and displaying the log verification result.
Specifically, after the log data is verified, the verification result needs to be displayed through a preset terminal, so that a user can see the verification result and the verification feedback of the log data, and further analysis and application of the log data are performed, wherein the display may be performed based on a display device of the log data.
By the embodiment, the technical problems that in the prior art, the log access and application process is only recorded and analyzed through original log data, the probability of error data is increased, and the accuracy of log analysis results is reduced are solved.
Example two
Fig. 2 is a block diagram of a log verification system according to an embodiment of the present invention, and as shown in fig. 2, the system includes:
and an obtaining module 20, configured to obtain log data.
Specifically, in order to analyze and verify the acquired log, the embodiment of the present invention needs to first acquire log data, where the log data is a log obtained by acquiring and recording device-related information in real time, and the data relates to sensing data of a plurality of sensors or operation data of a server.
Optionally, the system further includes: and the preprocessing module is used for preprocessing the log data.
Optionally, the preprocessing includes: and (6) redundant elimination.
Specifically, after the log data is obtained, in order to facilitate analysis and verification of the log data, the original log data needs to be optimized, that is, the log data needs to be preprocessed, where the preprocessing includes: and (6) redundant elimination. Therefore, the preprocessed log data can be better executed by subsequent analysis and verification operations, and the efficiency of the whole log analysis and verification is increased.
It should be noted that the elimination of the redundant log may be by capturing a data packet; analyzing the data packet to obtain a log corresponding to the data packet; acquiring relevant characteristics of a log to be detected, and judging whether the log is a relevant log or not according to the relevant characteristics; if the log to be detected is an irrelevant log, judging whether the log is a repeated log according to the repeated characteristics of the log, and performing corresponding processing after judging whether the log is the relevant log or the repeated log.
And the comparison module 22 is configured to compare the log data with a preset verification parameter to obtain a comparison result.
Specifically, after the optimized log data is obtained, the embodiment of the present invention needs to compare the log data with preset check parameters, such as check bit comparison and integrity comparison, so as to achieve the purpose of verifying the accuracy of the log.
And the analysis module 24 is configured to analyze a log verification result according to the comparison result.
Specifically, after log data is verified, according to comparison between the log data and verification parameters, a comparison result can be analyzed so as to obtain information such as whether verification is successful or not, the verification degree and the like, and then all verification results are displayed to the terminal, wherein the log result can be also made in a chart form, and the validity of the log verification result is improved.
Optionally, the system further includes: and the display module is used for displaying the log verification result.
Specifically, after the log data is verified, the verification result needs to be displayed through a preset terminal, so that a user can see the verification result and the verification feedback of the log data, and further analysis and application of the log data are performed, wherein the display may be performed based on a display device of the log data.
According to another aspect of embodiments of the present invention, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform a log check method.
Specifically, the log verification method includes: acquiring log data; comparing the log data with a preset verification parameter to obtain a comparison result; and analyzing a log verification result according to the comparison result.
According to another aspect of the embodiments of the present invention, there is also provided a non-volatile storage medium, where the non-volatile storage medium includes a stored program, and the program controls a device in which the non-volatile storage medium is located to execute a log verification method when running.
Specifically, the log verification method includes: acquiring log data; comparing the log data with a preset verification parameter to obtain a comparison result; and analyzing a log verification result according to the comparison result.
By the embodiment, the technical problems that in the prior art, the log access and application process is only recorded and analyzed through original log data, the probability of error data is increased, and the accuracy of log analysis results is reduced are solved.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A log checking method, comprising:
acquiring log data;
comparing the log data with a preset verification parameter to obtain a comparison result;
and analyzing a log verification result according to the comparison result.
2. The method of claim 1, wherein after the obtaining log data, the method further comprises:
and preprocessing the log data.
3. The method of claim 2, wherein the pre-processing comprises: and (6) redundant elimination.
4. The method of claim 1, wherein, based on the comparison, after the analyzing the log check result, the method further comprises:
and displaying the log verification result.
5. A log verification system, comprising:
the acquisition module is used for acquiring log data;
the comparison module is used for comparing the log data with preset verification parameters to obtain a comparison result;
and the analysis module is used for analyzing the log verification result according to the comparison result.
6. The system of claim 5, further comprising:
and the preprocessing module is used for preprocessing the log data.
7. The system of claim 6, wherein the pre-processing comprises: and (6) redundant elimination.
8. The system of claim 5, further comprising:
and the display module is used for displaying the log verification result.
9. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 4.
10. A non-volatile storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus in which the non-volatile storage medium is located to perform the method of any one of claims 1 to 4.
CN202110235506.0A 2021-03-03 2021-03-03 Log verification method and system Withdrawn CN112860733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110235506.0A CN112860733A (en) 2021-03-03 2021-03-03 Log verification method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110235506.0A CN112860733A (en) 2021-03-03 2021-03-03 Log verification method and system

Publications (1)

Publication Number Publication Date
CN112860733A true CN112860733A (en) 2021-05-28

Family

ID=75991330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110235506.0A Withdrawn CN112860733A (en) 2021-03-03 2021-03-03 Log verification method and system

Country Status (1)

Country Link
CN (1) CN112860733A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113609096A (en) * 2021-07-19 2021-11-05 北京智思迪科技有限公司 Data processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113609096A (en) * 2021-07-19 2021-11-05 北京智思迪科技有限公司 Data processing method and device

Similar Documents

Publication Publication Date Title
CN110992992B (en) Hard disk test method, device and storage medium
CN108491321B (en) Method and device for determining test case range and storage medium
CN106874165B (en) Webpage detection method and device
CN107302586A (en) A kind of Webshell detection methods and device, computer installation, readable storage medium storing program for executing
CN112751711B (en) Alarm information processing method and device, storage medium and electronic equipment
US20170149800A1 (en) System and method for information security management based on application level log analysis
CN110213238A (en) Threat detection method and device, storage medium, the computer equipment of data
CN109582504A (en) A kind of data reconstruction method and device for apple equipment
CN112437034B (en) False terminal detection method and device, storage medium and electronic device
CN112860733A (en) Log verification method and system
CN114338104A (en) Security gateway parsing function verification method, device, equipment and storage medium
CN112905579A (en) Log optimization method and system
CN112433936A (en) Test method, test device and storage medium
CN112433935A (en) Test method, test device, electronic equipment and storage medium
CN109598525B (en) Data processing method and device
CN104637496B (en) Computer system and audio comparison method
CN113312902A (en) Intelligent auditing and checking method and device for same text
CN115391224A (en) Flow playback method and device, computer equipment and readable storage medium
CN116049138A (en) Transaction data tracing method, tracing device and tracing system
CN106776264B (en) Application program code testing method and device
CN112860527A (en) Fault monitoring method and device of application server
CN113868041A (en) Server stability test data processing method and device and storage medium
CN111143644B (en) Identification method and device of Internet of things equipment
CN112242929A (en) Log detection method and device
CN110134609A (en) Enterprise-level web application system page method for testing performance, device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210528