System log query method

A query method and system log technology, applied in the field of system log query that can only query the latest system log part, can solve the problems of wasting time, wasting memory resources, etc.

Active Publication Date: 2020-05-19
MITAC COMP (SHUN DE) LTD +1
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the system administrator often only needs to query the latest few logs, so starting to return the oldest log is not only a waste of time, but also a waste of memory resources

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
  • System log query method
  • System log query method
  • System log query method

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0034] Example 1: When the query host 12 needs to query a total of 1000 logs starting from the oldest number, first issue an instruction R start =0 and R req =1000 query command. After receiving the query command, the log management device 11 sets K=2001 in step 204, and finally transmits the logs numbered 2001-2400 in step 216. After the query host 12 receives the logs numbered 2001~2400, it learns that S=2001 and R max =400, the query host 12 then generates an instruction R start =2401 and R req =400 query instruction, instruction R start =2801 and R req =200 query instruction, then send instruction R start =2401 and R req =400 query instruction to the log management device 11. Then, the log management device 11 sets K=2401 in step 203 according to the query command, and finally transmits the logs numbered 2401 to 2800 in step 212. Then, the query host 12 sends an instruction R start =2801 and R req =200 query command to the log management device 11. Then the log ma...

example 2

[0035] Example 2: When the query host 12 needs to query 2000 logs starting from the oldest number, similar to the above steps, the query host 12 issues an instruction R start =0 and R req =2000 query command, and the log management device 11 transmits the logs numbered 2001~2400 to the query host 12 according to the query command, the query host 12 sequentially generates instructions R start =2401 and R req =400 query instruction, instruction R start =2801 and R req =400 query instruction, instruction R start =3201 and R req =400 query instruction, instruction R start =3601 and R req =400 query commands, and send the query commands to the log management device 11 in sequence. However, unlike Example 1, the log management device 11 receives the instruction R start =3201 and R req After the query command of =400, the logs numbered 3201~3500 will be sent in step 213. When the query host 12 receives these logs, it knows that the maximum number of all logs is 3500, so it w...

example 3

[0036] Example 3: When the query host 12 only needs the latest few logs, an instruction R is issued start =0 and R req =404 query command. After receiving the query command, the log management device 11 sets K=S in step 204, and finally returns the number to (S+N-R max )~(S+N-1), that is, the logs numbered 3101~3500 are returned to the query host 12. Among them, although in this embodiment R start =0, but can be other values. In particular, in this example, it is explained that the query host 12 sets R in the query command req Equal to the predetermined value M, and let the log management device 11 determine R req After it is equal to M, the latest R is returned in a data return max Diary.

[0037] In summary, in the system log query method of the present invention, when the system administrator needs to query the latest log, the query host 12 transmits the instruction R req =M the query command to the log management device 11, and let the log management device 11 determine ...

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 invention discloses a system log query method. The method is executed by a log management device comprising N logs numbered in order and capable of maximally ex-transmitting Rmax logs at most in response to once log query. The system log query method comprises the following steps: (A) receiving a query instruction requiring to return Rreq logs with the serial number starting from Rstart; (B) defining a transmitting starting parameter value K, and judging whether the smallest S in the serial number of the log is less than the Rstart according to the query instruction, setting K to equal to S if the smallest S is less than the Rstart, otherwise setting K to equal to Rstart; and (C) beginning returning one of the log with serial number of K and the log with serial number of (S+N-Rmax), wherein the log with the serial numbers of (S+N-Rmax) to (S+N-1) is returned when N is greater than Rmax, Rreq is greater than Rmax, and the Rreq is equal to a predetermined value M.

Description

Technical field [0001] The present invention relates to a system log query method, in particular to a system log query method that can query only the latest system log part. Background technique [0002] The system logs of the operating system are numbered one by one according to time, and the logs are updated at any time to record large and small events that occur at any time in the system. System administrators can keep abreast of the health of the system by viewing the system log, and create a system recording environment tailored for themselves according to their own needs. Through flexible use of system logs, a more stable computer environment can be provided. [0003] The current system log query method is that a system administrator operates a query host to send a query command to a log management device to request the log management device to return logs. However, after the log management device receives the query command, it can only return from the oldest log stored, an...

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 Patents(China)
IPC IPC(8): G06F11/32
CPCG06F11/328
Inventor 林宏达陈光兆
Owner MITAC COMP (SHUN DE) 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
Try Eureka
PatSnap group products