CN107704357A - Daily record generation method and device - Google Patents

Daily record generation method and device Download PDF

Info

Publication number
CN107704357A
CN107704357A CN201710750744.9A CN201710750744A CN107704357A CN 107704357 A CN107704357 A CN 107704357A CN 201710750744 A CN201710750744 A CN 201710750744A CN 107704357 A CN107704357 A CN 107704357A
Authority
CN
China
Prior art keywords
node
identifier
daily record
restructuring
log
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
CN201710750744.9A
Other languages
Chinese (zh)
Other versions
CN107704357B (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.)
Beijing Xiaodu Information Technology Co Ltd
Original Assignee
Beijing Xiaodu Information Technology 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 Beijing Xiaodu Information Technology Co Ltd filed Critical Beijing Xiaodu Information Technology Co Ltd
Priority to CN201710750744.9A priority Critical patent/CN107704357B/en
Publication of CN107704357A publication Critical patent/CN107704357A/en
Application granted granted Critical
Publication of CN107704357B publication Critical patent/CN107704357B/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/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/875Monitoring of systems including the internet

Abstract

The embodiment of the present application discloses daily record generation method and device.One embodiment of this method includes:The node log that acquisition node is generated when handling destination request, wherein, destination request passes through the processing of at least one node, and different nodes support different functions, and node log includes:The identifier of the identifier of node, destination request identifier, the request of processing same target and the adjacent node adjacent with node;The identifier of identifier based on node, destination request identifier and adjacent node, the node log of at least one node passed through to destination request recombinate, generation restructuring daily record.The embodiment realizes the restructuring of node log, so as to the convenient orientation problem in daily record is recombinated.

Description

