Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for separating log

A separation method and separation system technology, applied in hardware monitoring and other directions, can solve the problems of inconvenient analysis and tracking, waste of storage space, etc., and achieve the effect of facilitating program upgrade and saving storage space

Active Publication Date: 2014-08-13
GCI SCI & TECH
View PDF10 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this case, when multiple virtual machines run applications in the shared file system at the same time, the logs generated by the applications will be recorded in the same log file, which is not easy to analyze and track problems
[0004] The traditional method is to create a running directory for each running process to store program files and log files. The same program file is stored in multiple copies, wasting storage space, and if the program needs to be upgraded or the configuration needs to be modified, all of them need to be operated one by one. program files

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The present invention will be further described below in conjunction with the embodiments and drawings, but the implementation of the present invention is not limited thereto.

[0021] see figure 1 Shown is a schematic flow chart of an embodiment of the log separation method of the present invention. Such as figure 1 As shown, the log separation method in this embodiment includes the following steps:

[0022] Step S101: Modify the output location of the application log to a specified location;

[0023] Modifying the output location of the application log is to realize the redirection of the log. The specified location can be set according to actual needs. The specified location can include consoles, files, databases, etc., for example, for linux (a kind of computer operating system) System, after the log is output to the Linux system console, it can be redirected through the system command, that is, the output location of the application log needs to be changed to th...

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 provides a method and system for separating a log. The method comprises the following steps of: modifying the output location of an application log to a specified location; calling a default startup script, receiving process ID by the startup script, starting up an application program and generating a log file full path corresponding to the process ID according to the process ID; redirecting the log in the specified location according to the log file full path to obtain a log file of the corresponding running process after the application program is started up. The logs of multiple running processes of the same application program are separated, the storage space is saved, and the program upgrading and other change operations are facilitated.

Description

technical field [0001] The present invention relates to the field of cloud technology, in particular to a log separation method and system. Background technique [0002] Cloud computing is the product of the integration of traditional computer technology and network technology such as grid computing, distributed computing, parallel computing, utility computing, network storage, virtualization, and load balancing. It aims to integrate multiple relatively low-cost computing entities into a perfect system with powerful computing capabilities through the network, and with the help of SaaS (Software-as-a-service, software as a service), PaaS (Platform-as-a-service) -Service, platform as a service), IaaS (Infrastructure as a Service, infrastructure as a service), MSP (Managed Service Provider, management service provider) and other advanced business models distribute this powerful computing power to end users. [0003] In practical applications, the virtual machines in the cloud ...

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): G06F11/34
Inventor 陈家川
Owner GCI SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products