WO2022110675A1 - 基于人工智能的日志生成方法、装置、计算机设备和介质 - Google Patents

基于人工智能的日志生成方法、装置、计算机设备和介质 Download PDF

Info

Publication number
WO2022110675A1
WO2022110675A1 PCT/CN2021/093210 CN2021093210W WO2022110675A1 WO 2022110675 A1 WO2022110675 A1 WO 2022110675A1 CN 2021093210 W CN2021093210 W CN 2021093210W WO 2022110675 A1 WO2022110675 A1 WO 2022110675A1
Authority
WO
WIPO (PCT)
Prior art keywords
downstream system
request
tracking identifier
process flow
log
Prior art date
Application number
PCT/CN2021/093210
Other languages
English (en)
French (fr)
Inventor
赵旗旗
于海生
Original Assignee
平安普惠企业管理有限公司
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 平安普惠企业管理有限公司 filed Critical 平安普惠企业管理有限公司
Publication of WO2022110675A1 publication Critical patent/WO2022110675A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems

Definitions

  • the present application relates to the technical field of artificial intelligence, and in particular, to a method, apparatus, computer equipment and medium for generating logs based on artificial intelligence.
  • an artificial intelligence-based log generation method According to various embodiments disclosed in the present application, an artificial intelligence-based log generation method, apparatus, computer device and medium are provided.
  • a tracking identifier generation module is used to generate a tracking identifier corresponding to the process operation request through a tracker, the tracking identifier is used to generate a process flow request, and in turn indicate the corresponding downstream system during the flow process of the process operation request generating process flow requests;
  • the above-mentioned artificial intelligence-based log generation method, device, computer equipment and medium after receiving the process operation request, generates a corresponding tracking identifier, so that in the process of subsequent process flow, the process flow request is generated through the tracking identifier, Therefore, when the subsequent downstream system processes the process operation request, it can generate log files according to the tracking ID, which ensures the tracking across systems, correlates the logs in a single system, and can accurately obtain the complete behavior of the user. .
  • FIG. 1 is an application scenario diagram of an artificial intelligence-based log generation method according to one or more embodiments.
  • FIG. 2 is a schematic flowchart of a method for generating logs based on artificial intelligence according to one or more embodiments.
  • FIG. 3 is a schematic flowchart of a method for generating logs based on artificial intelligence according to another or more embodiments.
  • FIG. 4 is a sequence diagram of an artificial intelligence-based log generation method according to one or more embodiments.
  • FIG. 5 is a structural block diagram of an artificial intelligence-based log generating apparatus according to one or more embodiments.
  • the artificial intelligence-based log generation method provided in this application can be applied to the application environment shown in FIG. 1 .
  • the terminal 102 communicates with the server 104 through the network, the terminal 102 sends a process flow request to the server 104, and the server 104 generates a tracking identifier corresponding to the process operation request through the tracker.
  • a method for generating logs based on artificial intelligence is provided, and the method is applied to the server in FIG. 1 as an example for illustration.
  • the server may be a distributed system server, including The following steps:
  • the process operation request is an operation request sent by the terminal to the server, and is used to instruct the server to start the corresponding process.
  • business and then the flow chain corresponding to the process operation request can be determined according to the business identifier.
  • financial lending software includes multiple processes, which are divided into multiple process nodes, which are registration, login, ID card scanning, real-name authentication, face recognition, Contact entry, bank card information entry, credit information entry, real estate vehicle information entry, manual approval, loan limit generation, draw application, draw contract signing, lending, and repayment.
  • S204 Generate a tracking identifier corresponding to the process operation request through the tracker, where the tracking identifier is used to generate the process flow request, and instruct the corresponding downstream systems to generate the process flow request in sequence during the flow of the process operation request.
  • the tracer can be a TraceId generator.
  • the TraceId generator is set in the server. When the process operation request reaches the server, the TraceId generator generates a preset random number as the TraceId, that is, the trace identifier, for example, generates a 16-bit random number. random numbers, etc.
  • the tracking identifier is sequentially sent to the corresponding downstream system to identify the operation corresponding to the process operation request.
  • the tracking identifier should be added to the process flow request.
  • the process flow request may be an HTTP request. It is placed in the header of the HTTP request, so that when the downstream system receives the process flow request, the trace identifier can be directly extracted from the HTTP header.
  • the account management system is the bridge between the app and other systems.
  • the user's operation requests of all process nodes on the app will first reach the account management system, and the account management system will then call downstream systems such as the incoming process control system. Acts as the source system for process node operation requests.
  • S206 Send the process flow requests to the corresponding downstream systems in sequence, so that the downstream systems generate a log file according to the tracking identifier.
  • the downstream system After the process flow request is sent to the downstream system, the downstream system generates a log file according to the tracking ID, for example, using the tracking ID as the name of the log file, and stores the operations corresponding to the process flow request in the log file, so that all The log files of the downstream systems are all generated by the tracking ID, that is, all the log files of the downstream systems are added to the log file corresponding to the corresponding log file name, so that the user's complete log file can be found according to the tracking ID.
  • the behavior of the user is correlated with the logs in a single system, and the complete behavior of the user can be accurately obtained.
  • the generation of the log file according to the tracking identifier according to the downstream system may be to use the tracking identifier as the name of the log file, for example, the name of the log file may be "tracking identifier + system identifier of the downstream system", which ensures the tracking, and also A distinction is made between individual downstream systems.
  • the above-mentioned artificial intelligence-based log generation method generates a corresponding tracking identifier after receiving a process operation request, so that in the process of subsequent process flow, the process flow request is generated through the tracking identifier, so that in the subsequent downstream system, the process flow request is generated.
  • a log file can be generated according to the tracking identifier, which ensures cross-system tracking, correlates the logs in a single system, and can accurately obtain the complete behavior of the user.
  • the circulation chain includes: app->account management system->input process control system->risk control approval system->accounting report system.
  • the app sends a process operation request to the account management system.
  • the TraceId generator in the account management system generates a preset random number as a trace identifier, starts an independent thread, and puts it into the thread variable of the independent thread, so that when the log is generated, Store it in the log, generate a process flow request according to the tracking ID, send the process flow request to the incoming control system, and the incoming control system reads the tracking ID from the process flow request, starts an independent thread, and puts it in the In the thread variable, the log is stored in the log when the log is generated, and the process flow request is generated according to the tracking ID, and the process flow request is sent to the risk control approval system, and the risk control approval system reads the tracking ID from the process flow request, and Start an independent thread and put it into the thread variable of the independent thread, so that the log is stored when
  • the process flow request when the process flow request is generated, may be an HTTP request, so that the tracking identifier is placed in the header of the HTTP request, so that when the downstream system receives the process flow request, it can be directly sent from the HTTP request.
  • the trace identifier is extracted from the header of the .
  • the entire circulation process is given, so that the log files of all downstream systems are generated by the tracking identifier, so that the complete behavior of the user can be found according to the tracking identifier, and the logs in a single system are processed. With the association, the complete behavior of the user can be accurately obtained.
  • sending the process flow request to the current downstream system, so that the current downstream system generates a log file according to the tracking identifier includes: sending the process flow request to the current downstream system, so that the corresponding current downstream system starts independently and generate a thread variable according to the trace identifier, so as to print the operation in the corresponding thread to the corresponding log file according to the thread variable.
  • each process node of the user from the account management system to the downstream system is regarded as a process, and each system will start an independent thread to complete the process in sequence, that is, a request is a process, and this process Contains a separate thread for each system that performs all processing of the request in each system.
  • a thread-independent variable is a variable bound to this independent thread. When the thread ends, the variable disappears, and the variable exists as long as the thread exists. Recording the TraceId in a thread-independent variable can uniquely identify the thread, and all operations performed by the system in the thread will be tracked by TraceId.
  • the log flow request is processed by starting an independent thread, which ensures stability.
  • the log manager names the log file with the TraceId, and all logs including the TraceId are archived into the file. In this way, all operations of a request in each system can be traced through the file name.
  • FIG. 3 is a flowchart of a method for generating logs based on artificial intelligence in another embodiment
  • FIG. 4 is a sequence diagram of a method for generating logs based on artificial intelligence in one embodiment picture.
  • the server manages logs in a unified manner, that is, prints a system log in a unified manner.
  • the log file is named with the TraceId, and all logs including the TraceId are archived in the log file.
  • the APP in the terminal sends a process node operation request to the account management system, and the TraceId generator in the account management system generates a preset random number as a trace identifier, starts an independent thread, and puts it into the thread variable of the independent thread, so as to generate a random number.
  • the log is stored, and the process flow request is generated according to the tracking ID, and the process flow request is sent to the incoming control system.
  • the thread variable of the independent thread the log is stored in the log when the log is generated, and the process flow request is generated according to the tracking ID, and the process flow request is sent to the risk control approval system, and the risk control approval system reads the trace from the process flow request.
  • the terminal uses the mobile phone number as the user's unique identifier during registration.
  • the APP request arrives, it generates a TraceId, puts it into a thread independent variable and prints it to the log, and establishes a database table to record the user ID and process nodes. and TraceId, and put TraceId in HTTP request header Header.
  • the incoming control system, risk control approval system, and accounting report system are responsible for extracting the TraceId in the HTTP request header first, and setting it to a thread-independent variable, and then putting the TraceId into the HTTP request header when transmitting down. Header.
  • the above-mentioned artificial intelligence-based log generation method generates a corresponding tracking identifier after receiving a process operation request, so that in the process of subsequent process flow, the process flow request is generated through the tracking identifier, so that in the subsequent downstream system, the process flow request is generated.
  • a log file can be generated according to the tracking identifier, which ensures cross-system tracking, correlates the logs in a single system, and can accurately obtain the complete behavior of the user.
  • an artificial intelligence-based log generation device which is applied to a distributed system and includes: a receiving module 100, a tracking identification generating module 200 and a circulation module 300, wherein:
  • the flow transfer module 300 is configured to send the flow transfer requests to the corresponding downstream systems in sequence, so that the downstream systems generate log files according to the tracking identifiers.
  • the downstream system includes a plurality of downstream systems, and the plurality of downstream systems are connected to each other through a flow chain; the device further includes:
  • the circulation chain acquisition module is used to obtain a preset circulation chain, and the circulation chain includes a plurality of downstream systems arranged in a preset order;
  • the flow module 300 includes:
  • the current downstream system acquisition unit is used to acquire the current downstream system from the circulation chain;
  • a log file generation unit used to send the process flow request to the current downstream system, so that the current downstream system generates a log file according to the tracking identifier
  • the above-mentioned artificial intelligence-based log generation device includes:
  • the folder generation module is used to generate log folders according to the tracking ID
  • the storage module is used to store log files in the log folder.
  • the above-mentioned artificial intelligence-based log generation device includes:
  • the information acquisition module is used to acquire the user ID and the circulation chain corresponding to the process operation request;
  • Each module in the above-mentioned artificial intelligence-based log generating apparatus may be implemented in whole or in part by software, hardware, and combinations thereof.
  • the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided, and the computer device may be a server, and its internal structure diagram may be as shown in FIG. 6 .
  • the computer device includes a processor, memory, a network interface, and a database connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the non-volatile storage medium stores an operating system, computer readable instructions and a database.
  • the internal memory provides an environment for the execution of the operating system and computer-readable instructions in the non-volatile storage medium.
  • the computer device's database is used to store log files.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer-readable instructions when executed by a processor, implement an artificial intelligence-based log generation method.
  • FIG. 6 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
  • a computer device comprising a memory and one or more processors, wherein computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the one or more processors perform the following steps: Receive a process operation request ; Generate a tracking identifier corresponding to the process operation request through the tracker, the tracking identifier is used to generate a process flow request, and instruct the corresponding downstream system to generate a process flow request in turn during the flow of the process operation request; and send the process flow request in turn to the corresponding downstream system, so that the downstream system generates a log file according to the trace identifier.
  • the computer-readable storage medium may be non-volatile or volatile.
  • the process of sending the process flow request to the current downstream system when the processor executes the computer-readable instructions, so that the current downstream system generates a log file according to the tracking identifier includes: sending the process flow request to the current downstream system system, so that the corresponding current downstream system starts an independent thread, and generates a thread variable according to the tracking identifier, so as to print the operation in the corresponding thread to the corresponding log file according to the thread variable.
  • the process further includes: generating a log folder according to the trace identifier; and the processor executes the computer-readable Sending the process flow requests to the corresponding downstream systems in turn in the instruction, so that after the downstream systems generate the log files according to the tracking identifiers, further includes: storing the log files in the log folder.
  • One or more computer-readable storage media storing computer-readable instructions, when the computer-readable instructions are executed by one or more processors, cause the one or more processors to perform the following steps: receive a process operation request; The controller generates a tracking identifier corresponding to the process operation request, the tracking identifier is used to generate the process flow request, and instructs the corresponding downstream systems to generate the process flow request in turn during the flow of the process operation request; and sends the process flow request to the corresponding Downstream systems, so that the downstream systems generate log files according to the trace identifiers.
  • the downstream systems involved when the computer-readable instructions are executed by the processor include multiple, and the multiple downstream systems are connected to each other through a flow chain; what is implemented when the computer-readable instructions are executed by the processor is also implemented The following steps: obtain a preset flow chain, the flow chain includes a plurality of downstream systems arranged in a preset order; when the computer-readable instruction is executed by the processor, the process flow request is sent to the corresponding downstream system in turn, so that The downstream system generates a log file according to the tracking identification, including: obtaining the current downstream system from the circulation chain; sending a process circulation request to the current downstream system, so that the current downstream system generates a log file according to the tracking identification; and judging whether the circulation is completed according to the circulation chain , if so, store the log files generated by each downstream system, if not, continue to obtain the current downstream system from the circulation chain.
  • the method further includes: generating a log folder according to the trace identifier;
  • the process flow request is sent to the corresponding downstream system in turn, so that after the downstream system generates the log file according to the tracking identifier, the process further includes: storing the log file in the log folder.
  • the method further includes: acquiring the user identifier and the flow chain corresponding to the process operation request; and Establish the corresponding relationship between user ID, tracking ID and circulation chain.
  • the present application may be used in numerous general purpose or special purpose computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, including A distributed computing environment for any of the above systems or devices, and the like.
  • the application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer.
  • program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types.
  • the application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network.
  • program modules may be located in both local and remote computer storage media including storage devices.
  • the blockchain referred to in this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • Blockchain essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.

