CN110413496A - A method of realizing that the operation data modularization of electronics license is collected - Google Patents

A method of realizing that the operation data modularization of electronics license is collected Download PDF

Info

Publication number
CN110413496A
CN110413496A CN201910686104.5A CN201910686104A CN110413496A CN 110413496 A CN110413496 A CN 110413496A CN 201910686104 A CN201910686104 A CN 201910686104A CN 110413496 A CN110413496 A CN 110413496A
Authority
CN
China
Prior art keywords
log
data
analysis system
module
logging tools
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.)
Granted
Application number
CN201910686104.5A
Other languages
Chinese (zh)
Other versions
CN110413496B (en
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.)
Fujian Linewell Software Co Ltd
Original Assignee
Fujian Linewell Software 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 Fujian Linewell Software Co Ltd filed Critical Fujian Linewell Software Co Ltd
Priority to CN201910686104.5A priority Critical patent/CN110413496B/en
Publication of CN110413496A publication Critical patent/CN110413496A/en
Application granted granted Critical
Publication of CN110413496B publication Critical patent/CN110413496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to a kind of methods realizing electronics license operation data modularization and collecting, and provide an operational data collection platform;Including logging tools module, micro services card module, analysis system and data memory module;Logging tools module and micro services card module acquire data, and send analysis system for the data that the two acquires by logging tools module;Analysis system sends the data memory module for the data received and carries out data storage;Analysis system can also obtain the data of data memory module by way of manual retrieval or timed task, to show or report form statistics.The present invention is not limited by machine account, and for safety, only a few peoples have permission the machine of production environment, but analysis system of the invention easily can distribute account and permission to everybody very, and not influence the safety of production environment host.Effectively data can be counted, be analyzed;The utilization rate of data is improved, and retrieval conveniently has a unified search space.

Description