Daily record generation method and device
Technical field
The application is related to field of computer technology, and in particular to Internet technical field, more particularly to daily record generation method And device.
Background technology
In Internet technical field, there is many service requests, for example, taking out the request that places an order, network chauffeur request Deng a series of flows for being handled service request or operation can form business chain.When there is abnormal conditions generation, it is difficult to Navigate to is which of business chain link there is a problem.Therefore, it is one that how in business chain the problem of, which carries out positioning, Need to solve the problems, such as.
The content of the invention
The purpose of the embodiment of the present application is to propose a kind of improved daily record generation method and device, to solve background above The technical problem that technology segment is mentioned.
The embodiment of the present application provides A1, a kind of daily record generation method, and the above method includes:Acquisition node please in processing target The node log generated when asking, wherein, destination request passes through the processing of at least one node, and different nodes support different work( Can, node log includes:The identifier of node, destination request identifier, the request of processing same target and the phase adjacent with node The identifier of neighbors;The identifier of identifier based on node, destination request identifier and adjacent node, to destination request institute The node log of at least one node passed through is recombinated, generation restructuring daily record.
A2, such as A1 above-mentioned method, it is preceding preceding posterior follow-up after node and time point that adjacent node includes time point Node;And generation restructuring daily record, including:It is determined that at least one node of processing same target request;For determine to Each node in a few node, according to the descendant node before the node after node, the node and the node, generate son weight Group daily record;The son restructuring daily record generated is merged, generation restructuring daily record.
A3, such as A1 or the above-mentioned methods of A2, the above method also include:In response to receiving including destination request identifier First inquiry request, export restructuring daily record corresponding with receiving destination request identifier.
A4, such as A1 above-mentioned method, node log include target terminal daily record;And the above method also includes:Receive mesh The target terminal daily record that terminal uploads is marked, wherein, target terminal daily record also includes at least one of following:Terminal identifier, target The version number and terminal operating system version number of application are preset on the identifier of the user of terminal, target terminal.
A5, such as A4 above-mentioned method, the above method also include:Please in response to receiving the second inquiry including Query Information Ask, export target terminal daily record corresponding with Query Information, wherein, Query Information includes at least one of following:Terminal identifier, The version number and terminal operating system version number of application are preset on the identifier of the user of target terminal, target terminal.
A6, such as A1 above-mentioned method, node log also include:The processing state of node, processing state include status of fail; And after generation recombinates daily record, the above method also includes:It is determined that it is at least one node log of composition restructuring daily record The no processing state that node be present is the node log of status of fail;If so, then with default presentation mode mark in daily record is recombinated The processing state for knowing node is the node log of status of fail.
The embodiment of the present application provides B1, a kind of daily record generating means, and said apparatus includes:Collecting unit, it is configured to adopt The node log that collection node is generated when handling destination request, wherein, destination request passes through the processing of at least one node, no Different functions is supported with node, node log includes:The identifier of node, destination request identifier, processing same target please Ask and the identifier of the adjacent node adjacent with node;Recomposition unit, it is configured to the identifier based on node, destination request mark Know the identifier of symbol and adjacent node, the node log of at least one node passed through to destination request recombinates, and generates Recombinate daily record.
B2, such as B1 above-mentioned device, it is preceding preceding posterior follow-up after node and time point that adjacent node includes time point Node;And recomposition unit, including:Determining module, it is configured to determine at least one node of processing same target request;It is raw Into module, be configured to for each node at least one node for determining, according to before the node after node, the section The descendant node of point and the node, generate son restructuring daily record;Merging module, it is configured to carry out the son restructuring daily record generated Merge, generation restructuring daily record.
B3, such as B1 or the above-mentioned devices of B2, said apparatus also include:First output unit, it is configured in response to receiving To the first inquiry request including destination request identifier, restructuring daily record corresponding with receiving destination request identifier is exported.
B4, such as B1 above-mentioned device, node log include target terminal daily record;And said apparatus also includes:Receive single Member, it is configured to receive the target terminal daily record that target terminal uploads, wherein, target terminal daily record also includes following at least one :Terminal identifier, the identifier of user of target terminal, version number and the terminal operating system that application is preset on target terminal Version number.
B5, such as B4 above-mentioned device, said apparatus also include:Second output unit, it is configured in response to receiving bag Include the second inquiry request of Query Information, export target terminal daily record corresponding with Query Information, wherein, Query Information including with It is at least one of lower:Terminal identifier, the identifier of user of target terminal, version number and the terminal that application is preset on target terminal Operating system version number.
B6, such as B1 above-mentioned device, node log also include:The processing state of node, processing state include status of fail; And said apparatus also includes:Determining unit, be configured to determine composition restructuring daily record at least one node log in whether The processing state that node be present is the node log of status of fail;Unit is identified, is configured in response to determining composition restructuring Node log corresponding to the node of status of fail be present at least one node log of daily record, then with default in daily record is recombinated The processing state of presentation mode mark node is the node log of status of fail.
The embodiment of the present application provides C1, a kind of electronic equipment, and the electronic equipment includes:One or more processors;Storage Device, for storing one or more programs, when said one or multiple programs are by said one or multiple computing devices, So that said one or multiple processors realize the method as described in any implementation in A1 to A6.
The embodiment of the present application provides D1, a kind of computer-readable recording medium, is stored thereon with computer program, its feature It is, the method as described in any implementation in A1 to A6 is realized when the computer program is executed by processor.
The daily record generation method and device that the embodiment of the present application provides, are given birth to by acquisition node when handling destination request Into node log, afterwards, the identifier of the node included based on node log, destination request identifier and the identical mesh of processing Mark request and the identifier of the adjacent node adjacent with node, the node log of at least one node passed through to destination request Recombinated, generation restructuring daily record, effectively make use of the information in node log, realize the restructuring of node log, so as to The convenient orientation problem in daily record is recombinated.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the daily record generation method of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the daily record generation method of the application;
Fig. 4 is the structural representation according to one embodiment of the daily record generating means of the application;
Fig. 5 is adapted for the structural representation of the computer system of the server for realizing the embodiment of the present application.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Be easy to describe, illustrate only in accompanying drawing to about the related part of invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Describe the application in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the exemplary system that can apply the daily record generation method of the application and the embodiment of daily record generating means System framework 100.
As shown in figure 1, system architecture 100 can include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 provide communication link medium.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
Terminal device 101,102,103 is interacted by network 104 with server 105, to receive or send message etc..Terminal Various telecommunication customer end applications can be installed in equipment 101,102,103, such as take out class application, the application of shopping class, interconnection The application of net dial-a-cab class, JICQ, pay class application etc..For example, in order transaction is taken out, terminal device 101, 102nd, 103 can be user terminal, and the request that places an order of user can be sent to server 105 by user using user terminal;Eventually End equipment 101,102,103 can also be merchant tenninal, and merchant tenninal can be placed an order with the user that the reception server 105 is sent please Ask;Terminal device 101,102,103 can also be dispatching terminal, and dispatching personnel can be by dispensing terminal the reception server 105 The order to be dispensed of distribution;Terminal device 101,102,103 can also be inquiry terminal, and user can also be looked into using terminal is inquired about Ask the restructuring daily record that processing destination request is generated.
Terminal device 101,102,103 can be the various electronic equipments for having display screen and supporting information exchange, bag Include but be not limited to smart mobile phone, intelligent watch, tablet personal computer, E-book reader, pocket computer on knee and desk-top calculating Machine etc..
Server 105 can be to provide the server of various services, such as to being shown on terminal device 101,102,103 Recombinate daily record and the background server supported is provided.Background server can carry out analyzing etc. to data such as the node logs of collection Reason, and result (such as recombinating daily record) is fed back into terminal device.For example, background server acquisition node can exist first The node log generated during destination request is handled, afterwards, the identifier based on node log interior joint, destination request mark The identifier of symbol, the request of processing same target and the adjacent node adjacent with node, what destination request was passed through is at least one The node log of node is recombinated, generation restructuring daily record, and can be worked as user and be identified on the terminal device using destination request When symbol is inquired about, sent to terminal device and recombinate daily record corresponding to inquired about destination request identifier.
It should be noted that the daily record generation method that the embodiment of the present application is provided typically is performed by server 105, accordingly Ground, daily record generating means are generally positioned in server 105.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematical.According to realizing need Will, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the flow 200 of one embodiment of daily record generation method according to the application is shown.The day Will generation method, comprises the following steps:
Step 201, the node log that acquisition node is generated when handling destination request.
In the present embodiment, the electronic equipment (such as server shown in Fig. 1) of daily record generation method operation thereon can The node log generated with acquisition node when handling destination request.Node can be one that evaluation work is completed in system Logic entity, such as can be the process or thread for performing some work, process, which is one, has the program of standalone feature on certain The once operation activity of individual data acquisition system (such as the data acquisition system included in destination request), it is operating system Dynamic Execution Elementary cell, thread are relatively independent, schedulable a execution units in process;Node can also be physical entity, such as eventually End equipment, server etc., terminal device can be handled destination request using function, process or the thread of operation thereon To realize a certain function.Different nodes can support different functions, and what it is such as trade company's order node support is trade company's order Function, the operation activity performed by trade company's order node can be that merchant tenninal receives the request that places an order that user is submitted, afterwards, " order " or " refusal " icon is presented in merchant tenninal, and after trade company clicks on " order " icon, system is ordered by what user submitted Single distribution dispatching person, then, the request that places an order dispense node by dispatching person and handled.Destination request can be receive it is various Request, for example, taking out the request that places an order, network chauffeur request, examination registration request etc..Destination request can pass through at least one The processing of node, a series of flows or operation that node is handled destination request can form business chain, such as, take-away is ordered Single transaction flow, transaction flow etc. of calling a taxi.As an example, after user's transmission take-away places an order request, the request that places an order is taken out It can pass through that user pays node, trade company's order node, dispatching personnel dispense node, user confirms the place of node etc. of receiving Reason, so as to form a take-away order transaction business chain.
In the present embodiment, each node at least one node for handling destination request, the node are being handled The node log generated during destination request can include:At the identifier of the node, the identifier of destination request and the node The identifier of same target request and the adjacent node adjacent with the node is managed, wherein, the identifier of destination request can also claim For tracking identifier, Trace Identifier (Trace ID) or business unique identifier, the request for each type, above-mentioned electronics Equipment can be ranked up according to the sequencing that request is handled to each node for handling the request of the type, by This, according to the identifier of a certain node, can obtain the identifier of the node adjacent with this node.Node log can also wrap Include:The parameter of destination request, as take out place an order request parameter can include trade company address, station address, it is expected delivery time, Trade name, commodity amount, remark information etc., and process data, as trade company's time of received orders, dispatching person reach trade company Time etc..
In the present embodiment, above-mentioned electronic equipment can bury a little according to a pre-defined specification of burying first, when connecing It can be generated when receiving request comprising the daily record for burying the content of required generation in a specification, bury a specification and usually require that node day Destination request identifier, the identifier of present node, the identifier of the node adjacent with present node are generated in will, buries a specification It may also require that generating process data in node log, upstream and downstream required parameter etc..
In the present embodiment, after node log is collected, above-mentioned electronic equipment can store to node log. Specifically, above-mentioned electronic equipment can monitor whether that daily record writes journal disk in real time by result collection system first, when When having daily record write-in journal disk, daily record can be passed to distributed post in form of a message and subscribed to by result collection system to disappear Breath system, afterwards, computing engines can subscribe to the message in message system with real-time consumption distributed post.It is as an example, above-mentioned Result collection system can be Flume, and Flume is the High Availabitity that Cloudera is provided, highly reliable, distributed sea Log collection, polymerization and the system of transmission are measured, Flume supports to customize Various types of data sender in log system, for collecting Data, meanwhile, Flume provides carries out simple process to data, and writes the ability of various data receivings (customizable);It is above-mentioned It can be Kafka that distributed post, which subscribes to message system, and Kafka is that a kind of distributed post of high-throughput subscribes to message system System, it can handle the everything flow data in the website of consumer's scale;Above-mentioned computing engines can be Spark, Spark It is the computing engines for the Universal-purpose quick for aiming at large-scale data processing and designing.Above-mentioned electronic equipment can use in real time or accurate The mode (such as every one minute) parses daily record in real time, daily record can be entered using offline script using when quasi real time mode is handled Row processing, for the higher business scenario of requirement of real-time, can generally be handled using real-time mode, and for problem The less business scenario of required node can generally be handled by the way of quasi real time during less, processing.
Step 202, the identifier of the identifier based on node, destination request identifier and adjacent node, to the target The node log at least one node for asking to be passed through is recombinated, generation restructuring daily record.
In the present embodiment, after collecting node log in step 201, above-mentioned electronic equipment can be asked based on target The identifier of identifier, the identifier of node and adjacent node is sought, the node of at least one node passed through to destination request Daily record is recombinated, generation restructuring daily record.Specifically, above-mentioned electronic equipment can use depth-first traversal algorithm, generation weight Group daily record.Depth-first traversal (Depth-First Traversa) is referred to as depth-first search (Depth-First- Search), the corresponding topological sorting table of target figure can be produced using Depth Priority Algorithm.Assuming that given figure G initial state It is that all summits did not accessed.An optional vertex v is initial starting point (source point) in G, then depth-first traversal can determine Justice is as follows:Starting point v is accessed first, and is marked as having accessed;Then successively from v search v each abutment points w.If w was not accessed, continue depth-first traversal by new starting point of w, until all in figure and source point v has road Untill the summit (being also known as from the reachable summit of source point) that footpath communicates is accessed.If now still there is not accessed top in figure Point, then select a summit not yet accessed else and repeat said process as new source point, until all summits have been interviewed in figure Untill asking.
In the present embodiment, the process that above-mentioned electronic equipment recombinates node log, can include advising according to sequence Then to node log carry out order arrangement, duplicate removal can also be carried out to the node log repeated be present after arrangement, can be with Title of the key message as node log of each node log is extracted, to title carry out order arrangement, when click node day Node log corresponding to clicked on title is presented during the title of will, above-mentioned electronic equipment will can carry out above-mentioned to node log Result obtained by processing is as restructuring daily record.The process of duplicate removal is specific as follows:If in the presence of at least two node logs The identifier of included node is identical, then retains a node log in above-mentioned at least two node log and delete except guarantor Node log outside the node log stayed.
In the present embodiment, above-mentioned node log can also include:The processing time point of node processing destination request, it is above-mentioned Processing time point can be time point when processing starts or the time point at the end of processing, can also be that daily record is given birth to Into the time.
As an example, above-mentioned electronic equipment can first using the node B at least one node for handling destination request as Initial starting point, accessed node B, and be marked as having accessed;Afterwards, from node B search nodes B abutment points, It is node A and node C to search abutment points because node A and node C have not visited, then respectively using node A and node C as New starting point continues depth-first traversal, and the abutment points using node A as starting point search node A are node B, but node B has been accessed, and the abutment points using node C as starting point search node C are node B and node D, and node B has been accessed, section Point D is not accessed, and by node D labeled as having accessed, now, all nodes communicated with NodeB path have been accessed Cross, and in the absence of not accessed node, the access order to each node is node B, node A, node C and node D;Most Afterwards, above-mentioned electronic equipment can according to above-mentioned processing time point by the order after arriving first to node A, node B, node C and node D It is ranked up.
In some optional implementations of the present embodiment, the adjacent node of node can include time point it is preceding before After node, time point posterior descendant node can also be included, above-mentioned time point can be that node is handled destination request Time point.Above-mentioned electronic equipment can obtain corresponding to the node log comprising same target request identifier at least first One node, so that it is determined that going out to handle at least one node of same target request;Afterwards, at least one section for determining Each node in point, above-mentioned electronic equipment can according to before the node after the identifier of node, the identifier of the node and The identifier of the descendant node of the node, generate son restructuring daily record.Specifically, before above-mentioned electronic equipment can be according to the node The order of the identifier of the identifier of identifier, the node after node and the descendant node of the node, to before the node after Node log corresponding to node, node log corresponding to the descendant node of node log and the node corresponding to the node are arranged Sequence, daily record can be recombinated using ranking results as son, be referred to as part restructuring daily record.When in the node log in the node In the absence of the preceding identifier after node, then first node of the node for processing destination request can be determined;When in the node Node log in be not present descendant node identifier, then can determine the node for processing destination request last section Point.Finally, above-mentioned electronic equipment can merge to each height restructuring daily record generated, generate above-mentioned at least one node The restructuring daily record of handled destination request.
In some optional implementations of the present embodiment, inquired about when receiving first including destination request identifier During request, above-mentioned electronic equipment can export restructuring daily record corresponding with the destination request identifier received.Above-mentioned first looks into It can be that user utilizes the inquiry request inquired about transmitted by terminal to ask request, when above-mentioned electronic equipment searches and destination request mark After knowing restructuring daily record corresponding to symbol, the restructuring daily record searched can be returned to above-mentioned inquiry terminal for above-mentioned inquiry terminal Restructuring daily record is shown.
In some optional implementations of the present embodiment, above-mentioned node log can include target terminal daily record, mesh Mark terminal can be merchant tenninal, and trade company can be received the sequence information of user using trade company, carry out corresponding position to sequence information Reason etc.;Target terminal can also be dispatching terminal, and dispatching personnel (knight) can utilize and dispense treating for terminal reception system distribution Dispense order, order uploaded processing state etc.;Target terminal can also be user terminal, and user can utilize user terminal clear Look at Item Information, submit order, execution of order pay etc. operation.When above-mentioned target terminal is merchant tenninal, above-mentioned target is whole The daily record that first day of the lunar year will can be generated by trade company's order node when handling order request.Due to network environment, terminal system version This and influence of the other application process to application etc., take out application and be supplied to order function used in trade company it is possible that one A little abnormal conditions, for example, receiving user's order but not reminding the situation of trade company, analyze these abnormal conditions and usually require to business Family daily record is analyzed, but the daily record of terminal applies is not easy to obtain, at this time, it may be necessary to which user uploads or in wireless network manually (Wi-Fi) merchant tenninal uploads automatically when.Above-mentioned electronic equipment can receive the target terminal daily record of target terminal upload, above-mentioned It can also include in target terminal daily record at least one of following:Terminal identifier, the identifier of user of target terminal, target are whole The version number and terminal operating system version number of application are preset on end.Terminal identifier can be International Mobile Equipment Identity code (International Mobile Equipment Identity, IMEI), is referred to as international mobile equipment identification code, Each mobile phone will all be endowed a globally unique sets of numbers after finishing assembly;The user of target terminal can Think the trade company using target terminal, the identifier of the user of target terminal can be the account that trade company registers in default application Name.
In some optional implementations of the present embodiment, when receiving the second inquiry request including Query Information When, above-mentioned electronic equipment can export target terminal daily record corresponding with above-mentioned Query Information, can also export above-mentioned inquiry letter Restructuring daily record corresponding to breath where target terminal daily record, above-mentioned Query Information can include at least one of following:Terminal iidentification Accord with, the version number and terminal operating system version number applied is preset on the identifier of the user of target terminal, target terminal.It is above-mentioned Second inquiry request can be that user utilizes the inquiry request inquired about transmitted by terminal, when above-mentioned electronic equipment searches and inquires about After target terminal daily record corresponding to information, the target terminal daily record searched can be returned to above-mentioned inquiry terminal for above-mentioned Inquiry terminal-pair target terminal daily record is shown.As an example, when user select querying condition for:Terminal identifier, and it is defeated When entering " 123456789012345 " and being inquired about, above-mentioned electronic equipment can using outlet terminal identifier as The target terminal daily record that the terminal of " 123456789012345 " is generated;When user select querying condition for:The use of target terminal The identifier at family, and when inputting " 18610260000 " and being inquired about, above-mentioned electronic equipment can export the user's of target terminal The target terminal daily record that identifier is generated for the terminal of trade company's progress order processing of " 18610260000 ";When user selects Querying condition is:The version number and terminal operating system version number of application are preset on target terminal, and is inputted pre- on target terminal If application version number " 3.2.1 " and terminal operating system version number " when iOS 10.3.2 " are inquired about, above-mentioned electronic equipment Operating system version number can be exported as " iOS 10.3.2 " and the application version number for the default application installed is " 3.2.1 " The target terminal daily record that terminal is generated.
In some optional implementations of the present embodiment, the processing state of node can also be included in node log, Above-mentioned processing state can include status of fail and success status.After at least one restructuring daily record is generated, for each heavy Group daily record, above-mentioned electronic equipment can determine to form at least one node log of the restructuring daily record first;Afterwards, it may be determined that Generated in above-mentioned at least one node log with the presence or absence of processing state by the node of status of fail when handling destination request Node log, if so, then can in above-mentioned restructuring daily record using default presentation mode identify node processing state for mistake Lose the node log of state.Above-mentioned electronic equipment can identify the processing of node with default color (for example, red, yellow etc.) State is the node log of status of fail, processing state that can also be to node for status of fail node log progress overstriking, The processing mode such as underline, tilt to be identified.
With continued reference to Fig. 3, Fig. 3 is a schematic diagram according to the application scenarios of the daily record generation method of the present embodiment. In Fig. 3 application scenarios, the acquisition process user first of server 301 places an order each node log 302 for being generated of request, its In, user place an order request have passed through user pay node (node A), trade company's order node (node B), dispatching person dispense node (node C) and user confirm the processing of node (node D) of receiving.The node B daily records 3021 of trade company's order node (node B) are wrapped Include:The identifier " B " of node, the identifier " 1101 " of destination request, the node identifier " A " and " C " of adjacent node;User is true Acknowledging receipt of the node D daily records 3022 of goods node (node D) includes:The identifier " D " of node, the identifier " 1101 " of destination request, The node identifier " C " of adjacent node;The node A daily records 3023 that user pays node (node A) include:The identifier of node The identifier " 1101 " of " A ", destination request, the node identifier " B " of adjacent node;Dispatching person dispenses the section of node (node C) Point C daily records 3024 include:The identifier " C " of node, identifier " 1101 ", the node identifier of adjacent node of destination request " B " and " D ".Afterwards, identifier 303 of the server 301 based on the node in each node log, the identifier of destination request 304th, the node identifier 305 of adjacent node, to node B daily records 3021, node D daily records 3022, node A daily records 3023 and node C daily records 3024 are recombinated, and generation is tactic by node A daily records, node B daily records, node C daily records and node D daily records Recombinate daily record 306.
The method that above-described embodiment of the application provides is by acquisition node daily record, and based in the node log collected The identifier of the identifier of node, destination request identifier and adjacent node, at least one node to handling destination request Node log is recombinated, and generates restructuring daily record, realizes the restructuring of node log, is positioned so as to convenient in daily record is recombinated Problem.
With further reference to Fig. 4, as the realization to method shown in above-mentioned each figure, this application provides a kind of daily record generation to fill The one embodiment put, the device embodiment is corresponding with the embodiment of the method shown in Fig. 2, and the device specifically can apply to respectively In kind electronic equipment.
As shown in figure 4, the daily record generating means 400 of the present embodiment include:Collecting unit 401 and recomposition unit 402.Its In, collecting unit 401 is configured to the node log that acquisition node is generated when handling destination request, wherein, destination request By the processing of at least one node, different nodes support different functions, and node log includes:The identifier of node, target The identifier of request identifier, the request of processing same target and the adjacent node adjacent with node;Recomposition unit 402 is configured to The identifier of identifier based on node, destination request identifier and adjacent node, what destination request was passed through is at least one The node log of node is recombinated, generation restructuring daily record.
In the present embodiment, the specific processing of the collecting unit 401 of daily record generating means 400 and recomposition unit 402 can be with With reference to the step 201 and step 202 in the corresponding embodiment of figure 2.
In some optional implementations of the present embodiment, the adjacent node of node can include time point it is preceding before After node, time point posterior descendant node can also be included, above-mentioned time point can be that node is handled destination request Time point.Above-mentioned recomposition unit 402 can include determining that module (not shown), generation module (not shown) and conjunction And module (not shown).Above-mentioned determining module can obtain the node log institute comprising same target request identifier first Corresponding at least one node, so that it is determined that going out to handle at least one node of same target request;Afterwards, for determining Each node at least one node, above-mentioned generation module can be according to the identifier before the node after node, the nodes Identifier and the node descendant node identifier, generate son restructuring daily record.Specifically, above-mentioned generation module can be according to The order of the identifier of the preceding descendant node after the identifier of node, the identifier of the node and the node of the node, to this Node it is preceding after node corresponding to the descendant node of node log and the node corresponding to node log corresponding to node, the node Daily record is ranked up, and can recombinate daily record using ranking results as son, is referred to as part restructuring daily record.When in the node The preceding identifier after node is not present in node log, then can determine first node of the node for processing destination request; When the identifier that descendant node is not present in the node log in the node, then the node can be determined for processing destination request Last node.Finally, above-mentioned merging module can merge to each height restructuring daily record generated, and generation is above-mentioned extremely The restructuring daily record of destination request handled by a few node.
In some optional implementations of the present embodiment, it is defeated that above-mentioned daily record generating means 400 can also include first Go out unit 403.When receiving the first inquiry request including destination request identifier, above-mentioned first output unit 403 can be with Export restructuring daily record corresponding with the destination request identifier received.Above-mentioned first inquiry request can be that user utilizes inquiry Inquiry request transmitted by terminal, corresponding with destination request identifier day is recombinated when above-mentioned first output unit 403 searches After will, the restructuring daily record searched can be returned to above-mentioned inquiry terminal so that the restructuring daily record of above-mentioned inquiry terminal-pair is opened up Show.
In some optional implementations of the present embodiment, above-mentioned node log can include target terminal daily record, mesh Mark terminal can be merchant tenninal, and trade company can be received the sequence information of user using trade company, carry out corresponding position to sequence information Reason etc.;Target terminal can also be dispatching terminal, and dispatching personnel (knight) can utilize and dispense treating for terminal reception system distribution Dispense order, order uploaded processing state etc.;Target terminal can also be user terminal, and user can utilize user terminal clear Look at Item Information, submit order, perform the operation such as pay invoice.When above-mentioned target terminal is merchant tenninal, above-mentioned target is whole The daily record that first day of the lunar year will can be generated by trade company's order node when handling order request.Due to network environment, terminal system version This and influence of the other application process to application etc., take out application and be supplied to order function used in trade company it is possible that one A little abnormal conditions, for example, receiving user's order but not reminding the situation of trade company, analyze these abnormal conditions and usually require to business Family daily record is analyzed, but the daily record of terminal applies is not easy to obtain, at this time, it may be necessary to which user uploads or in wireless network manually When merchant tenninal upload automatically.Above-mentioned daily record generating means 400 can also include receiving unit 404, and above-mentioned receiving unit 404 can It can also include to receive the target terminal daily record of target terminal upload, in above-mentioned target terminal daily record at least one of following:Eventually Hold identifier, the identifier of user of target terminal, version number and the terminal operating system version that application is preset on target terminal Number.Terminal identifier can be International Mobile Equipment Identity code, be referred to as international mobile equipment identification code, each movement Telephone set will all be endowed a globally unique sets of numbers after finishing assembly;The user of target terminal can be to use mesh The trade company of terminal is marked, the identifier of the user of target terminal can be the account name that trade company registers in default application.
In some optional implementations of the present embodiment, it is defeated that above-mentioned daily record generating means 400 can also include second Go out unit 405, when receiving the second inquiry request including Query Information, above-mentioned second output unit 405 can export with Target terminal daily record corresponding to above-mentioned Query Information, where can also exporting target terminal daily record corresponding to above-mentioned Query Information Daily record is recombinated, above-mentioned Query Information can include at least one of following:Terminal identifier, target terminal user identifier, The version number and terminal operating system version number of application are preset on target terminal.Above-mentioned second inquiry request can be that user utilizes The inquiry request transmitted by terminal is inquired about, when above-mentioned second output unit 405 searches target terminal corresponding with Query Information After daily record, the target terminal daily record searched can be returned to above-mentioned inquiry terminal for above-mentioned inquiry terminal-pair target terminal Daily record is shown.
In some optional implementations of the present embodiment, the processing state of node can also be included in node log, Above-mentioned processing state can include status of fail and success status.Above-mentioned daily record generating means 400 can also include determining unit 406 and mark unit 407, generate it is at least one restructuring daily record after, for each restructuring daily record, above-mentioned determining unit 406 At least one node log of the restructuring daily record can be determined to form first;Afterwards, above-mentioned determining unit 406 can determine above-mentioned The section generated at least one node log with the presence or absence of processing state by the node of status of fail when handling destination request Point daily record, if so, then above-mentioned mark unit 407 can identify the place of node in above-mentioned restructuring daily record with default presentation mode Reason state is the node log of status of fail.Above-mentioned mark unit 407 can be with the processing state of default colour code node For the node log of status of fail, processing state that can also be to node for the node log of status of fail carry out overstriking plus under The processing modes such as line, inclination are identified.
Below with reference to Fig. 5, it illustrates suitable for for realizing the computer system 500 of the server of the embodiment of the present invention Structural representation.Server shown in Fig. 5 is only an example, should not be to the function and use range band of the embodiment of the present application Carry out any restrictions.
As shown in figure 5, computer system 500 includes CPU (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into program in random access storage device (RAM) 503 from storage part 508 and Perform various appropriate actions and processing.In RAM 503, also it is stored with system 500 and operates required various programs and data. CPU 501, ROM 502 and RAM 503 are connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to always Line 504.
I/O interfaces 505 are connected to lower component:Importation 506 including keyboard, mouse etc.;Including such as liquid crystal Show the output par, c 507 of device (LCD) and loudspeaker etc.;Storage part 508 including hard disk etc.;And including such as LAN card, The communications portion 509 of the NIC of modem etc..Communications portion 509 performs communication via the network of such as internet Processing.Driver 510 is also according to needing to be connected to I/O interfaces 505.Detachable media 511, such as disk, CD, magneto-optic disk, Semiconductor memory etc., it is arranged on as needed on driver 510, in order to which the computer program that reads from it is according to need It is mounted into storage part 508.
Especially, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product, it includes being carried on computer-readable medium On computer program, the computer program include be used for execution flow chart shown in method program code.In such reality To apply in example, the computer program can be downloaded and installed by communications portion 509 from network, and/or from detachable media 511 are mounted.When the computer program is performed by CPU (CPU) 501, perform what is limited in the present processes Above-mentioned function.It should be noted that the above-mentioned computer-readable medium of the application can be computer-readable signal media or Computer-readable recording medium either the two any combination.Computer-readable recording medium for example can be --- but Be not limited to --- electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor, or it is any more than combination. The more specifically example of computer-readable recording medium can include but is not limited to:Electrical connection with one or more wires, Portable computer diskette, hard disk, random access storage device (RAM), read-only storage (ROM), erasable type may be programmed read-only deposit Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory Part or above-mentioned any appropriate combination.In this application, computer-readable recording medium can any be included or store The tangible medium of program, the program can be commanded the either device use or in connection of execution system, device.And In the application, computer-readable signal media can include believing in a base band or as the data that a carrier wave part is propagated Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer Any computer-readable medium beyond readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use In by instruction execution system, device either device use or program in connection.Included on computer-readable medium Program code any appropriate medium can be used to transmit, include but is not limited to:Wirelessly, electric wire, optical cable, RF etc., Huo Zheshang Any appropriate combination stated.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of various embodiments of the invention, method and computer journey Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation The part of one module of table, program segment or code, the part of the module, program segment or code include one or more use In the executable instruction of logic function as defined in realization.It should also be noted that marked at some as in the realization replaced in square frame The function of note can also be with different from the order marked in accompanying drawing generation.For example, two square frames succeedingly represented are actually It can perform substantially in parallel, they can also be performed in the opposite order sometimes, and this is depending on involved function.Also to note Meaning, the combination of each square frame and block diagram in block diagram and/or flow chart and/or the square frame in flow chart can be with holding Function as defined in row or the special hardware based system of operation are realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described unit can also be set within a processor, for example, can be described as:A kind of processor bag Include collecting unit and recomposition unit.Wherein, the title of these units does not form the limit to the unit in itself under certain conditions It is fixed.For example, collecting unit is also described as the " list for the node log that acquisition node is generated when handling destination request Member ".
As on the other hand, present invention also provides a kind of computer-readable medium, the computer-readable medium can be Included in device described in above-described embodiment;Can also be individualism, and without be incorporated the device in.Above-mentioned calculating Machine computer-readable recording medium carries one or more program, when said one or multiple programs are performed by the device so that should Device:The node log that acquisition node is generated when handling destination request, wherein, destination request is by least one node Processing, different nodes support different functions, and node log includes:The identifier of node, destination request identifier, processing are identical The identifier of destination request and the adjacent node adjacent with node;Identifier based on node, destination request identifier and adjacent The identifier of node, the node log of at least one node passed through to destination request recombinate, generation restructuring daily record.
Above description is only presently preferred embodiments of the present invention and the explanation to institute's application technology principle.People in the art Member should be appreciated that invention scope involved in the present invention, however it is not limited to the technology that the particular combination of above-mentioned technical characteristic forms Scheme, while should also cover in the case where not departing from foregoing invention design, carried out by above-mentioned technical characteristic or its equivalent feature The other technical schemes for being combined and being formed.Such as features described above has similar work(with the (but not limited to) disclosed in the present invention The technical scheme that the technical characteristic of energy is replaced mutually and formed.

Claims (10)

1. a kind of daily record generation method, it is characterised in that methods described includes:
The node log that acquisition node is generated when handling destination request, wherein, destination request is by least one node Processing, different nodes support different functions, and node log includes:The identifier of node, destination request identifier, processing are identical The identifier of destination request and the adjacent node adjacent with node;
The identifier of identifier based on node, destination request identifier and adjacent node, the destination request is passed through The node log of at least one node is recombinated, generation restructuring daily record.
2. according to the method for claim 1, it is characterised in that adjacent node include time point it is preceding before after node and when Between put posterior descendant node;And
The generation restructuring daily record, including:
It is determined that at least one node of processing same target request;
For each node at least one node for determining, according to before the node after node, the node and the node Descendant node, generate son restructuring daily record;
The son restructuring daily record generated is merged, generation restructuring daily record.
3. method according to claim 1 or 2, it is characterised in that methods described also includes:
In response to receiving the first inquiry request including destination request identifier, destination request identifier pair is exported and received The restructuring daily record answered.
4. according to the method for claim 1, it is characterised in that the node log includes target terminal daily record;And
Methods described also includes:
The target terminal daily record that target terminal uploads is received, wherein, the target terminal daily record also includes at least one of following:Eventually Hold identifier, the identifier of user of target terminal, version number and the terminal operating system version that application is preset on target terminal Number.
5. according to the method for claim 4, it is characterised in that methods described also includes:
In response to receiving the second inquiry request including Query Information, target terminal day corresponding with the Query Information is exported Will, wherein, the Query Information includes at least one of following:Terminal identifier, the identifier of user of target terminal, target are whole The version number and terminal operating system version number of application are preset on end.
6. according to the method for claim 1, it is characterised in that node log also includes:The processing state of node, the place Reason state includes status of fail;And
After the generation restructuring daily record, methods described also includes:
It is determined that the processing state that whether there is node at least one node log of composition restructuring daily record is the section of status of fail Point daily record;
If so, node day of the processing state as status of fail for then identifying node to preset presentation mode in the restructuring daily record Will.
7. a kind of daily record generating means, it is characterised in that described device includes:
Collecting unit, the node log that acquisition node is generated when handling destination request is configured to, wherein, destination request warp The processing of at least one node is crossed, different nodes support different functions, and node log includes:The identifier of node, target please Seek the identifier of identifier, the request of processing same target and the adjacent node adjacent with node;
Recomposition unit, the identifier of the identifier based on node, destination request identifier and adjacent node is configured to, to described The node log at least one node that destination request is passed through is recombinated, generation restructuring daily record.
8. device according to claim 7, it is characterised in that adjacent node include time point it is preceding before after node and when Between put posterior descendant node;And
The recomposition unit, including:
Determining module, it is configured to determine at least one node of processing same target request;
Generation module, be configured to for each node at least one node for determining, according to before the node after section The descendant node of point, the node and the node, generate son restructuring daily record;
Merging module, it is configured to merge the son restructuring daily record generated, generation restructuring daily record.
9. a kind of electronic equipment, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processors are real The now method as described in any in claim 1-6.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The method as described in any in claim 1-6 is realized during execution.
CN201710750744.9A 2017-08-28 2017-08-28 Log generation method and device Active CN107704357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710750744.9A CN107704357B (en) 2017-08-28 2017-08-28 Log generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710750744.9A CN107704357B (en) 2017-08-28 2017-08-28 Log generation method and device

Publications (2)

Publication Number Publication Date
CN107704357A true CN107704357A (en) 2018-02-16
CN107704357B CN107704357B (en) 2020-12-15

Family

ID=61171230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710750744.9A Active CN107704357B (en) 2017-08-28 2017-08-28 Log generation method and device

Country Status (1)

Country Link
CN (1) CN107704357B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108572914A (en) * 2018-03-14 2018-09-25 口碑(上海)信息技术有限公司 A kind of method and device generating the daily record for pressure test
CN109117345A (en) * 2018-09-05 2019-01-01 深圳市木瓜移动科技有限公司 Log monitoring method and distributed data system
CN111402471A (en) * 2020-03-05 2020-07-10 慧科(台州)智能系统有限公司 Personnel processing mode determining method and device and data processing platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635301A (en) * 2016-01-14 2016-06-01 郑州悉知信息科技股份有限公司 Access log merging method and log processing server and system
CN105761005A (en) * 2016-02-23 2016-07-13 浪潮通用软件有限公司 Business document progress tracking method
US20160378653A1 (en) * 2015-06-25 2016-12-29 Vmware, Inc. Log-structured b-tree for handling random writes
CN106250424B (en) * 2016-07-22 2019-12-03 杭州朗和科技有限公司 A kind of searching method, the apparatus and system of log context

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160378653A1 (en) * 2015-06-25 2016-12-29 Vmware, Inc. Log-structured b-tree for handling random writes
CN105635301A (en) * 2016-01-14 2016-06-01 郑州悉知信息科技股份有限公司 Access log merging method and log processing server and system
CN105761005A (en) * 2016-02-23 2016-07-13 浪潮通用软件有限公司 Business document progress tracking method
CN106250424B (en) * 2016-07-22 2019-12-03 杭州朗和科技有限公司 A kind of searching method, the apparatus and system of log context

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108572914A (en) * 2018-03-14 2018-09-25 口碑(上海)信息技术有限公司 A kind of method and device generating the daily record for pressure test
CN108572914B (en) * 2018-03-14 2020-12-18 口碑(上海)信息技术有限公司 Method and device for generating log for pressure test
CN109117345A (en) * 2018-09-05 2019-01-01 深圳市木瓜移动科技有限公司 Log monitoring method and distributed data system
CN111402471A (en) * 2020-03-05 2020-07-10 慧科(台州)智能系统有限公司 Personnel processing mode determining method and device and data processing platform

Also Published As

Publication number Publication date
CN107704357B (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN104378341B (en) Template acquisition methods, template provider method, Apparatus and system
CN109460513A (en) Method and apparatus for generating clicking rate prediction model
US20140105508A1 (en) Systems and Methods for Intelligent Purchase Crawling and Retail Exploration
CN107464169A (en) Information output method and device
CN109816132A (en) Information generating method and device
CN108985809A (en) Motivate method, apparatus, electronic equipment and the storage medium of push
CN106897905B (en) Method and device for pushing information and electronic equipment
CN107704357A (en) Daily record generation method and device
CN110371560A (en) Automatically the method and apparatus made an inventory
CN108038217B (en) Information recommendation method and device
CN109388548A (en) Method and apparatus for generating information
CN107346344A (en) The method and apparatus of text matches
CN107845011A (en) Method and apparatus for handling order
CN113658597A (en) Voice ordering method and device, electronic equipment and computer readable medium
CN107463675B (en) Data processing method and system
CN110163705A (en) Method and apparatus for pushed information
CN107451785A (en) Method and apparatus for output information
CN110473036A (en) A kind of method and apparatus generating order number
CN110309142A (en) The method and apparatus of regulation management
CN107609890A (en) A kind of method and apparatus of order tracking
CN110019258A (en) The method and apparatus for handling order data
CN107291835A (en) A kind of recommendation method and apparatus of search term
CN110471848A (en) A kind of method and apparatus of dynamic returned packet
CN109146533A (en) Information-pushing method and device
CN109685589A (en) Method and apparatus for pushed information

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 202, 2 / F, 1-3 / F, No. 11, Shangdi Information Road, Haidian District, Beijing 100084

Applicant after: Beijing Xingxuan Technology Co.,Ltd.

Address before: 100085 Beijing, Haidian District on the road to the information on the ground floor of the 1 to the 3 floor of the 2 floor, room 11, 202

Applicant before: Beijing Xiaodu Information Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant