Method and system for providing log service

A log and server technology, applied in the service field, can solve the problems of resource and time-consuming log sorting, cumbersome operation of log viewing methods, and inability to reflect the overall log service, so as to reduce the amount of sorted data, save system resources and sorting time, and improve efficiency effect

Active Publication Date: 2008-06-11
ADVANCED NEW TECH CO LTD
View PDF0 Cites 64 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The technical problem to be solved by the present invention is to provide a log service method and system to solve the timing problem after log collection in a multi-server environment, and the problem that log sorting n

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
  • Method and system for providing log service
  • Method and system for providing log service
  • Method and system for providing log service

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0040] Log4j is a tool that helps programmers output log information to the output destination. The present invention uses the characteristics of Log4j to realize remote writing of logs, and reforms on this basis to provide index-based log services. Log4j provides a way to remotely write logs through socket (network socket), refer to figure 2 Shown is a schematic diagram of the implementation of Log4j's SocketServer (server-side socket). In a multi-server environment, the clients 201, 202, and 203 that generate logs all generate multiple log events, and then use SocketAppender according to the client configuration file to write the log events to the specified server 204 through the socket. Wherein, the SocketAppender is used 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 invention discloses a method of providing log service and a system thereof, relates to the log processing technology and solves the problems of temporality after log collection and resource and time waste in log sorting under the environment of multiserver. The method comprises that: index target category information is configured in server configuration file; a client sends log information to a remote server; after the server receives the log information, the index target category is read; the log information and the index target category are read to an index object which is then put to an index queue; the index queue is read circularly; the index target category and the log information are acquired from the index object; a log index file is established and stored. As the log index file has temporality, the log index file solves the problem that a log file which is merged by a plurality of dispersed files has no temporality. Furthermore, the invention supports the requirement of high-efficient, safe and convenient log operation by multi-user and the log operation can be controlled through different user authority.

Description

technical field [0001] The invention relates to log processing technology, in particular to a method and system for providing services such as log collection, analysis, processing, and viewing in a multi-server environment. Background technique [0002] A multi-server environment means that there are multiple servers that generate log events. In a multi-server environment, there are various processing methods for a series of services such as log collection, analysis, processing, and viewing. At present, most log collection methods are to directly write the log files to the local application server (that is, the client), and then through the specified server according to a certain period of timed tasks (usually one day), each application server (that is, the remote client) The logs stored on the server are taken out and finally merged into one log file. refer to figure 1 As shown, the log servers 101, 102, and 103 all generate a large number of log files, and the collectio...

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
IPC IPC(8): H04L12/24G06F17/30
Inventor 沈少峰李磊赵旭
Owner ADVANCED NEW 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
Try Eureka
PatSnap group products