A method of realizing that the operation data modularization of electronics license is collected
Technical field
The present invention relates to electronics license, data collection, modularization field, especially a kind of realization electronics license operation data The method that modularization is collected.
Background technique
Operation data mainly includes system log, application log and security log.System O&M and developer can To understand server software and hardware information by log, check the reason of mistake and mistake generation in configuration process.Often analysis Log will be seen that the load of server, performance security, to take timely measure correction mistake.But current status is: Electronics license platform possesses multiple applications, these have acquisition operation data using some, and some does not have.And acquire mode with And the mode of storage is different.Technical aspect, some use System.out.println, some logback, some use Log4j, there are also operation datas to be directly stored on mysql or mongoDB.
It is stored in different equipment in general, operation data is dispersed in.If managing tens of up to a hundred servers, but also Operation data is being consulted using the conventional method for successively logging in every machine.It in this way can troublesome and inefficiency.So using The operation data management of centralization.
After centralized management operation data, the statistics of operation data and retrieval become a more troublesome thing again, and one As using Linux commands such as grep, awk and wc be able to achieve retrieval and statistics, but for requiring higher inquiry, sequence and system Meter etc. requires and huge machine quantity still uses such method inevitably somewhat unable to do what one wishes.By being concentrated to log Change management, the log information on all machines is collected, is gathered.Complete daily record data has very important work With:
1) information searching: by retrieving log information, corresponding bug is positioned, solution is found out.
2) Service Diagnostic: by being counted, being analyzed to log information, understand the load and service operation shape of server State is found out time consuming requests and is optimized etc..
3) data are analyzed: if it is the log of formatting, further data analysis can be done, count, polymerize it is significant Information, for example according to the commodity id in request, find out TOP10 user's business interested.
4) link analysis is called.Collection system can also collect the letters such as the important informations such as user identifier, request module, initiation address Breath.By it, entire call chain can be tracked, is also convenient for investigation problem.
Summary of the invention
In view of this, the purpose of the present invention is to propose to kind of the method for realizing electronics license operation data modularization collection, energy It is unified that log is analyzed, is retrieved, it improves the acquisition of operation data and utilizes process.
The present invention is realized using following scheme: a method of it realizing that the operation data modularization of electronics license is collected, provides One operational data collection platform;The operational data collection platform includes logging tools module, micro services card module, log Analysis system and data memory module;The logging tools module and the micro services card module acquire data, and pass through institute It states logging tools module and sends the Log Analysis System for the data that the two acquires;The Log Analysis System will receive Data be sent to the data memory module and carry out data storage;The Log Analysis System can also by manual retrieval or The mode of timed task obtains the data of the data memory module, to show or report form statistics;
After Log Analysis System stores data into memory module, built-in some timed tasks.These timed tasks can basis Data in data module, by date or other dimensions generate some simple reports.Meanwhile Log Analysis System also provides Visual m odeling technique interface, user can input the search conditions such as keyword, period on interface, search for the data that he wants (log).
The platform carries out electronics license operation data modularization collection in accordance with the following steps:
Step S1: carry out customized log: the logging tools module is obtained from configuration center and is configured;From the marker bit in configuration Judgement is that journal engine;Log recording then is carried out using the simple log interface passed through if local engine;If system One engine then usage log tool model, by log content, log recording time, code row information locating for log is with json's Format is sent to the Log Analysis System, executes step S7;
Step S2: statistical log storage: developer calls the interface of the logging tools module to carry out statistical data typing, and holds Row step S7;
Step S3: it carries out micro services calling: if called side has used log plug-in unit, and not masking journal function, just It can log enable function;Judge called side whether log enable;Called side starts log recording if log enable, and executes Step S4;It is no to then follow the steps S5;
Step S4: the logging tools module is that current context generates unique identifier, to call the function of D-chain trace Energy;If having initiated micro services calling, identifier can be transmitted to callee;By this mechanism, the logging tools module It identifies that an operation is original initiation, or is called by third party;If then called side starts log recording and executes step Rapid S6;Otherwise step S6 is directly executed;
Step S5: called side starts log recording, and obtains the additional log content of client transmitting, finally executes step S6;
Step S6: the launch position of micro services is recorded, accessed interface, enters ginseng, return value, whether succeed, exception information, place Manage the time spent, and by the launch position of the micro services, accessed interface, enter ginseng and result is sent to log services system System executes step S7;
Step S7: by application identities, the local ip of log recording person, the port of log recording person monitoring, Context identifier, permission Customized field of user etc. adds in log as custom content, is then sent to the log point in a batch Analysis system;Log Analysis System parses the type of every log from batch, then store it big data search in real time Analysis engine external member.
Further, the Log Types of parsing described in step S7 include but is not limited to customized log, statistical log With micro services log.
Compared with prior art, the invention has the following beneficial effects:
The present invention is not limited by machine account, and for safety, only a few peoples have permission the machine of production environment, but the present invention Log Analysis System easily can distribute account and permission to everybody very, and do not influence the safety of production environment host. Effectively data can be counted, be analyzed;The utilization rate of data is improved, and retrieving conveniently has a unified retrieval empty Between.
Detailed description of the invention
Fig. 1 is the flow chart of the embodiment of the present invention.
Specific embodiment
The present invention will be further described with reference to the accompanying drawings and embodiments.
It is noted that following detailed description is all illustrative, it is intended to provide further instruction to the application.Unless another It indicates, all technical and scientific terms used herein has usual with the application person of an ordinary skill in the technical field The identical meanings of understanding.
It should be noted that term used herein above is merely to describe specific embodiment, and be not intended to restricted root According to the illustrative embodiments of the application.As used herein, unless the context clearly indicates otherwise, otherwise singular Also it is intended to include plural form, additionally, it should be understood that, when in the present specification using term "comprising" and/or " packet Include " when, indicate existing characteristics, step, operation, device, component and/or their combination.
As shown in Figure 1, a kind of method realizing electronics license operation data modularization and collecting is present embodiments provided,
One operational data collection platform is provided;The operational data collection platform includes logging tools module, micro services plug-in unit mould Block, Log Analysis System and data memory module;The logging tools module and the micro services card module acquire data, and The Log Analysis System is sent by the data that the two acquires by the logging tools module;The Log Analysis System will The data received are sent to the data memory module and carry out data storage;The Log Analysis System can also be by artificial The mode of retrieval or timed task, obtains the data of the data memory module, to show or report form statistics;
The platform carries out electronics license operation data modularization collection in accordance with the following steps:
Step S1: carry out customized log: the logging tools module is obtained from configuration center and is configured;From the marker bit in configuration Judgement is that journal engine;Log recording then is carried out using the simple log interface passed through if local engine;If system One engine then usage log tool model, by log content, log recording time, code row information locating for log is with json's Format is sent to the Log Analysis System, executes step S7;
Step S2: statistical log storage: developer calls the interface of the logging tools module to carry out statistical data typing, and holds Row step S7;
Step S3: it carries out micro services calling: if called side has used log plug-in unit, and not masking journal function, just It can log enable function;Judge called side whether log enable;Called side starts log recording if log enable, and executes Step S4;It is no to then follow the steps S5;
Step S4: the logging tools module is that current context generates unique identifier, to call the function of D-chain trace Energy;If having initiated micro services calling, identifier can be transmitted to callee;By this mechanism, the logging tools module It identifies that an operation is original initiation, or (identifier) is called by third party;If then called side starts log recording And execute step S6;Otherwise step S6 is directly executed;
Step S5: called side starts log recording, and obtains the additional log content of client transmitting, finally executes step S6;
Step S6: the launch position of micro services is recorded, accessed interface, enters ginseng, return value, whether succeed, exception information, place Manage the time spent, and by the launch position of the micro services, accessed interface, enter ginseng and result is sent to log services system System executes step S7;
Step S7: by application identities, the local ip of log recording person, the port of log recording person monitoring, Context identifier, permission Customized field of user etc. adds in log as custom content, is then sent to the log point in a batch Analysis system;Log Analysis System parses the type of every log from batch, then store it big data search in real time Analysis engine external member.
In the present embodiment, the Log Types of parsing described in step S7 include but is not limited to customized log, statistics Log and micro services log.
1) logging tools are a manual operation data sampling instruments, it can be collected log, filter.It can The log of immobilized substance is written, it also can be written into the data of variable data item.Variable data item includes statistical data etc., mainly For statisticalling analyze.
2) micro services plug-in unit is a plug-in unit without code intrusion for dubbo, if developer is not customized Log content, there is no need to the exploitations of any additional code for that.Micro services plug-in unit can be in request end or called terminal automatic collection Interface requests, abnormal log, request time-consuming, launch position etc..Default acquires log in request end, if request end is not pacified Micro services plug-in unit is filled, or has disabled the plug-in unit, it will acquire log in server-side.And it also supports user id etc. to identify It is transmitted in entire call chain, has both improved the quality of data, also function to the function of hawkeye tracking.
3) Log Analysis System is according to the index database on the automatic maintenance elasticsearch of configuration.When it receives data Afterwards, data can be sorted out, is then stored in the corresponding index database of elasticsearch.And provide retrieval, analysis function Energy.
4) data storage uses elasticsearch, it is the open source distributed search clothes based on Lucene Business system.Its feature has: distributed, zero configuration, automatic to find, indexes auto plate separation, indexes copy mechanism, restful wind Lattice interface, multi-data source, automatic search overhead etc..It provides the full-text search engine of a distributed multi-user ability, base In RESTful web interface.Elasticsearch is developed with Java, and as the open-source under Apache license terms Code publication is the second popular enterprise search engine.It is stable designed for real-time search in cloud computing, can be reached, reliably, Quickly, easy to install and use.In elasticsearch, the data of all nodes are impartial.
Preferably, operational data collection is divided into manual data acquisition and micro services automatic data collection two by the present embodiment Kind.Either any data can all add some additional information, such as current system before being sent to Log Analysis System The address ip of system, associated user identifier of the data (if any) etc..Then these data are unifiedly stored to Then ElasticSearch can unify to analyze log, retrieve.It substantially improves the acquisition of operation data and utilizes stream Journey.
The foregoing is merely presently preferred embodiments of the present invention, all equivalent changes done according to scope of the present invention patent with Modification, is all covered by the present invention.