Abstract

本申请涉及一种基于人工智能的日志生成方法、装置、计算机设备和介质。涉及人工智能领域,应用于分布式系统,包括:接收流程操作请求;通过跟踪器生成与所述流程操作请求对应的跟踪标识,所述跟踪标识用于生成流程流转请求,并在所述流程操作请求的流转过程中依次指示对应的下游系统生成流程流转请求;将所述流程流转请求依次发送至对应的下游系统,以使得所述下游系统根据所述跟踪标识生成日志文件。

Description

基于人工智能的日志生成方法、装置、计算机设备和介质
相关申请的交叉引用
本申请要求于2020年11月25日提交中国专利局,申请号为2020113414104,申请名称为“基于人工智能的日志生成方法、装置、计算机设备和介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及人工智能技术领域,特别是涉及一种基于人工智能的日志生成方法、装置、计算机设备和介质。
背景技术
日志系统是软件产品不可或缺的系统,通过日志可以快速调试系统、准确定位系统缺陷以及数据分析。传统的,各种软件的后台往往包括多个系统,系统间通过相互协作完成对应的软件功能的全部流程。
然而,发明人意识到现有的日志跟踪技术只能实现单一系统内的日志跟踪,无法实现跨系统跟踪。用户的一条申请信息往往被杂乱地记录到各个系统的日志中,无法关联起来,导致很难追踪用户完整的行为。
发明内容
根据本申请公开的各种实施例,提供一种基于人工智能的日志生成方法、装置、计算机设备和介质。
一种基于人工智能的日志生成方法,应用于分布式系统,所述方法包括:
接收流程操作请求;
通过跟踪器生成与所述流程操作请求对应的跟踪标识,所述跟踪标识用于生成流程流转请求,并在所述流程操作请求的流转过程中依次指示对应的下游系统生成流程流转请求;及
将所述流程流转请求依次发送至对应的下游系统,以使得所述下游系统根据所述跟踪标识生成日志文件。
一种基于人工智能的日志生成装置,应用于分布式系统,所述装置包括:
接收模块,用于接收流程操作请求;
跟踪标识生成模块,用于通过跟踪器生成与所述流程操作请求对应的跟踪标识,所述跟踪标识用于生成流程流转请求,并在所述流程操作请求的流转过程中依次指示对应的下游系统生成流程流转请求;及
流转模块,用于将所述流程流转请求依次发送至对应的下游系统,以使得所述下游系统根据所述跟踪标识生成日志文件。
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:
接收流程操作请求;
通过跟踪器生成与所述流程操作请求对应的跟踪标识,所述跟踪标识用于生成流程流转请求,并在所述流程操作请求的流转过程中依次指示对应的下游系统生成流程流转请求;及
将所述流程流转请求依次发送至对应的下游系统,以使得所述下游系统根据所述跟踪标识生成日志文件。
一个或多个存储有计算机可读指令的计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:
接收流程操作请求;
通过跟踪器生成与所述流程操作请求对应的跟踪标识,所述跟踪标识用于生成流程流转请求,并在所述流程操作请求的流转过程中依次指示对应的下游系统生成流程流转请求;及
将所述流程流转请求依次发送至对应的下游系统,以使得所述下游系统根据所述跟踪标识生成日志文件。
上述基于人工智能的日志生成方法、装置、计算机设备和介质,在接收到流程操作请求后,则生成对应的跟踪标识,这样在后续流程流转的过程中,均通过该跟踪标识生成流程流转请求,从而在后续的下游系统在对流程操作请求处理的时候可以根据跟踪标识生成日志文件,这样保证了跨系统的跟踪,将单一系统内的日志进行了关联,可以准确地获取到用户的完整的行为。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为根据一个或多个实施例中基于人工智能的日志生成方法的应用场景图。
图2为根据一个或多个实施例中基于人工智能的日志生成方法的流程示意图。
图3为根据另一个或多个实施例中基于人工智能的日志生成方法的流程示意图。
图4则为根据一个或多个实施例中的基于人工智能的日志生成方法的时序图。
图5为根据一个或多个实施例中基于人工智能的日志生成装置的结构框图。
图6为根据一个或多个实施例中计算机设备的框图。
具体实施方式
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供的基于人工智能的日志生成方法,可以应用于如图1所示的应用环境中。终端102通过网络与服务器104通过网络进行通信,终端102向服务器104发送流程流转请求,服务器104通过跟踪器生成与流程操作请求对应的跟踪标识,跟踪标识用于生成流程流转请求,并在流程操作请求的流转过程中依次指示对应的下游系统生成流程流转请求;将流程流转请求依次发送至对应的下游系统,以使得下游系统根据跟踪标识生成日志文件,这样在接收到流程操作请求后,则生成对应的跟踪标识,这样在后续流程流转的过程中,均通过该跟踪标识生成流程流转请求,从而在后续的下游系统在对流程操作请求处理的时候可以根据跟踪标识生成日志文件,这样保证了跨系统的跟踪,将单一系统内的日志进行了关联,可以准确地获取到用户的完整的行为。终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。
在其中一个实施例中,如图2所示,提供了一种基于人工智能的日志生成方法,以该方法应用于图1中的服务器为例进行说明,该服务器可以是分布式系统服务器,包括以下步骤:
S202:接收流程操作请求。
具体地,流程操作请求是终端发送给服务器的,用于指示服务器启动对应的流程的操作请求,具体地,该流程操作请求可以携带有与业务标识,从而以表征本次流程操作请求所对应的业务,进而可以根据业务标识来确定该流程操作请求对应的流转链。其中在该实施例中,以金融借贷类软件为例,包括多种流程,将多种流程进行拆分得到多个流程节点,分别为注册、登录、身份证扫描、实名认证、人脸识别、联系人录入、银行卡信息录入、征信材料录入、房产车辆信息录入、人工审批、借款额度生成、支用申请、支用合同签署、放款、还款。其中根据流程节点,该日志生成方法所涉及的系统的上游系统到下游系统的顺序可以包括:app->账户管理系统->进件流程控制系统->风控审批系统->核算报表系统,需要说明的是此处所说的服务器是指账户管理系统。
S204:通过跟踪器生成与流程操作请求对应的跟踪标识,跟踪标识用于生成流程流转请求,并在流程操作请求的流转过程中依次指示对应的下游系统生成流程流转请求。
具体地,跟踪器可以为TraceId生成器,该TraceId生成器设置在服务器中,当流程操作请求到达服务器时,则该TraceId生成器生成预设位随机数作为TraceId,即跟踪标识, 例如生成16位随机数等。
在后续的流程操作请求的流转过程中,该跟踪标识则依次发送至对应的下游系统,以对对应该流程操作请求的操作进行标识。在实际应用中,该在每次生成流程流转请求的时候,均将该跟踪标识添加至流程流转请求中,例如在生成流程流转请求的时候,该流程流转请求可以是HTTP请求,这样将跟踪标识放置在HTTP请求的头中,从而在下游系统接收到流程流转请求的时候,可以直接从HTTP的头中取出该跟踪标识。
其中账户管理系统是app与其他系统交互的桥梁,用户在app上的所有流程节点的操作请求都会首先到达账户管理系统,账户管理系统再调用进件流程控制系统等下游系统。作为流程节点操作请求的源头系统。
S206:将流程流转请求依次发送至对应的下游系统,以使得下游系统根据跟踪标识生成日志文件。
具体地,流程流转请求发送至下游系统后,下游系统根据跟踪标识生成日志文件,例如以跟踪标识作为日志文件的名称,并将与流程流转请求对应的操作均存储至该日志文件中,这样所有的下游系统的日志文件均是通过跟踪标识生成的,即将所有的下游系统的日志文件均添加到相对应的日志文件名称所对应的日志文件中,从而使得根据跟踪标识即可以查找到用户的完整的行为,将单一系统内的日志进行了关联,可以准确地获取到用户的完整的行为。
需要强调的是,为进一步保证上述日志文件的私密和安全性,上述日志文件还可以存储于一区块链的节点中。
其中可选地,根据下游系统根据跟踪标识生成日志文件可以是将跟踪标识作为日志文件的名字,例如日志文件的名字可以为“跟踪标识+下游系统的系统标识”,这样即保证了跟踪,又对各个下游系统进行了区分。
上述基于人工智能的日志生成方法,在接收到流程操作请求后,则生成对应的跟踪标识,这样在后续流程流转的过程中,均通过该跟踪标识生成流程流转请求,从而在后续的下游系统在对流程操作请求处理的时候可以根据跟踪标识生成日志文件,这样保证了跨系统的跟踪,将单一系统内的日志进行了关联,可以准确地获取到用户的完整的行为。
在其中一个实施例中,下游系统包括多个,且多个下游系统通过流转链相互连接;上述基于人工智能的日志生成方法还包括:获取预先设置的流转链,流转链包括多个按照预设顺序排列的下游系统。将流程流转请求依次发送至对应的下游系统,以使得下游系统根据跟踪标识生成日志文件,包括:从流转链中获取当前下游系统;将流程流转请求发送至当前下游系统,以使得当前下游系统根据跟踪标识生成日志文件;根据流转链判断是否完成流转,若是,则存储各个下游系统所生成的日志文件,若否,则继续从流转链中获取当前下游系统。
其中在该实施例中,以金融借贷类软件为例,该流转链包括:app->账户管理系统->进件流程控制系统->风控审批系统->核算报表系统。首先app发送流程操作请求至账 户管理系统,账户管理系统中的TraceId生成器生成预设位随机数作为跟踪标识,并启动独立线程,放入该独立线程的线程变量中,从而在生成日志的时候存入日志,并根据该跟踪标识生成流程流转请求,将流程流转请求发送至进件控制系统,进件控制系统从流程流转请求中读取跟踪标识,并启动独立线程,放入该独立线程的线程变量中,从而在生成日志的时候存入日志,并根据该跟踪标识生成流程流转请求,将流程流转请求发送至风控审批系统,风控审批系统从流程流转请求中读取跟踪标识,并启动独立线程,放入该独立线程的线程变量中,从而在生成日志的时候存入日志,并根据该跟踪标识生成流程流转请求,将流程流转请求发送至核算报表系统,核算报表系统从流程流转请求中读取跟踪标识,并启动独立线程,放入该独立线程的线程变量中,从而在生成日志的时候存入日志,并根据该跟踪标识生成流程流转请求,以在处理完成后将处理结果返回至app。
其中可选地,在生成流程流转请求的时候,该流程流转请求可以是HTTP请求,这样将跟踪标识放置在HTTP请求的头中,从而在下游系统接收到流程流转请求的时候,可以直接从HTTP的头中取出该跟踪标识。
上述实施例中,给出了整个流转过程,从而所有的下游系统的日志文件均是通过跟踪标识生成的,从而使得根据跟踪标识即可以查找到用户的完整的行为,将单一系统内的日志进行了关联,可以准确地获取到用户的完整的行为。
在其中一个实施例中,将流程流转请求发送至当前下游系统,以使得当前下游系统根据跟踪标识生成日志文件,包括:将流程流转请求发送至当前下游系统,以使得对应的当前下游系统启动独立的线程,并根据跟踪标识生成线程变量,以根据线程变量将对应线程中的操作打印至对应的日志文件中。
具体地,用户的每个流程节点的请求从账户管理系统到下游系统的整个请求过程作为一个进程,每个系统都会启动一个独立的线程来顺序完成这个进程,即一个请求就是一个进程,这个进程包含每个系统的一个独立线程,这个独立的线程完成请求在每个系统中的所有处理操作。线程独立的变量就是与这个独立线程绑定的变量,线程结束该变量消失,在线程存在时,该变量一直存在。将TraceId记录到线程独立的变量中,就可以唯一标识该线程,系统在该线程中所作的所有操作都会被TraceId追踪到,因此打印日志时可以从线程独立的变量中取出TraceId,将TraceId打印到日志中,通过TraceId就可以关联到一个请求在每个系统的所有操作日志。上游系统在调用下游系统时,将TraceId放到HTTP请求的Header请求头中传递给下游系统,下游系统从上游系统传递过来Http的Header中取出TraceId,将该TraceId放到自己系统线程独立的变量中,在打印日志时将TraceId与日志内容一块打印。
上述实施例中,通过启动独立的线程来对日志流转请求进行处理,保证了稳定性。
在其中一个实施例中,通过跟踪器生成与流程操作请求对应的跟踪标识之后,还包括:根据跟踪标识生成日志文件夹。将流程流转请求依次发送至对应的下游系统,以使得下游系统根据跟踪标识生成日志文件之后,还包括:将日志文件存储至日志文件夹中。
具体地,每个系统在日志打印时,由日志管理器以TraceId命名日志文件,包含该TraceId的所有日志都归档到该文件中。这样通过文件名,就能追踪到一个请求在每个系统中的所有操作。
在其中一个实施例中,通过跟踪器生成与流程操作请求对应的跟踪标识之后,还包括:获取与流程操作请求对应的用户标识以及流转链;建立用户标识、跟踪标识以及流转链的对应关系。
具体地,上游进件系统在用户注册时,生成用户标识,唯一标识某一用户。上游进件系统给每个接口定义一个节点(注册、登录、实名认证、人脸识别、创建授信申请、信用加油、借款、还款等),唯一标识该接口,一个流程所涉及的所有的节点按顺序排列就形成了流转链。每次请求到达上游进件系统时,建立TraceId、用户标识与节点的对应关系,并将对应关系写入到数据库中。
其中,在用户管理系统中新增一个数据库表,表中的记录用户标识(手机号)、流程节点及TraceId的映射关系。这样通过查表,就可以得到每个用户在每个流程节点的TraceId,通过TracrId在每个系统中找到同名日志文件,就可以得到用户每个流程节点操作在所有系统的日志。
具体地,参见图3和图4所示,图3为另一个实施例中的基于人工智能的日志生成方法的流程图,图4则为一个实施例中的基于人工智能的日志生成方法的时序图。在该实施例中,服务器统一日志管理,即统一打印个系统日志,打印时以TraceId命名日志文件,包含该TraceId的所有日志都归档至该日志文件中。
该实施例中的下游系统包括账户流程管理系统、进件控制系统、风控审批系统以及核算报表系统。
终端中的APP发送流程节点操作请求至账户管理系统,账户管理系统中的TraceId生成器生成预设位随机数作为跟踪标识,并启动独立线程,放入该独立线程的线程变量中,从而在生成日志的时候存入日志,并根据该跟踪标识生成流程流转请求,将流程流转请求发送至进件控制系统,进件控制系统从流程流转请求中读取跟踪标识,并启动独立线程,放入该独立线程的线程变量中,从而在生成日志的时候存入日志,并根据该跟踪标识生成流程流转请求,将流程流转请求发送至风控审批系统,风控审批系统从流程流转请求中读取跟踪标识,并启动独立线程,放入该独立线程的线程变量中,从而在生成日志的时候存入日志,并根据该跟踪标识生成流程流转请求,将流程流转请求发送至核算报表系统,核算报表系统从流程流转请求中读取跟踪标识,并启动独立线程,放入该独立线程的线程变量中,从而在生成日志的时候存入日志,并根据该跟踪标识生成流程流转请求,以在处理完成后将处理结果返回至app。
其中在账户管理系统,终端在注册时以手机号作为用户唯一标识,当APP的请求到达时,生成TraceId,放入线程独立变量将其打印至日志中,建立数据库表,记录用户标识、流程节点以及TraceId,并将TraceId放入HTTP请求头Header中。
进件控制系统、风控审批系统以及核算报表系统则首先负责取出HTTP请求头Header中的TraceId,并设置到线程独立的变量中,其次在往下传输的时候,将TraceId放入到HTTP请求头Header中。
上述基于人工智能的日志生成方法,在接收到流程操作请求后,则生成对应的跟踪标识,这样在后续流程流转的过程中,均通过该跟踪标识生成流程流转请求,从而在后续的下游系统在对流程操作请求处理的时候可以根据跟踪标识生成日志文件,这样保证了跨系统的跟踪,将单一系统内的日志进行了关联,可以准确地获取到用户的完整的行为。
应该理解的是,虽然图2-3的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-3中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
在其中一个实施例中,如图5所示,提供了一种基于人工智能的日志生成装置,应用于分布式系统,包括:接收模块100、跟踪标识生成模块200和流转模块300,其中:
接收模块100,用于接收流程操作请求;
跟踪标识生成模块200,用于通过跟踪器生成与流程操作请求对应的跟踪标识,跟踪标识用于生成流程流转请求,并在流程操作请求的流转过程中依次指示对应的下游系统生成流程流转请求;
流转模块300,用于将流程流转请求依次发送至对应的下游系统,以使得下游系统根据跟踪标识生成日志文件。
在其中一个实施例中,下游系统包括多个,且多个下游系统通过流转链相互连接;装置还包括:
流转链获取模块,用于获取预先设置的流转链,流转链包括多个按照预设顺序排列的下游系统;
流转模块300包括:
当前下游系统获取单元,用于从流转链中获取当前下游系统;
日志文件生成单元,用于将流程流转请求发送至当前下游系统,以使得当前下游系统根据跟踪标识生成日志文件;
循环单元,用于根据流转链判断是否完成流转,若是,则存储各个下游系统所生成的日志文件,若否,则继续从流转链中获取当前下游系统。
在其中一个实施例中,日志文件生成单元还用于将流程流转请求发送至当前下游系统,以使得对应的当前下游系统启动独立的线程,并根据跟踪标识生成线程变量,以根据线程变量将对应线程中的操作打印至对应的日志文件中。
在其中一个实施例中,上述的基于人工智能的日志生成装置包括:
文件夹生成模块,用于根据跟踪标识生成日志文件夹;
存储模块,用于将日志文件存储至日志文件夹中。
在其中一个实施例中,上述的基于人工智能的日志生成装置包括:
信息获取模块,用于获取与流程操作请求对应的用户标识以及流转链;
关系建立模块,用于建立用户标识、跟踪标识以及流转链的对应关系。
关于基于人工智能的日志生成装置的具体限定可以参见上文中对于基于人工智能的日志生成方法的限定,在此不再赘述。上述基于人工智能的日志生成装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在其中一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图6所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储日志文件。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种基于人工智能的日志生成方法。
本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
一种计算机设备,包括存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被处理器执行时,使得一个或多个处理器执行以下步骤::接收流程操作请求;通过跟踪器生成与流程操作请求对应的跟踪标识,跟踪标识用于生成流程流转请求,并在流程操作请求的流转过程中依次指示对应的下游系统生成流程流转请求;及将流程流转请求依次发送至对应的下游系统,以使得下游系统根据跟踪标识生成日志文件。
其中,该计算机可读存储介质可以是非易失性,也可以是易失性的。
在其中一个实施例中,处理器执行计算机可读指令时所涉及的下游系统包括多个,且多个下游系统通过流转链相互连接;处理器执行计算机可读指令时所实现的还实现以下步骤:获取预先设置的流转链,流转链包括多个按照预设顺序排列的下游系统;处理器执行计算机可读指令时所实现的将流程流转请求依次发送至对应的下游系统,以使得下游系统根据跟踪标识生成日志文件,包括:从流转链中获取当前下游系统;将流程流转请求发送至当前下游系统,以使得当前下游系统根据跟踪标识生成日志文件;及根据流转链判断是否完成流转,若是,则存储各个下游系统所生成的日志文件,若否,则继续从流转链中获 取当前下游系统。
在其中一个实施例中,处理器执行计算机可读指令时所实现的将流程流转请求发送至当前下游系统,以使得当前下游系统根据跟踪标识生成日志文件,包括:将流程流转请求发送至当前下游系统,以使得对应的当前下游系统启动独立的线程,并根据跟踪标识生成线程变量,以根据线程变量将对应线程中的操作打印至对应的日志文件中。
在其中一个实施例中,处理器执行计算机可读指令时所实现的通过跟踪器生成与流程操作请求对应的跟踪标识之后,还包括:根据跟踪标识生成日志文件夹;及处理器执行计算机可读指令时所实现的将流程流转请求依次发送至对应的下游系统,以使得下游系统根据跟踪标识生成日志文件之后,还包括:将日志文件存储至日志文件夹中。
在其中一个实施例中,处理器执行计算机可读指令时所实现的通过跟踪器生成与流程操作请求对应的跟踪标识之后,还包括:获取与流程操作请求对应的用户标识以及流转链;及建立用户标识、跟踪标识以及流转链的对应关系。
一个或多个存储有计算机可读指令的计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤::接收流程操作请求;通过跟踪器生成与流程操作请求对应的跟踪标识,跟踪标识用于生成流程流转请求,并在流程操作请求的流转过程中依次指示对应的下游系统生成流程流转请求;及将流程流转请求依次发送至对应的下游系统,以使得下游系统根据跟踪标识生成日志文件。
在其中一个实施例中,计算机可读指令被处理器执行时所涉及的下游系统包括多个,且多个下游系统通过流转链相互连接;计算机可读指令被处理器执行时所实现的还实现以下步骤:获取预先设置的流转链,流转链包括多个按照预设顺序排列的下游系统;计算机可读指令被处理器执行时所实现的将流程流转请求依次发送至对应的下游系统,以使得下游系统根据跟踪标识生成日志文件,包括:从流转链中获取当前下游系统;将流程流转请求发送至当前下游系统,以使得当前下游系统根据跟踪标识生成日志文件;及根据流转链判断是否完成流转,若是,则存储各个下游系统所生成的日志文件,若否,则继续从流转链中获取当前下游系统。
在其中一个实施例中,计算机可读指令被处理器执行时所实现的将流程流转请求发送至当前下游系统,以使得当前下游系统根据跟踪标识生成日志文件,包括:将流程流转请求发送至当前下游系统,以使得对应的当前下游系统启动独立的线程,并根据跟踪标识生成线程变量,以根据线程变量将对应线程中的操作打印至对应的日志文件中。
在其中一个实施例中,计算机可读指令被处理器执行时所实现的通过跟踪器生成与流程操作请求对应的跟踪标识之后,还包括:根据跟踪标识生成日志文件夹;及计算机可读指令被处理器执行时所实现的将流程流转请求依次发送至对应的下游系统,以使得下游系统根据跟踪标识生成日志文件之后,还包括:将日志文件存储至日志文件夹中。
在其中一个实施例中,计算机可读指令被处理器执行时所实现的通过跟踪器生成与流程操作请求对应的跟踪标识之后,还包括:获取与流程操作请求对应的用户标识以及流转 链;及建立用户标识、跟踪标识以及流转链的对应关系。
本申请可用于众多通用或专用的计算机系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。
本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性或易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (20)

  1. 一种基于人工智能的日志生成方法,应用于分布式系统,包括:
    接收流程操作请求;
    通过跟踪器生成与所述流程操作请求对应的跟踪标识,所述跟踪标识用于生成流程流转请求,并在所述流程操作请求的流转过程中依次指示对应的下游系统生成流程流转请求;及
    将所述流程流转请求依次发送至对应的下游系统,以使得所述下游系统根据所述跟踪标识生成日志文件。
  2. 根据权利要求1所述的方法,其中,所述下游系统包括多个,且多个所述下游系统通过流转链相互连接;所述方法还包括:
    获取预先设置的流转链,所述流转链包括多个按照预设顺序排列的下游系统;
    所述将所述流程流转请求依次发送至对应的下游系统,以使得所述下游系统根据所述跟踪标识生成日志文件,包括:
    从所述流转链中获取当前下游系统;
    将所述流程流转请求发送至所述当前下游系统,以使得所述当前下游系统根据所述跟踪标识生成日志文件;及
    根据所述流转链判断是否完成流转,若是,则存储各个下游系统所生成的日志文件,若否,则继续从所述流转链中获取当前下游系统。
  3. 根据权利要求2所述的方法,其中,所述将所述流程流转请求发送至所述当前下游系统,以使得所述当前下游系统根据所述跟踪标识生成日志文件,包括:
    将所述流程流转请求发送至所述当前下游系统,以使得对应的当前下游系统启动独立的线程,并根据所述跟踪标识生成线程变量,以根据所述线程变量将对应线程中的操作打印至对应的日志文件中。
  4. 根据权利要求1至3任意一项所述的方法,其中,在所述通过跟踪器生成与所述流程操作请求对应的跟踪标识之后,所述方法还包括:
    根据所述跟踪标识生成日志文件夹;及
    所述将所述流程流转请求依次发送至对应的下游系统,以使得所述下游系统根据所述跟踪标识生成日志文件之后,还包括:
    将所述日志文件存储至所述日志文件夹中。
  5. 根据权利要求4所述的方法,其中,在所述通过跟踪器生成与所述流程操作请求对应的跟踪标识之后,所述方法还包括:
    获取与所述流程操作请求对应的用户标识以及流转链;及
    建立所述用户标识、所述跟踪标识以及所述流转链的对应关系。
  6. 一种基于人工智能的日志生成装置,其中,应用于分布式系统,包括:
    接收模块,用于接收流程操作请求;
    跟踪标识生成模块,用于通过跟踪器生成与所述流程操作请求对应的跟踪标识,所述跟踪标识用于生成流程流转请求,并在所述流程操作请求的流转过程中依次指示对应的下游系统生成流程流转请求;
    流转模块,用于将所述流程流转请求依次发送至对应的下游系统,以使得所述下游系统根据所述跟踪标识生成日志文件。
  7. 根据权利要求6所述的装置,其中,所述下游系统包括多个,且多个所述下游系统通过流转链相互连接;所述装置还包括:
    流转链获取模块,用于获取预先设置的流转链,所述流转链包括多个按照预设顺序排列的下游系统;
    所述流转模块包括:
    当前下游系统获取单元,用于从所述流转链中获取当前下游系统;
    日志文件生成单元,用于将所述流程流转请求发送至所述当前下游系统,以使得所述当前下游系统根据所述跟踪标识生成日志文件;
    循环单元,用于根据所述流转链判断是否完成流转,若是,则存储各个下游系统所生成的日志文件,若否,则继续从所述流转链中获取当前下游系统。
  8. 根据权利要求7所述的装置,其中,所述日志文件生成单元还用于将所述流程流转请求发送至所述当前下游系统,以使得对应的当前下游系统启动独立的线程,并根据所述跟踪标识生成线程变量,以根据所述线程变量将对应线程中的操作打印至对应的日志文件中。
  9. 根据权利要求6至8任意一项所述的装置,其中,所述装置还包括:
    文件夹生成模块,用于根据所述跟踪标识生成日志文件夹;及
    存储模块,用于将所述日志文件存储至所述日志文件夹中。
  10. 根据权利要求9所述的装置,其中,所述装置还包括:
    信息获取模块,用于获取与所述流程操作请求对应的用户标识以及流转链;及
    关系建立模块,用于建立所述用户标识、所述跟踪标识以及所述流转链的对应关系。
  11. 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    接收流程操作请求;
    通过跟踪器生成与所述流程操作请求对应的跟踪标识,所述跟踪标识用于生成流程流转请求,并在所述流程操作请求的流转过程中依次指示对应的下游系统生成流程流转请求;及
    将所述流程流转请求依次发送至对应的下游系统,以使得所述下游系统根据所述跟踪标识生成日志文件。
  12. 根据权利要求11所述的计算机设备,其中,所述下游系统包括多个,且多个所 述下游系统通过流转链相互连接;所述处理器执行所述计算机可读指令时还执行以下步骤:
    获取预先设置的流转链,所述流转链包括多个按照预设顺序排列的下游系统;
    所述处理器执行所述计算机可读指令时所实现的所述将所述流程流转请求依次发送至对应的下游系统,以使得所述下游系统根据所述跟踪标识生成日志文件,包括:
    从所述流转链中获取当前下游系统;
    将所述流程流转请求发送至所述当前下游系统,以使得所述当前下游系统根据所述跟踪标识生成日志文件;及
    根据所述流转链判断是否完成流转,若是,则存储各个下游系统所生成的日志文件,若否,则继续从所述流转链中获取当前下游系统。
  13. 根据权利要求12所述的计算机设备,其中,所述处理器执行所述计算机可读指令时所实现的所述将所述流程流转请求发送至所述当前下游系统,以使得所述当前下游系统根据所述跟踪标识生成日志文件,包括:
    将所述流程流转请求发送至所述当前下游系统,以使得对应的当前下游系统启动独立的线程,并根据所述跟踪标识生成线程变量,以根据所述线程变量将对应线程中的操作打印至对应的日志文件中。
  14. 根据权利要求11至13任意一项所述的计算机设备,其中,所述处理器执行所述计算机可读指令时在所述通过跟踪器生成与所述流程操作请求对应的跟踪标识之后,还执行以下步骤:
    根据所述跟踪标识生成日志文件夹;及
    所述处理器执行所述计算机可读指令时所实现的所述将所述流程流转请求依次发送至对应的下游系统,以使得所述下游系统根据所述跟踪标识生成日志文件之后,还包括:
    将所述日志文件存储至所述日志文件夹中。
  15. 根据权利要求14所述的计算机设备,其中,所述处理器执行所述计算机可读指令时在所述通过跟踪器生成与所述流程操作请求对应的跟踪标识之后,还执行以下步骤:
    获取与所述流程操作请求对应的用户标识以及流转链;及
    建立所述用户标识、所述跟踪标识以及所述流转链的对应关系。
  16. 一个或多个存储有计算机可读指令的计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    接收流程操作请求;
    通过跟踪器生成与所述流程操作请求对应的跟踪标识,所述跟踪标识用于生成流程流转请求,并在所述流程操作请求的流转过程中依次指示对应的下游系统生成流程流转请求;及
    将所述流程流转请求依次发送至对应的下游系统,以使得所述下游系统根据所述跟踪标识生成日志文件。
  17. 根据权利要求16所述的存储介质,其中,所述下游系统包括多个,且多个所述下游系统通过流转链相互连接;所述计算机可读指令被所述处理器执行时还执行以下步骤:
    获取预先设置的流转链,所述流转链包括多个按照预设顺序排列的下游系统;
    所述计算机可读指令被所述处理器执行时所实现的所述将所述流程流转请求依次发送至对应的下游系统,以使得所述下游系统根据所述跟踪标识生成日志文件,包括:
    从所述流转链中获取当前下游系统;
    将所述流程流转请求发送至所述当前下游系统,以使得所述当前下游系统根据所述跟踪标识生成日志文件;及
    根据所述流转链判断是否完成流转,若是,则存储各个下游系统所生成的日志文件,若否,则继续从所述流转链中获取当前下游系统。
  18. 根据权利要求17所述的存储介质,其中,所述计算机可读指令被所述处理器执行时所实现的所述将所述流程流转请求发送至所述当前下游系统,以使得所述当前下游系统根据所述跟踪标识生成日志文件,包括:
    将所述流程流转请求发送至所述当前下游系统,以使得对应的当前下游系统启动独立的线程,并根据所述跟踪标识生成线程变量,以根据所述线程变量将对应线程中的操作打印至对应的日志文件中。
  19. 根据权利要求16至18任意一项所述的存储介质,其中,所述计算机可读指令被所述处理器执行时在所述通过跟踪器生成与所述流程操作请求对应的跟踪标识之后,还执行以下步骤:
    根据所述跟踪标识生成日志文件夹;及
    所述计算机可读指令被所述处理器执行时所实现的所述将所述流程流转请求依次发送至对应的下游系统,以使得所述下游系统根据所述跟踪标识生成日志文件之后,还包括:
    将所述日志文件存储至所述日志文件夹中。
  20. 根据权利要求19所述的存储介质,其中,所述计算机可读指令被所述处理器执行时在所述通过跟踪器生成与所述流程操作请求对应的跟踪标识之后,还执行以下步骤:
    获取与所述流程操作请求对应的用户标识以及流转链;及
    建立所述用户标识、所述跟踪标识以及所述流转链的对应关系。
