Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

A log reading and writing method and device

A log, to-be-read technology, applied in the computer field, can solve the problems of incomplete log, discontinuity, wrong policy decision, etc., to achieve the effect of improving integrity and continuity, reducing the probability of policy decision, and improving comprehensiveness

Active Publication Date: 2019-06-18
NEW H3C SECURITY TECH CO LTD
View PDF18 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In practical applications, due to various factors such as plugging and unplugging of business boards and power outages, the log daemon process often migrates from one business board to another, resulting in scattered logs stored in different logs.
When reading logs, only the logs stored on the hard disk of the service board where the log daemon process is currently located can be read, which leads to incomplete and discontinuous read logs, which in turn leads to incomplete data analysis and wrong policy decisions

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A log reading and writing method and device
  • A log reading and writing method and device
  • A log reading and writing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0045] The words appearing in the embodiments of the present application are explained below.

[0046] "Line XX": Indicates that no data is stored at this position Line XX.

[0047] "Line XX record": Indicates that data has been stored at the Line XX position, such as log X.

[0048] One-time log writing: Log writing during a period of time from when the log daemon is migrated to the business board where a hard disk is located, to when the log daemon migrates from this hard disk to...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a log reading and writing method and device. The method comprises the steps of acquiring a first log needing to be written into a first hard disk; Reading thelast piece of track information recorded in the log storage record table file to obtain a second hard disk which writes the log last time, the track information comprising the identifier of the hard disk which writes the log and the initial position information of the write-in log; Judging whether the second hard disk is the same as the first hard disk; And if the first log is different from the first log, writing the first log into a first hard disk, and writing the first initial position information and the identifier of the first hard disk as track information into a log storage record table file, the first initial position information representing the initial position of the first log. By applying the technical scheme provided by the embodiment of the invention, the integrity and continuity of the read logs are improved, the comprehensiveness of data analysis is improved, and the probability of making wrong strategy decisions is reduced.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a log reading and writing method and device. Background technique [0002] With the widespread deployment of application firewalls, the DPI (Deep Packet Inspection) series features of application firewalls provide application identification charts, application auditing, attack trend analysis URL (Uniform Resource Locator, uniform resource locator) access, log display, etc. The function provides users with good information reference and provides a good reference for the deployment of security policies. The provision of the above charts and other information is inseparable from the stored logs, that is, the above charts and other information are obtained by classifying and processing the logs. [0003] At present, when storing logs, in order to improve storage efficiency, the log daemon process (such as Log_Daemon) will store the logs on the hard disk of the business b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/06
Inventor 李永波
Owner NEW H3C SECURITY TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products