Claims (2)

1. a kind of method realizing electronics license operation data modularization and collecting, it is characterised in that: provide an operational data collection Platform;The operational data collection platform includes logging tools module, micro services card module, Log Analysis System and data Memory module;The logging tools module and the micro services card module acquire data, and pass through the logging tools module The Log Analysis System is sent by the data that the two acquires;The data received are sent institute by the Log Analysis System It states data memory module and carries out data storage;The Log Analysis System can also pass through manual retrieval or the side of timed task Formula obtains the data of the data memory module, to show or report form statistics;
The platform carries out electronics license operation data modularization collection in accordance with the following steps:
Step S1: carry out customized log: the logging tools module is obtained from configuration center and is configured;From the marker bit in configuration Judgement is that journal engine;Log recording then is carried out using general simple log interface if local engine;If system One engine then usage log tool model, by log content, log recording time, code row information locating for log is with json's Format is sent to the Log Analysis System, executes step S7;
Step S2: statistical log storage: developer calls the interface of the logging tools module to carry out statistical data typing, and holds Row step S7;
Step S3: it carries out micro services calling: if called side has used log plug-in unit, and not masking journal function, just It can log enable function;Judge called side whether log enable;Called side starts log recording if log enable, and executes Step S4;It is no to then follow the steps S5;
Step S4: the logging tools module is that current context generates unique identifier, to call the function of D-chain trace Energy;If having initiated micro services calling, identifier can be transmitted to callee;By this mechanism, the logging tools module It identifies that an operation is original initiation, or is called by third party;If then called side starts log recording and executes step Rapid S6;Otherwise step S6 is directly executed;
Step S5: called side starts log recording, and obtains the additional log content of client transmitting, finally executes step S6;
Step S6: the launch position of micro services is recorded, accessed interface, enters ginseng, return value, whether succeed, exception information, place Manage the time spent, and by the launch position of the micro services, accessed interface, enter ginseng and result is sent to log services system System executes step S7;
Step S7: by application identities, the local ip of log recording person, the port of log recording person monitoring, Context identifier, permission Customized field of user etc. adds in log as custom content, is then sent to log analysis system in a batch System;Log Analysis System parses the type of every log from batch, then stores up log to big data search and analysis in real time Engine external member.
2. a kind of method realizing electronics license operation data modularization and collecting according to claim 1, it is characterised in that: The Log Types of parsing described in step S7 include but is not limited to customized log, statistical log and micro services log.
CN201910686104.5A 2019-07-29 2019-07-29 Method for realizing componentized collection of electronic license operation data Active CN110413496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910686104.5A CN110413496B (en) 2019-07-29 2019-07-29 Method for realizing componentized collection of electronic license operation data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910686104.5A CN110413496B (en) 2019-07-29 2019-07-29 Method for realizing componentized collection of electronic license operation data

Publications (2)

Publication Number Publication Date
CN110413496A true CN110413496A (en) 2019-11-05
CN110413496B CN110413496B (en) 2022-08-19

Family

ID=68363640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910686104.5A Active CN110413496B (en) 2019-07-29 2019-07-29 Method for realizing componentized collection of electronic license operation data

Country Status (1)

Country Link
CN (1) CN110413496B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112364189A (en) * 2020-11-16 2021-02-12 浪潮云信息技术股份公司 Electronic certificate application method based on ES service

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040167912A1 (en) * 2003-02-20 2004-08-26 International Business Machines Corporation Unified logging service for distributed applications
US20100088354A1 (en) * 2006-11-30 2010-04-08 Alibaba Group Holding Limited Method and System for Log File Analysis Based on Distributed Computing Network
US20140082184A1 (en) * 2012-09-14 2014-03-20 Alibaba Group Holding Limited Method and system for monitoring execution of user request in distributed system
US20160098342A1 (en) * 2014-10-05 2016-04-07 YScope Inc. Systems and processes for computer log analysis
US9626328B1 (en) * 2013-06-19 2017-04-18 EMC IP Holding Company LLC Method and system for on-demand aggregated logging for distributed systems
WO2017166644A1 (en) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 Data acquisition method and system
CN109756364A (en) * 2018-12-07 2019-05-14 成都四方伟业软件股份有限公司 A kind of micro services performance optimization system and analysis method based on log analysis

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040167912A1 (en) * 2003-02-20 2004-08-26 International Business Machines Corporation Unified logging service for distributed applications
US20100088354A1 (en) * 2006-11-30 2010-04-08 Alibaba Group Holding Limited Method and System for Log File Analysis Based on Distributed Computing Network
US20140082184A1 (en) * 2012-09-14 2014-03-20 Alibaba Group Holding Limited Method and system for monitoring execution of user request in distributed system
US9626328B1 (en) * 2013-06-19 2017-04-18 EMC IP Holding Company LLC Method and system for on-demand aggregated logging for distributed systems
US20160098342A1 (en) * 2014-10-05 2016-04-07 YScope Inc. Systems and processes for computer log analysis
WO2017166644A1 (en) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 Data acquisition method and system
CN109756364A (en) * 2018-12-07 2019-05-14 成都四方伟业软件股份有限公司 A kind of micro services performance optimization system and analysis method based on log analysis

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄媛媛等: "基于微服务架构的日志***", 《电子技术与软件工程》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112364189A (en) * 2020-11-16 2021-02-12 浪潮云信息技术股份公司 Electronic certificate application method based on ES service

Also Published As

Publication number Publication date
CN110413496B (en) 2022-08-19

Similar Documents

Publication Publication Date Title
CN111526060B (en) Method and system for processing service log
Mayer et al. An approach to extract the architecture of microservice-based software systems
US11775501B2 (en) Trace and span sampling and analysis for instrumented software
US20170109657A1 (en) Machine Learning-Based Model for Identifying Executions of a Business Process
US11409645B1 (en) Intermittent failure metrics in technological processes
CN108197261A (en) A kind of wisdom traffic operating system
US20170109676A1 (en) Generation of Candidate Sequences Using Links Between Nonconsecutively Performed Steps of a Business Process
CN108183927A (en) The monitoring method and system that a kind of distributed system link calls
US20170109668A1 (en) Model for Linking Between Nonconsecutively Performed Steps in a Business Process
CN110515912A (en) Log processing method, device, computer installation and computer readable storage medium
CN101371245A (en) Distributed capture and aggregation of dynamic application usage information
CN110336863B (en) Data reporting method and system
US20170109667A1 (en) Automaton-Based Identification of Executions of a Business Process
CN107229556A (en) Log Analysis System based on elastic components
US20170109636A1 (en) Crowd-Based Model for Identifying Executions of a Business Process
US20170109639A1 (en) General Model for Linking Between Nonconsecutively Performed Steps in Business Processes
CN111881011A (en) Log management method, platform, server and storage medium
CN108509326A (en) A kind of service state statistical method and system based on nginx daily records
US11681707B1 (en) Analytics query response transmission
CN109460307A (en) Micro services a little, which are buried, based on log calls tracking and its system
CN108369550A (en) Change is from not homologous data in real time
CN112256530A (en) Log service method capable of tracking link and system thereof
US20170109638A1 (en) Ensemble-Based Identification of Executions of a Business Process
CN111367760A (en) Log collection method and device, computer equipment and storage medium
KR100912177B1 (en) User behavior analysis method and system

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
GR01 Patent grant
GR01 Patent grant