PCT/CN2021/093210 2020-11-25 2021-05-12 基于人工智能的日志生成方法、装置、计算机设备和介质 WO2022110675A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011341410.4A CN112433925A (zh) 2020-11-25 2020-11-25 基于人工智能的日志生成方法、装置、计算机设备和介质
CN202011341410.4 2020-11-25

Publications (1)

Publication Number Publication Date
WO2022110675A1 true WO2022110675A1 (zh) 2022-06-02

Family

ID=74698967

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/093210 WO2022110675A1 (zh) 2020-11-25 2021-05-12 基于人工智能的日志生成方法、装置、计算机设备和介质

Country Status (2)

Country Link
CN (1) CN112433925A (zh)
WO (1) WO2022110675A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117097803A (zh) * 2023-10-19 2023-11-21 易方信息科技股份有限公司 基于http全链路追踪方法、系统、设备以及存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433925A (zh) * 2020-11-25 2021-03-02 平安普惠企业管理有限公司 基于人工智能的日志生成方法、装置、计算机设备和介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110145659A1 (en) * 2009-12-11 2011-06-16 Fujitsu Limited Log collecting apparatus, program, method, and system
CN106487596A (zh) * 2016-10-26 2017-03-08 宜人恒业科技发展(北京)有限公司 分布式服务跟踪实现方法
CN108038145A (zh) * 2017-11-23 2018-05-15 携程旅游网络技术(上海)有限公司 分布式服务跟踪方法、系统、存储介质和电子设备
CN108462598A (zh) * 2017-02-21 2018-08-28 阿里巴巴集团控股有限公司 一种日志生成方法、日志分析方法及装置
CN109921927A (zh) * 2019-02-20 2019-06-21 苏州人之众信息技术有限公司 基于微服务的实时调用链跟踪方法
CN110730246A (zh) * 2019-10-23 2020-01-24 家乡互动(厦门)网络科技有限公司 一种微服务架构下的分布式链路跟踪方法
CN112131013A (zh) * 2019-06-25 2020-12-25 顺丰科技有限公司 分布式系统中调用链的监控方法、装置、设备及存储介质
CN112433925A (zh) * 2020-11-25 2021-03-02 平安普惠企业管理有限公司 基于人工智能的日志生成方法、装置、计算机设备和介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375884A (zh) * 2018-09-03 2019-02-22 中国平安人寿保险股份有限公司 应用日志打印方法、装置、计算机设备和存储介质

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110145659A1 (en) * 2009-12-11 2011-06-16 Fujitsu Limited Log collecting apparatus, program, method, and system
CN106487596A (zh) * 2016-10-26 2017-03-08 宜人恒业科技发展(北京)有限公司 分布式服务跟踪实现方法
CN108462598A (zh) * 2017-02-21 2018-08-28 阿里巴巴集团控股有限公司 一种日志生成方法、日志分析方法及装置
CN108038145A (zh) * 2017-11-23 2018-05-15 携程旅游网络技术(上海)有限公司 分布式服务跟踪方法、系统、存储介质和电子设备
CN109921927A (zh) * 2019-02-20 2019-06-21 苏州人之众信息技术有限公司 基于微服务的实时调用链跟踪方法
CN112131013A (zh) * 2019-06-25 2020-12-25 顺丰科技有限公司 分布式系统中调用链的监控方法、装置、设备及存储介质
CN110730246A (zh) * 2019-10-23 2020-01-24 家乡互动(厦门)网络科技有限公司 一种微服务架构下的分布式链路跟踪方法
CN112433925A (zh) * 2020-11-25 2021-03-02 平安普惠企业管理有限公司 基于人工智能的日志生成方法、装置、计算机设备和介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117097803A (zh) * 2023-10-19 2023-11-21 易方信息科技股份有限公司 基于http全链路追踪方法、系统、设备以及存储介质

