CN109062762A - Formatted log method for pushing and device - Google Patents
Formatted log method for pushing and device Download PDFInfo
- Publication number
- CN109062762A CN109062762A CN201810838911.XA CN201810838911A CN109062762A CN 109062762 A CN109062762 A CN 109062762A CN 201810838911 A CN201810838911 A CN 201810838911A CN 109062762 A CN109062762 A CN 109062762A
- Authority
- CN
- China
- Prior art keywords
- log
- sent
- content information
- formatted
- pushing
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
- G06F11/3072—Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention provides a kind of formatted log method for pushing and device, the formatted log method for pushing includes: to obtain log content information;The log content information that will acquire generates log to be sent according to preset model;The log to be sent is pushed.By the logging time, log promoter, log topic and the log string value that extract log content information;The logging time, log promoter, log topic and log string value are subjected to arrangement according to preset rules and are spliced to form log to be sent.Journal format is clearly unified, and is conducive to carry out analysis and arrangement to log to user, easily counts some subject datas, such as the PV/UV amount of access of user.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of formatted log method for pushing and device.
Background technique
The useful information generated when running in log recording in computer system software and hardware, user can pass through log
It was found that give more sustained attention technology or it is operational mistake, pain spot.All the time, the format of log recording is specific there is no one
Specification, each class method and related service line can be accustomed to a kind of format of reaching an agreement on according to developer itself.After this makes log
The continuous conclusion that summarizes becomes complicated, often to add the process of one layer of format conversion.
Summary of the invention
In view of this, the embodiment of the present invention is designed to provide a kind of formatted log method for pushing and device, to change
It is lack of standardization to be apt to existing push log, it is difficult to unified problem.
The technical solution adopted by the invention is as follows:
The embodiment of the invention provides a kind of formatted log method for pushing, the formatted log method for pushing includes:
Obtain log content information;The log content information that will acquire generates log to be sent according to preset model;It will be described to be sent
Log is pushed.
Further, the step of log content information that will acquire generates log to be sent according to preset model packet
It includes: extracting logging time, log promoter, log topic and the log string value of log content information;When by the log
Between, log promoter, log topic and log string value carry out arrangement according to preset rules and be spliced to form log to be sent.
Further, the step of log content information that will acquire generates log to be sent according to preset model is also wrapped
It includes: extracting the log numerical value and minor parameter key-value pair of log content information;By the log numerical value and minor parameter key-value pair
With logging time, log promoter, log topic and log string value according to preset rules carry out arrangement be spliced to form it is pending
Send log.
Further, it generates label and the label is spliced into the log content information to acquisition to form day to be sent
Will.
Further, described the step of being pushed the log to be sent includes: to obtain push list object;By institute
Push list of the log to be sent into push list object is stated to be pushed.
The present invention provides a kind of formatted log driving means, the formatted log driving means, described device packet
It includes;Module is obtained, for obtaining log content information;Generation module, the log content information for will acquire is according to default mould
Type generates log to be sent;Pushing module, for pushing the log to be sent.
Further, the generation module includes: extraction unit, for extracting logging time, the day of log content information
Will promoter, log topic and log string value;
Assembled unit is used for the logging time, log promoter, log topic and log string value according to default
Rule carries out arrangement and is spliced to form log to be sent.
Further, the extraction unit is also used to extract the log numerical value and minor parameter key assignments of log content information
It is right;The assembled unit is also used to the log numerical value and minor parameter key-value pair and logging time, log promoter, log
Theme and log string value carry out arrangement according to preset rules and are spliced to form log to be sent.
Further, the generation module is for generating label and splicing the label to the log content information of acquisition
To form log to be sent.
Further, the pushing module includes: object acquisition unit, for obtaining push list object;Push unit,
For push list of the log to be sent into push list object to be pushed.
Compared with the prior art, the invention has the following advantages:
A kind of formatted log method for pushing and device provided by the invention, the formatted log method for pushing include:
Obtain log content information;The log content information that will acquire generates log to be sent according to preset model;It will be described to be sent
Log is pushed.By logging time, log promoter, log topic and the log character string of extracting log content information
Value;The logging time, log promoter, log topic and log string value are subjected to arrangement splicing shape according to preset rules
At log to be sent.Journal format is clearly unified, and is conducive to carry out analysis and arrangement to log to user, easily count
Subject data, such as the PV/UV amount of access of user.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to use required in embodiment in order to illustrate more clearly of the technical solution of embodiment of the present invention
Attached drawing be briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not to be seen as
It is the restriction to range, it for those of ordinary skill in the art, without creative efforts, can be with root
Other relevant attached drawings are obtained according to these attached drawings.
Fig. 1 shows the schematic diagram of a kind of electronic equipment provided by the present invention.
Fig. 2 shows the flow charts of formatted log method for pushing.
Fig. 3 shows the sub-step flow chart of step S20.
Fig. 4 shows the sub-step flow chart of step S30.
Fig. 5 shows the functional block diagram of formatted log driving means.
Fig. 6 shows the schematic diagram of generation module.
Fig. 7 shows the schematic diagram of pushing module.
Icon: 100- electronic equipment;101- memory;102- storage control;103- processor;104- Peripheral Interface;
105- display unit;106- input-output unit;200- formatted log driving means;210- obtains module;220- generates mould
Block;221- extraction unit;222- assembled unit;230- pushing module;231- object acquisition unit;232- push unit.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below
Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
In the description of the present invention, it is also necessary to explanation, herein, such as first and second or the like relationship art
Language is only used to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying this
There are any actual relationship or orders between a little entities or operation.The terms "include", "comprise" or its it is any its
He is intended to non-exclusive inclusion by variant, so that the process, method, article or equipment including a series of elements is not
Only include those elements, but also including other elements that are not explicitly listed, or further include for this process, method,
Article or the intrinsic element of equipment.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in the process, method, article or apparatus that includes the element.For
For those skilled in the art, the concrete meaning of above-mentioned term in the present invention can be understood with concrete condition.
With reference to the accompanying drawing, it elaborates to some embodiments of the present invention.In the absence of conflict, following
Feature in embodiment and embodiment can be combined with each other.
Fig. 1 shows the block diagram of the electronic equipment 100 of present pre-ferred embodiments offer.The electronic equipment 100
It can be desktop computer, laptop, tablet computer, smart phone, personal digital assistant
(personaldigitalassistant, PDA) etc..The electronic equipment 100 includes formatted log driving means 200, deposits
Reservoir 101, storage control 102, processor 103, Peripheral Interface 104, display unit 105, input-output unit 106.
The memory 101, storage control 102, processor 103, Peripheral Interface 104, display unit 105, input are defeated
Each element of unit 106 is directly or indirectly electrically connected between each other out, to realize the transmission or interaction of data.For example, these
Element can be realized by one or more communication bus or signal wire be electrically connected between each other.The formatted log push dress
Setting 200 includes that at least one can be stored in the memory 101 or be solidificated in the form of software or firmware (firmware)
Software function module in the operating system (operatingsystem, OS) of the electronic equipment 100.The processor 103 is used
The executable module stored in execution memory 101, such as the software function that the formatted log driving means 200 includes
Module or computer program.
Wherein, memory 101 may be, but not limited to, random access memory (RandomAccessMemory, RAM),
Read-only memory (ReadOnlyMemory, ROM), programmable read only memory (PrograMMableRead-OnlyMemory,
PROM), erasable read-only memory (ErasablePrograMMableRead-OnlyMemory, EPROM), electric erasable is only
Read memory (ElectricErasablePrograMMableRead-OnlyMemory, EEPROM) etc..Wherein, memory 101
For storing program, the processor 103 executes described program, any embodiment of the present invention is taken off after receiving and executing instruction
Method performed by the server defined as process shown can be applied in processor 103, or be realized by processor 103.
Processor 103 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 103 can
To be general processor, including central processing unit (CentralProcessingUnit, abbreviation CPU), network processing unit
(NetworkProcessor, abbreviation NP) etc.;It can also be digital signal processor (DSP), specific integrated circuit (ASIC), show
Field programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware
Component.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can
To be that microprocessor or the processor 103 are also possible to any conventional processor 103 etc..
Various input/output devices are couple processor 103 and memory 101 by the Peripheral Interface 104.Some
In embodiment, Peripheral Interface 104, processor 103 and storage control 102 can be realized in one single chip.Other one
In a little examples, they can be realized by independent chip respectively.
Display unit 105 provides an interactive interface (such as user's operation circle between the electronic equipment 100 and user
Face) or for display image data give user reference.In the present embodiment, the display unit 105 can be liquid crystal display
Or touch control display.It can be the capacitance type touch control screen or resistance of support single-point and multi-point touch operation if touch control display
Formula touch screen etc..Single-point and multi-point touch operation is supported to refer to that touch control display can sense on the touch control display one
Or at multiple positions simultaneously generate touch control operation, and the touch control operation that this is sensed transfer to processor 103 carry out calculate and
Processing.
Input-output unit 106 is used to be supplied to the interaction that user input data realizes user and the electronic equipment 100.
For example, can be used for user setting push list object, or setting push frequency, time etc..The input-output unit
106 may be, but not limited to, and mouse and keyboard etc., the keyboard can be dummy keyboard.
The useful information generated when running in log recording in computer system software and hardware, user can pass through log
It was found that give more sustained attention technology or it is operational mistake, pain spot.All the time, the format of log recording is specific there is no one
Specification, each class method and related service line can be accustomed to a kind of format of reaching an agreement on according to developer itself.After this makes log
The continuous conclusion that summarizes becomes complicated, often to add the process of one layer of format conversion.
First embodiment
Present embodiments provide a kind of formatted log method for pushing.None unification is pushed to improve existing log
Format is not easy to the problems such as managing.Referring to Fig. 2, Fig. 2 shows formatted log method for pushing provided in this embodiment.
Formatted log method for pushing includes step S10~step S30.
Step S10: log content information is obtained.
Log is the information of hardware, software and system problem in record system, while can be to occur in monitoring system
Event.User can check the reason of mistake occurs by it, or the trace that leaves of attacker when finding under attack.System
Log of uniting includes system log, application log and security log.
The useful information generated when running in log recording in computer system software and hardware, user can pass through log
It was found that or giving more sustained attention the mistake of technology or operational appearance, such as BUG etc..
Log is obtained first, and the mode for obtaining log can be the log read and generated by hardware, software or system
File acquisition log content information.It can also be and directly obtained when hardware, software or system generate log content information.
Step S20: the log content information that will acquire generates log to be sent according to preset model.
Format when ELK generates initial log, which is not done, arranges, and generally adds scattered content group by logging time
At.This to become abnormal difficult when log is associated between service line.Since journal format is loose, Kibana displaying is counted
The data depth come is very shallow, only shows the frequency of occurrence of certain keyword in a period of time in most cases.For existing log
Be associated between system business line it is difficult, the shallow problem of data depth can be analyzed, the present embodiment provides a kind of new general journal format,
To promote the value of log information.
In this present embodiment, the log content information that will acquire forms log to be sent according to preset model, will be all kinds of
Information includes to simplify log information form into log to be sent unified, be easy to extract information, while improving log information
Value.
In this present embodiment, step S20 includes following sub-step, referring to Fig. 3, step S20 include sub-step S201~
Step S204.
Step S201: logging time, log promoter, log topic and the log character string of log content information are extracted
Value.
One log is considered as the message pushed from system itself to developer by us, according to the typical lattice of message
Formula can be classified as following several parts: logging time monitorTime, log promoter appName (place application module
Module or method name methodName), log topic topic, log string value characterValue, log numerical value
(floating number) numbericalValue, minor parameter key-value pair extendsMap.Wherein, logging time monitorTime: note
The time point of log information generation is recorded, generally, the accuracy of logging time is accurate to the second.Format: yyyy-MM-ddHH:
MM:ss.AppName, module, methodName: three levels of a dimension designate the initiation source of log from which
Service line, module even method, function name.Three fields can be recorded separately or be combined into one in order when specific implementation
A character string.
Topic: log topic, can oneself definition log expressed by theme, such as statistics the interface response time can advise
A fixed timeConsume theme.This dimension is more focused on the business scenario of log itself, and after specification is good, downstream is united
Service line dimension can be cast aside when counting, is individually statisticallyd analyze from theme, to easily realize the number across service line
According to statistics.
CharacterValue: it is equivalent to message body.What is recorded is the value of the log character string, for mistake i.e.
Main error information.The field do not answer it is too long, will be as dimension on downstream report axis.
Step S202: the log numerical value and minor parameter key-value pair of log content information are extracted.
Log numerical value numbericalValue: log will also record a numerical value under some themes, such as count interface and ring
Log is by the time consumed by recording responses between seasonable.Relative to character string, directly it is with the benefit that big number is recorded by numerical value
Downstream can directly be applied to a series of aggregate function, as sum asks summation, avg to average, max (min) asks maximum (small)
Value etc..
Minor parameter key-value pair extendMap: storing additional information, is stored, is being analyzed in the form of key-value
When can thus extract more dimensions.
Step S203: by logging time, log promoter, log topic, log string value, log numerical value and secondary ginseng
Number key-value pair carries out arrangement according to preset rules and is spliced to form log to be sent.
Such as aim at a day generating for 30 seconds 41 minutes 9 points of December 13 in 2017, it is issued by the search module of myApp,
It is primary that content is that user userA clicks iconA icon, when by this log log numerical value and minor parameter key-value pair and log
Between, log promoter, log topic, log string value, log numerical value and minor parameter key-value pair carry out according to preset rules
Arrangement, such as may be expressed as: with Json format
{“monitorTime”:”2017-12-1309:41:30”,“appName”:”myApp”,“module”:”
search”,“topic”:”clickCount”,“characterValue”:”iconA”,“numbericalValue”:1,
extendMap:{“userName”:”userA”,“ip”:”0.0.0.0”}}
Step S204: it generates label and the label is spliced into the log content information to acquisition to form day to be sent
Will.
In order to be finely divided once again to log information, we can also increase a label tags field.The field is one
It is a by different labels through separator combination from character string.But it can also be put into extendMap.
Step S30: the log to be sent is pushed.
The log to be sent formed according to preset rules is pushed.For example, being pushed among the message of similar kafka
Part.In this present embodiment, referring to Fig. 4, step S30 includes following sub-step S301~step S302.
Step S301: push list object is obtained.
Obtain push list object.Push list object refers to pair for needing to send the log to be sent of generation
As.In this present embodiment, push list object can be preset, and push object can also be voluntarily selected by generation module 220.
Step S302: push list of the log to be sent into push list object is pushed.
After obtaining push list object, the log to be sent is sent to the object in the push list object.
Log to be sent includes logging time, log promoter, log topic, log string value, log numerical value and minor parameter
Key assignments etc. splices and combines the information to be formed according to preset rules.
Second embodiment
A kind of formatted log driving means 200 is present embodiments provided, the formatted log driving means 200 is used for
Realize the formatted log method for pushing in first embodiment.Referring to Fig. 5, Fig. 5 shows formatting provided in this embodiment
The functional block diagram of log driving means 200.
It should be noted that formatted log driving means 200 provided in this embodiment, pushes away for executing formatted log
Delivery method, basic principle and the formatted log method for pushing in first embodiment are essentially identical, to briefly describe, this implementation
This is no longer described in detail in example, and the present embodiment does not introduce detailed place, please refers to the related content in first embodiment.
Formatted log driving means 200 includes obtaining module 210, generation module 220 and pushing module 230.
Wherein, module 210 is obtained, for obtaining log content information.Obtain log mode can be reading by hardware,
The journal file that software or system have generated obtains log content information.It can also be and generate day in hardware, software or system
It is directly obtained when will content information.
It is to be appreciated that obtaining module 210 can be used for executing step S10.
Generation module 220, the log content information for will acquire generate log to be sent according to preset model.
The log content information that will acquire forms log to be sent according to preset model, includes to pending by various information
It send in log, simplifies log information form unified, be easy to extract information, while improving the value of log information.
It is to be appreciated that generation module 220 can be used for executing step S20.
Referring to Fig. 6, in this present embodiment, generation module 220 includes extraction unit 221 and assembled unit 222.
Wherein extraction unit 221 is used to extract logging time, log promoter, log topic and the day of log content information
Will string value;The extraction unit 221 is also used to extract the log numerical value and minor parameter key-value pair of log content information.
It is to be appreciated that extraction unit 221 can be used for executing step S201~step S202.
Assembled unit 222, when the assembled unit 222 is used for the log numerical value and minor parameter key-value pair and log
Between, log promoter, log topic and log string value carry out arrangement according to preset rules and be spliced to form log to be sent.
It is to be appreciated that assembled unit 222 can be used for executing step S203.
The generation module 220 is for generating label and the label being spliced the log content information to acquisition to be formed
Log to be sent.
In this present embodiment, the generation module 220 is also used to execute step S204: generating label and spells the label
The log content information of acquisition is connected to form log to be sent.
Referring to Fig. 7, the pushing module 230, for the log to be sent to be pushed.
In this present embodiment, pushing module 230 includes object acquisition unit 231 and push unit 232, wherein object obtains
Unit 231 is taken, for obtaining push list object;Push unit 232, for will the log to be sent to push list object
In push list pushed.
It is to be appreciated that pushing module 230 can be used for executing step S30.
In conclusion the present invention provides a kind of formatted log method for pushing and device, the formatted log push
Method includes: to obtain log content information;The log content information that will acquire generates log to be sent according to preset model;By institute
Log to be sent is stated to be pushed.By logging time, log promoter, log topic and the log of extracting log content information
String value;The logging time, log promoter, log topic and log string value are arranged according to preset rules
It is spliced to form log to be sent.Journal format is clearly unified, and is conducive to carry out analysis and arrangement, light geo-statistic to log to user
Some subject datas out, such as the PV/UV amount of access of user.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing
Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement
It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, RandomAccessMemory), magnetic or disk.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. a kind of formatted log method for pushing, which is characterized in that the formatted log method for pushing includes:
Obtain log content information;
The log content information that will acquire generates log to be sent according to preset model;
The log to be sent is pushed.
2. formatted log method for pushing as described in claim 1, which is characterized in that the log content information that will acquire
Include: according to the step of preset model generation log to be sent
Extract logging time, log promoter, log topic and the log string value of log content information;
The logging time, log promoter, log topic and log string value are subjected to arrangement splicing according to preset rules
Form log to be sent.
3. formatted log method for pushing as claimed in claim 2, which is characterized in that the log content information that will acquire
The step of generating log to be sent according to preset model further include:
Extract the log numerical value and minor parameter key-value pair of log content information;
By the log numerical value and minor parameter key-value pair and logging time, log promoter, log topic and log character string
Value carries out arrangement according to preset rules and is spliced to form log to be sent.
4. formatted log method for pushing as described in claim 1, which is characterized in that the method also includes:
It generates label and the label is spliced into the log content information to acquisition to form log to be sent.
5. formatted log method for pushing as described in claim 1, which is characterized in that described to carry out the log to be sent
The step of push includes:
Obtain push list object;
Push list of the log to be sent into push list object is pushed.
6. a kind of formatted log driving means, which is characterized in that the formatted log driving means, described device include;
Module is obtained, for obtaining log content information;
Generation module, the log content information for will acquire generate log to be sent according to preset model;
Pushing module, for pushing the log to be sent.
7. formatted log driving means as claimed in claim 6, which is characterized in that the generation module includes:
Extraction unit, for extracting logging time, log promoter, log topic and the log character string of log content information
Value;
Assembled unit is used for the logging time, log promoter, log topic and log string value according to preset rules
It carries out arrangement and is spliced to form log to be sent.
8. formatted log driving means as claimed in claim 7, which is characterized in that the extraction unit is also used to extract day
The log numerical value and minor parameter key-value pair of will content information;
The assembled unit is also used to the log numerical value and minor parameter key-value pair and logging time, log promoter, day
Will theme and log string value carry out arrangement according to preset rules and are spliced to form log to be sent.
9. formatted log driving means as claimed in claim 6, which is characterized in that the generation module is for generating label
And the label is spliced into the log content information to acquisition to form log to be sent.
10. formatted log driving means as claimed in claim 6, which is characterized in that the pushing module includes:
Object acquisition unit, for obtaining push list object;
Push unit, for pushing push list of the log to be sent into push list object.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810838911.XA CN109062762A (en) | 2018-07-26 | 2018-07-26 | Formatted log method for pushing and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810838911.XA CN109062762A (en) | 2018-07-26 | 2018-07-26 | Formatted log method for pushing and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109062762A true CN109062762A (en) | 2018-12-21 |
Family
ID=64835602
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810838911.XA Pending CN109062762A (en) | 2018-07-26 | 2018-07-26 | Formatted log method for pushing and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109062762A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110865986A (en) * | 2019-11-12 | 2020-03-06 | 深圳易为控股有限公司 | Data summarization synchronization scheme for enterprise retail system |
CN111177530A (en) * | 2019-11-25 | 2020-05-19 | 云知声智能科技股份有限公司 | Method and device for pushing hot content based on big data |
CN111176987A (en) * | 2019-12-18 | 2020-05-19 | 深圳前海环融联易信息科技服务有限公司 | Method and device for uniformly outputting front-end log, computer equipment and storage medium |
CN111241449A (en) * | 2020-01-14 | 2020-06-05 | 上海风秩科技有限公司 | Log data sending method and device |
CN112784150A (en) * | 2019-11-08 | 2021-05-11 | 西安诺瓦星云科技股份有限公司 | Method, device and system for sending play log |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102981943A (en) * | 2012-10-29 | 2013-03-20 | 新浪技术(中国)有限公司 | Method and system for monitoring application logs |
CN103593277A (en) * | 2012-08-15 | 2014-02-19 | 深圳市世纪光速信息技术有限公司 | Log processing method and system |
CN106326082A (en) * | 2015-06-16 | 2017-01-11 | 中兴通讯股份有限公司 | Method and device for recording log in network system |
CN106940677A (en) * | 2017-02-13 | 2017-07-11 | 咪咕音乐有限公司 | One kind application daily record data alarm method and device |
CN106992876A (en) * | 2017-03-04 | 2017-07-28 | 郑州云海信息技术有限公司 | Cloud platform blog management method and system |
CN107682166A (en) * | 2016-08-01 | 2018-02-09 | 南京联成科技发展股份有限公司 | The implementation method of safe O&M service platform remote data acquisition based on big data |
US20180159884A1 (en) * | 2016-12-02 | 2018-06-07 | Secude Ag | Dtat stream surveillance, intelligence and reporting |
-
2018
- 2018-07-26 CN CN201810838911.XA patent/CN109062762A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103593277A (en) * | 2012-08-15 | 2014-02-19 | 深圳市世纪光速信息技术有限公司 | Log processing method and system |
CN102981943A (en) * | 2012-10-29 | 2013-03-20 | 新浪技术(中国)有限公司 | Method and system for monitoring application logs |
CN106326082A (en) * | 2015-06-16 | 2017-01-11 | 中兴通讯股份有限公司 | Method and device for recording log in network system |
CN107682166A (en) * | 2016-08-01 | 2018-02-09 | 南京联成科技发展股份有限公司 | The implementation method of safe O&M service platform remote data acquisition based on big data |
US20180159884A1 (en) * | 2016-12-02 | 2018-06-07 | Secude Ag | Dtat stream surveillance, intelligence and reporting |
CN106940677A (en) * | 2017-02-13 | 2017-07-11 | 咪咕音乐有限公司 | One kind application daily record data alarm method and device |
CN106992876A (en) * | 2017-03-04 | 2017-07-28 | 郑州云海信息技术有限公司 | Cloud platform blog management method and system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112784150A (en) * | 2019-11-08 | 2021-05-11 | 西安诺瓦星云科技股份有限公司 | Method, device and system for sending play log |
CN110865986A (en) * | 2019-11-12 | 2020-03-06 | 深圳易为控股有限公司 | Data summarization synchronization scheme for enterprise retail system |
CN110865986B (en) * | 2019-11-12 | 2023-05-12 | 深圳易为控股有限公司 | Enterprise retail system data summarization synchronization scheme |
CN111177530A (en) * | 2019-11-25 | 2020-05-19 | 云知声智能科技股份有限公司 | Method and device for pushing hot content based on big data |
CN111177530B (en) * | 2019-11-25 | 2023-06-13 | 云知声智能科技股份有限公司 | Method and device for pushing hot content based on big data |
CN111176987A (en) * | 2019-12-18 | 2020-05-19 | 深圳前海环融联易信息科技服务有限公司 | Method and device for uniformly outputting front-end log, computer equipment and storage medium |
CN111241449A (en) * | 2020-01-14 | 2020-06-05 | 上海风秩科技有限公司 | Log data sending method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11886464B1 (en) | Triage model in service monitoring system | |
US10942960B2 (en) | Automatic triage model execution in machine data driven monitoring automation apparatus with visualization | |
CN109062762A (en) | Formatted log method for pushing and device | |
EP3038002B1 (en) | Interactive user interfaces | |
US9619531B2 (en) | Device, method and user interface for determining a correlation between a received sequence of numbers and data that corresponds to metrics | |
Liu et al. | Understanding diverse usage patterns from large-scale appstore-service profiles | |
US11681710B2 (en) | Entity extraction rules harvesting and performance | |
Schintler et al. | Encyclopedia of big data | |
US20080168096A1 (en) | Extracting business logic from the user interface of service and product oriented computerized systems | |
Southerton | Datafication | |
US10282467B2 (en) | Mining product aspects from opinion text | |
US10394868B2 (en) | Generating important values from a variety of server log files | |
US20200401662A1 (en) | Text classification with semantic graph for detecting health care policy changes | |
CN104636130A (en) | Method and system for generating event trees | |
EP3842958A1 (en) | Platform for conversation-based insight search in analytics systems | |
US20140067444A1 (en) | Business process transformation recommendation generation | |
Alghushairy et al. | Data storage | |
Huang | Data processing | |
US20190138965A1 (en) | Method and system for providing end-to-end integrations using integrator extensible markup language | |
US20160232541A1 (en) | Using source data to predict and detect software deployment and shelfware | |
US20140122163A1 (en) | External operational risk analysis | |
US9135324B1 (en) | System and method for analysis of process data and discovery of situational and complex applications | |
US11587095B2 (en) | Semantic sweeping of metadata enriched service data | |
Hogan | Data center | |
US9577894B1 (en) | System and method for codification and representation of situational and complex application behavioral patterns |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181221 |