Also Published As

Publication number Publication date
CN112433925A (zh) 2021-03-02

Similar Documents

Publication Publication Date Title
US10972274B2 (en) Trusted identity solution using blockchain
WO2021003980A1 (zh) 黑名单共享方法、装置、计算机设备和存储介质
US10742424B2 (en) Trusted identity solution using blockchain
CN109255084B (zh) 电子票据查询方法、装置、存储介质和计算机设备
CN109784922B (zh) 电子合同签署方法、装置、计算机设备和存储介质
CN110633963B (zh) 电子票据处理方法、装置、计算机可读存储介质和设备
WO2022110675A1 (zh) 基于人工智能的日志生成方法、装置、计算机设备和介质
CN111506584B (zh) 基于区块链的业务数据处理方法、装置和计算机设备
WO2020233092A1 (zh) 智能合约调用方法、装置、设备和存储介质
CN111314172B (zh) 基于区块链的数据处理方法、装置、设备及存储介质
WO2021068348A1 (zh) 任务部署方法、系统和存储介质
CN109144487B (zh) 进件业务开发方法、装置、计算机设备和存储介质
CN111127150B (zh) 基于区块链的智能合约需求匹配方法、装置和计算机设备
WO2022095518A1 (zh) 接口自动化测试方法、装置、计算机设备及存储介质
CN111541545A (zh) 存证包生成方法、装置、计算机设备和存储介质
CN111709718A (zh) 基于人工智能的智能保理资产服务平台、方法和存储介质
CN110597820A (zh) 基于区块链的信息处理方法、装置、存储介质和设备
CN111565173A (zh) 区块链系统的智能合约管理方法、装置及硬件设备
WO2023077748A1 (zh) 一种账户管理方法、装置、计算机设备和存储介质
CN115085934A (zh) 基于区块链和组合密钥的合同管理方法及相关设备
CN114266680A (zh) 基于区块链的电子合同签约方法、装置及系统
CN113592495A (zh) 一种基于区块链的存证方法、装置及系统
CN114741452A (zh) 数据存证方法、装置、电子设备和存储介质
CN110598449B (zh) 履约保函的数据处理方法、装置、存储介质和计算机设备
CN114490704A (zh) 数据处理方法、装置、设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21896190

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12.09.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21896190

Country of ref document: EP

Kind code of ref document: A1