CN106100913A - Error information positioning system and method - Google Patents

Error information positioning system and method Download PDF

Info

Publication number
CN106100913A
CN106100913A CN201610726113.9A CN201610726113A CN106100913A CN 106100913 A CN106100913 A CN 106100913A CN 201610726113 A CN201610726113 A CN 201610726113A CN 106100913 A CN106100913 A CN 106100913A
Authority
CN
China
Prior art keywords
error
server
log
current
corresponding
Prior art date
Application number
CN201610726113.9A
Other languages
Chinese (zh)
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 北京票之家科技有限公司
Priority to CN201610726113.9A priority Critical patent/CN106100913A/en
Publication of CN106100913A publication Critical patent/CN106100913A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance or administration or management of packet switching networks
    • H04L41/06Arrangements for maintenance or administration or management of packet switching networks involving management of faults or events or alarms
    • H04L41/0677Arrangements for maintenance or administration or management of packet switching networks involving management of faults or events or alarms localization of fault position
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance or administration or management of packet switching networks
    • H04L41/06Arrangements for maintenance or administration or management of packet switching networks involving management of faults or events or alarms
    • H04L41/069Arrangements for maintenance or administration or management of packet switching networks involving management of faults or events or alarms involving storage or log of alarms or notifications or post-processing thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/10Network-specific arrangements or communication protocols supporting networked applications in which an application is distributed across nodes in the network

Abstract

The invention provides an error information positioning system and method. The system comprises a log processing device, and a plurality of servers respectively connected with the log processing device, wherein each server is used to search in each log file periodically according to error identifiers defined in advance to obtain respective error log sets in current period and report the respective error log sets in current period to the log processing device, and the log processing device is used to classify multiple lines of error logs in all received error log sets according to request identifiers to obtain multiple lines of error logs corresponding to each request identifier and determine the error source server corresponding to a current request according to the request server identifier in each line of error log corresponding to the current request identifier, the identifier of the current server and the identifier of a target server. The defects of long time, low efficiency and high manual cost in the prior arts for manual error checking can be overcome.

Description

错误信息定位系统及方法 Error Message positioning system and method

技术领域 FIELD

[0001]本发明涉及计算机与网络架构技术领域,具体而言,涉及一种错误信息定位系统及方法。 [0001] The present invention relates to computer technology and network architectures, and in particular, to a system and method for positioning error.

背景技术 Background technique

[0002]在分布式系统中,用户在前端服务器通过某种操作发起的请求将调用多个系统,该多个系统按照层级关系排列,其中每个系统包括多个服务器,当调用过程中任意一个系统中的任意一个服务器报错时,前端服务器将显示错误信息。 [0002] In the distributed system, the user front-end server a request initiated by some operating systems a plurality of calls, a plurality of systems which are arranged in a hierarchical relationship, wherein each system comprises a plurality of servers, when calling any one of the process the system of any given server, front-end server will display an error message.

[0003]比如,用户在前端服务器发起请求A之后,请求A将调用系统Al,系统Al调用系统A2、系统A2调用系统A3,通过系统A1、系统A2、系统A3之间的调用过程完成请求A的处理。 After [0003] For example, the user A initiates a request at the front end server, the call request A system Al, Al system call system A2, A3 system A2 calling system, through the system A1, A2 system, the system call process between completion request A3 A processing. 系统Al、系统A2、系统A3均包括多个服务器,当系统Al、系统A2、系统A3中的任意一个服务器报错时,前端服务器将显示错误信息。 System Al, system A2, A3 system includes a plurality of servers, when any system Al, system A2, A3 system in a given server, front-end server will display an error message.

[0004]现有技术中,通常采用人工查找的方式在分布式系统中查找报错的服务器,从而解决错误问题。 [0004] prior art, usually by way of artificial Find It being given server in a distributed system to solve the wrong problem. 现有技术中的人工差错方法具体为:当前端服务器显示错误信息时,在前端服务器调用的第一层系统的多个服务器中查找报错服务器,在确定报错服务器后,在报错服务器中确定具体的错误日志,以及确定该错误日志调用的下一层系统,在该下一层系统的多个服务器中继续查找报错服务器,依此进行,直至查找到最终报错的服务器。 Human error the prior art method is specifically: the front-end server error message is displayed, to find an error in the server system a first layer of a plurality of servers called front-end server, after determining the given server to determine the specific error in the server error log, and to determine the next level of the system error log calls, continue to look for multiple servers in the server error next layer system, and so on until the final look to the server being given. 理想情况下,单个系统的错误排查时间最快为15分钟,多层级系统的错误排查需要15分钟乘以系统层级数量的时间。 Ideally, a single system error troubleshooting fastest time of 15 minutes, the wrong system of multi-level investigation and 15 minutes multiplied by the number of system-level time.

[0005] 如典型的产品下单场景:前端服务器调用API (Appl icat1n ProgrammingInterface,应用程序编程接口)层,API层调用订单系统,订单系统调用产品系统计算产品价格,如果有库存请求,订单系统继续调用库存系统。 [0005] The typical products single scene: front-end server calls the API (Appl icat1n ProgrammingInterface, Application Programming Interface) layer, the API layer calls the order system, an order system calls product system calculates the price, if the stock request, order system continues call the inventory system. 该过程涉及4层系统的调用链,如果出现问题将产生I个小时的错误排查时间,人工错误排查时间长,人工排查的成本高。 The process involves the layer system call chain 4, there is a problem if the error is generated I hour time investigation, human error investigation for a long time, the high cost of artificial troubleshooting.

[0006]由上可知,现有技术中,通过人工进行错误排查的方式具有时间长、效率低、人工成本高的缺陷。 [0006] From the above, the prior art, by way of doing error troubleshooting a long time, low efficiency and high cost of artificial defects.

发明内容 SUMMARY

[0007]有鉴于此,本发明的目的在于提供一种错误信息定位系统及方法,缓解现有技术中通过人工进行错误排查的方式具有时间长、效率低、人工成本高的缺陷。 [0007] In view of this, an object of the present invention is to provide a positioning system and method for error messages, long remission time, low efficiency and high cost of artificial defect with the prior art by way of doing error troubleshooting.

[0008]第一方面,本发明实施例提供了一种错误信息定位系统,所述系统包括日志处理装置,与所述日志处理装置分别连接的多个服务器,多个所述服务器分别对应各自的系统;各个所述服务器分别用于,周期性根据预先定义的错误标识在各自的日志文件中进行查找,得到各自在当前周期内的错误日志集合,将各自在当前周期内的所述错误日志集合上报至所述日志处理装置;其中,各个所述错误日志集合均包括多行错误日志,每行所述错误日志均包括所属的系统标识、请求标识、请求服务器标识、当前服务器标识、目标服务器标识以及正确性标识,所述正确性标识为正确标识或者所述错误标识;所述日志处理装置用于,接收各个所述服务器上报的各自在当前周期内的所述错误日志集合,按照所述请求标识对接收到的所有所述错误日志集合中的多行错误 [0008] In a first aspect, the present invention provides a positioning error, the system including log processing apparatus, a plurality of server devices are respectively connected to the log processing, the plurality of servers respectively correspond to the respective the system; respectively for each of the server periodically looked up in respective log file according to a predefined identification error, the error log to obtain each set in the current cycle, the current cycle in each of the error log collection reported to the log processing apparatus; wherein each of said set of error logs error log includes a plurality of rows, each row comprises the system identification error log belongs, request identification, server identification request, this server identification, the server identification target and identifying the correctness of the identity or correctness of the identification is correct misidentified; each said set of error log in the current cycle of the log processing means for receiving respective reported by the server according to the request All the error log collection ID received in the multi-line error 志进行分类,得到每个所述请求标识对应的多行错误日志,根据当前请求标识对应的每行所述错误日志中的请求服务器标识、当前服务器标识和目标服务器标识,确定当前请求对应的错误来源服务器。 Chi classification, error log to obtain a plurality of rows each corresponding to the identifier of the request, according to the current request requesting said server identifying each row corresponding to the identifier in the error log, the current target server identification and the server identification, determine the corresponding error current request source server.

[0009]结合第一方面,本发明实施例提供了第一方面第一种可能的实施方式,其中,所述日志处理装置包括:查找模块,用于在所述当前请求标识对应的每行所述错误日志中查找所述请求服务器标识为空的错误日志;标识获取模块,用于获取查找到的所述错误日志中的目标服务器标识,在所述当前请求标识对应的每行所述错误日志中查找将所述目标服务器标识作为当前服务器标识的错误日志;重复模块,用于重复所述标识获取模块的动作,直至查找到的将所述目标服务器标识作为当前服务器标识的错误日志不存在目标服务器标识;错误来源服务器确定模块,用于确定查找到的不存在目标服务器标识的所述错误日志为所述当前请求对应的来源错误日志,将所述来源错误日志中的当前服务器标识对应的服务器确定为所述当前请求对应的错误来源服务器。 [0009] with the first aspect, a first aspect of the embodiment provides a first possible embodiment of the invention, wherein the log processing apparatus comprising: a lookup module for identifying each row corresponding to the current request said error log request to the error log lookup server identified empty; identifier obtaining module, configured to obtain the target server identification to find the error log, each row corresponding to the identifier of the current request to the error log Find the target server ID as the server ID of the current error log; repeat means for repeating the operation identifier obtaining module, until you find the identity of the target server is the current server's error log as identified by the absence of target server identifier; source server error determination means for determining the error log to find the absence of the target server identified as the source of the current corresponding to the error log request, the server identification corresponding to the current source error log server determining said error current corresponding to the request source server.

[0010]结合第一方面第一种可能的实施方式,本发明实施例提供了第一方面第二种可能的实施方式,其中,所述错误来源服务器确定模块还用于,若所述重复模块在各个所述服务器上报的各自在连续预设数量周期内的所述错误日志集合中均查找不到将所述目标服务器标识作为当前服务器标识的错误日志,则将所述目标服务器标识所在的错误日志确定为所述当前请求对应的来源错误日志,将所述来源错误日志中的当前服务器标识对应的服务器确定为所述当前请求对应的错误来源服务器。 [0010] combination with the first aspect of the first possible embodiment, the present embodiment of the first aspect of the invention provides a second possible embodiment, wherein the error source server module is further configured to determine, if the module is repeated in each of the servers in each successive preset reported the error log collection in the number of cycles in both look less than the target server ID as the current server error log identified, then the target server to identify where the error the log is determined as the current source of the request corresponding to the error log, the server identifies the current sources corresponding to the error log server determines that the current request is the source of the error corresponding to the server.

[0011]结合第一方面第二种可能的实施方式,本发明实施例提供了第一方面第三种可能的实施方式,其中,所述日志处理装置还包括:前端错误服务器确定模块,用于将所述查找模块查找到的所述错误日志确定为所述当前请求对应的前端错误日志,将所述前端错误日志中当前服务器标识对应的服务器作为所述当前请求对应的前端错误服务器。 [0011] connection with the first aspect of the second possible embodiment, a first aspect of the embodiment provides a third possible embodiment of the invention, wherein the log processing apparatus further comprising: a front end server error determination means for the searching module to find the error log request is determined as the current corresponding to the front end of the error log, the front end of this error log server as the server identifier corresponding to the request corresponding to the current error front end server.

[0012]结合第一方面第三种可能的实施方式,本发明实施例提供了第一方面第四种可能的实施方式,其中,所述日志处理装置还包括:调用链确定模块,用于获取所述标识获取模块和所述重复模块在查找过程中查找到的各个所述错误日志,提取各个所述错误日志中的当前服务器标识对应的服务器,将提取到的多个服务器、所述前端错误服务器、所述错误来源服务器按照调用关系组成所述当前请求对应的错误服务器调用链。 [0012] A third aspect of binding a first possible embodiment, the embodiment of a first aspect the present invention provides a fourth possible embodiment, wherein the log processing apparatus further comprising: a call chain determining module, configured to obtain the identifier obtaining module and the module is repeated to find each of the error log to find the process, the server extracts the identifiers of the current server error log corresponding to the extracted plurality of servers, the front end of the error server, said error source server relationship in accordance with the composition of the call request corresponding to the current call server error chain.

[0013]结合第一方面第三种可能的实施方式,本发明实施例提供了第一方面第五种可能的实施方式,其中,所述日志处理装置还包括:次数统计模块,用于根据各个请求对应的各个所述来源错误日志中的系统标识确定各个所述来源错误日志对应的系统,将各个所述来源错误日志对应的系统所包含的来源错误日志的数量作为各个所述来源错误日志对应的系统的错误次数,以及,用于根据各个请求对应的各个所述前端错误日志中的系统标识确定各个所述前端错误日志对应的系统,将各个所述前端错误日志对应的系统所包含的前端错误日志的数量作为各个所述前端错误日志对应的系统的错误次数;标识统计模块,用于将各个所述来源错误日志对应的系统所包含的来源错误日志中的错误标识对应记录为各个所述来源错误日志对应的系统出现的错误标识,以及, [0013] A third aspect of binding a first possible embodiment, the embodiment of a first aspect the present invention provides a fifth possible embodiment, wherein the log processing apparatus further comprising: frequency calculating module, according to the respective the system identifies the source of each of the error log request corresponding to each of the sources is determined corresponding to the system error log, the number of source error log of each of said source log corresponding to the error included in the system, as each of said source log corresponding to the error number of errors of the system, and means for determining the respective corresponding front end of the system error log identification system according to each of the front end of each error log request corresponding to the front end of each of the front end corresponding to the error logging system contains number of errors as the number of error logs each error log corresponding to the front end of the system; statistical identification means for identifying the source of the error logs each error corresponding to the error log source system included in the record corresponding to each of the identify the source of the error corresponding to the system error log appears, and, 各个所述前端错误日志对应的系统所包含的前端错误日志中的错误标识对应记录为各个所述前端错误日志对应的系统出现的错误标识;信息发送模块,用于向各个所述来源错误日志对应的系统的负责人发送错误提醒信息,以及,向各个所述前端错误日志对应的系统的负责人发送错误提醒信息,所述错误提醒信息包括对应系统的系统名称、所述系统出现的错误次数以及所述系统出现的错误标识。 Misidentification front end of the front end of each log the error corresponding to error logging system included in the record corresponding to each of said distal misidentification errors occurring in the system corresponding to the log; information sending module, configured to correspond to each of said source error log the system responsible for transmitting information about the error, and transmitting information about the error, said error information comprises a system name corresponding to alert the system to the head of each of the front end of the system corresponding to the error log, the number of errors occurring in the system, and the system identification error occurring.

[0014]结合第一方面第五种可能的实施方式,本发明实施例提供了第一方面第六种可能的实施方式,其中,所述信息发送模块具体用于:将当前系统出现的错误标识与前次发送错误提醒信息时当前系统出现的错误标识进行比较,判断所述当前系统是否出现新的错误标识,若出现,则向所述当前系统对应的系统负责人发送所述错误提醒信息;若未出现,判断当前时刻与前次发送错误提醒信息时刻之间的时间间隔,若所述时间间隔超过预设时间,则向所述当前系统对应的系统负责人发送所述错误提醒信息。 [0014] connection with the first aspect of the fifth possible embodiment, a first embodiment provides a possible aspect of the sixth embodiment of the present invention, wherein the information transmitting module is configured to: identify the current error occurring in the system when misidentification with the previous information about the current transmission error occurring in the system, and determines whether the current system is the emergence of new misidentification, if there, the person in charge of the system corresponding to the current system transmits the reminder information error; If it is not, it determines whether the current time and the last time between sending an error alert information time interval if the time interval exceeds a preset time, corresponding to the current system, the system responsible for sending the error message reminder.

[0015]第二方面,本发明实施例提供了一种错误信息定位方法,所述方法包括:各个服务器周期性根据预先定义的错误标识在各自的日志文件中进行查找,得到各自在当前周期内的错误日志集合,将各自在当前周期内的所述错误日志集合上报至日志处理装置;其中,各个所述错误日志集合均包括多行错误日志,每行所述错误日志均包括所属的系统标识、请求标识、请求服务器标识、当前服务器标识、目标服务器标识以及正确性标识,所述正确性标识为正确标识或者所述错误标识;所述日志处理装置接收各个所述服务器上报的各自在当前周期内的所述错误日志集合,按照所述请求标识对接收到的所有所述错误日志集合中的多行错误日志进行分类,得到每个所述请求标识对应的多行错误日志,根据当前请求标识对应的每行所述错误日志中的请求服务器标识、 [0015] In a second aspect, there is provided an embodiment of the method of the present invention, the positioning error, the method comprising: each of the lookup server periodically in the respective log file according to a predefined identification error, the current cycle in each to give error log collection, the respective error log in the current reporting period set to the log processing apparatus; wherein each of said set of error logs error log includes a plurality of rows, each row of the error log comprises identification system belongs request identification, server identification request, this server identification, the server identification and the correctness of the target identifier, the identity or correctness of the identification is correct misidentified; each of said processing means receives the log server in the current period reported by each the error log within the set, classified according to the error log request all of said plurality of rows set identifier received the error logs in, logs the error to obtain a plurality of rows each corresponding to the identifier of the request, according to the current request identifier corresponding to each row of the error log request to the server identification, 前服务器标识和目标服务器标识,确定当前请求对应的错误来源服务器。 Before the target server identification and the server identification, determine the current error corresponding to the request source server.

[0016]结合第二方面,本发明实施例提供了第二面第一种可能的实施方式,其中,根据当前请求标识对应的每行所述错误日志中的请求服务器标识、当前服务器标识和目标服务器标识,确定当前请求对应的错误来源服务器,包括:在所述当前请求标识对应的每行所述错误日志中查找所述请求服务器标识为空的错误日志;获取查找到的所述错误日志中的目标服务器标识,在所述当前请求标识对应的每行所述错误日志中查找将所述目标服务器标识作为当前服务器标识的错误日志;重复所述获取查找到的所述错误日志中的目标服务器标识,以及所述查找将所述目标服务器标识作为当前服务器标识的错误日志的动作,直至查找到的将所述目标服务器标识作为当前服务器标识的错误日志不存在目标服务器标识;确定查找到的不存在目标服务器标识的所述错误日志为所 [0016] combination with the second aspect, the second embodiment provides a first face of a possible embodiment of the invention, wherein the server request based on the current request to the error log identify each row corresponding to the identifier of the current and target server identification server identification, determine the current error corresponding to the request source server, comprising: searching for the error log request to the server identified as a blank in each row corresponding to the identifier of the error log of the current request; to find the acquired error log the target server identifier, the lookup server ID as the target current error log server identified in the error log for each row corresponding to the identifier of the current request; repeating the acquiring the error log to the target server identification, and the identification server to find the target server identified as an error log of the current operation, until the found identifying the target server as a current error log server identified target server identification is absent; found not determined the error log is identified by the presence of the target server 述当前请求对应的来源错误日志,将所述来源错误日志中的当前服务器标识对应的服务器确定为所述当前请求对应的错误来源服务器。 The current source of said request corresponding to the error log, the server identifies the current sources corresponding to the error log server determines the current request to the server corresponding to the source of the errors.

[0017]结合第一方面第一种可能的实施方式,本发明实施例提供了第一方面第二种可能的实施方式,其中,根据当前请求标识对应的每行所述错误日志中的请求服务器标识、当前服务器标识和目标服务器标识,确定当前请求对应的错误来源服务器,还包括:若在各个所述服务器上报的各自在预设数量周期内的所述错误日志集合中均查找不到将所述目标服务器标识作为当前服务器标识的错误日志,则将所述目标服务器标识所在的错误日志确定为所述当前请求对应的来源错误日志,将所述来源错误日志中的当前服务器标识对应的服务器确定为所述当前请求对应的错误来源服务器。 [0017] combination with the first aspect of the first possible embodiment, the present embodiment of the first aspect of the invention provides a second possible embodiment, in which the current request identifier corresponding to each row of the error log request to the server identification, server identification and the current target server identification, determine the current error corresponding to the request source server, further comprising: if the server is reported in each of said respective predetermined number of cycles within the set of error logs are not locate the said target server ID as the server ID of the current error logs, error logs where the target server identification is then the determination of the current source error log request corresponding to the determined current source server identification corresponding to the error log server the current request is the source of the error corresponding to the server.

[0018]本发明实施例中的错误信息定位系统及方法,错误日志中包括请求标识、请求服务器标识、当前服务器标识和目标服务器标识,其中请求标识对应各个用户请求,请求服务器标识对应调用当前服务器的服务器,当前服务器标识对应当前服务器,目标服务器标识对应当前服务器调用的服务器,基于该种错误日志的定义方式,日志处理装置能够根据当前请求标识对应的每行错误日志中的请求服务器标识、当前服务器标识和目标服务器标识,确定当前请求对应的错误来源服务器,从而缓解现有技术中通过人工进行错误排查的方式具有时间长、效率低、人工成本高的缺陷。 [0018] Error messages positioning system and method in the embodiment of the present invention, error log includes a request identifier, the requesting server identifier, the current server ID and destination server identification, wherein the request identifier corresponding to each user request, the request server identifies the corresponding call to the current server server, the current server identification corresponding to the current server, the destination server corresponding to the identification server is the current server call, defined manner based on the kind of the error log, the log processing apparatus according to the current request requesting server identify each row error log identifier corresponding to the current the target server identification and server identification, determine the current error corresponding to the request source server, thereby alleviating the prior art a long time, low efficiency and high cost of artificial defects by way of doing error troubleshooting.

[0019]为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。 [0019] For the above-described objects, features and advantages of the present invention can be more fully understood by reading the following preferred embodiments, and accompanied with figures are described in detail below.

附图说明 BRIEF DESCRIPTION

[0020]为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。 [0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings are briefly introduced as required for use in the embodiments describing the embodiments, it should be understood that the appended drawings illustrate only certain embodiments of the present invention. therefore not to be considered as limiting the scope of those of ordinary skill in the art is concerned, without creative efforts may still obtain other drawings according to these drawings.

[0021]图1示出了本发明实施例所提供的错误信息定位系统的模块组成示意图; [0021] FIG. 1 shows a module of the present invention the error information provided by the positioning system according to a schematic embodiment the composition;

[0022]图2示出了本发明实施例所提供的日志处理装置的模块组成示意图; [0022] FIG. 2 shows a module according to the present invention, the log processing apparatus according to an embodiment schematic view of the composition;

[0023]图3示出了本发明实施例所提供的错误信息定位方法的模块组成示意图。 [0023] FIG. 3 illustrates a module of the present invention is a method of positioning error embodiment the composition provides a schematic embodiment.

具体实施方式 Detailed ways

[0024]为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 [0024] In order that the invention object, technical solutions, and advantages of the embodiments more clearly, the following with examples accompanying drawings embodiments of the present invention, the technical solutions in the present invention are clearly and completely described, obviously, the described Example embodiments are merely part of embodiments of the present invention rather than all embodiments. 通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。 Components of an embodiment of the present invention is generally described herein and illustrated in the drawings can be arranged and designed in a variety of different configurations. 因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。 Accordingly, the following detailed description of the invention provided in the drawings embodiments is not intended to limit the scope of the invention claimed, but is merely representative of selected embodiments of the present invention. 基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of the present art in the art without creative efforts shall fall within the scope of the present invention.

[0025]考虑到现有技术中,通过人工进行错误排查的方式具有时间长、效率低、人工成本高的缺陷,本发明提供了一种错误信息定位系统及方法,下面通过实施例进行具体描述。 [0025] Considering the prior art, has for a long time, low efficiency, high labor costs, by way of an artificial defect investigation of the error, the present invention provides a system and method for locating an error message will be concretely described by way of embodiments .

[0026]图1示出了本发明实施例所提供的错误信息定位系统的模块组成示意图,如图1所示,该系统包括日志处理装置10,与日志处理装置10分别连接的多个服务器20,多个服务器20分别对应各自的系统; [0026] FIG. 1 shows a module of the present invention the error information provided by the positioning system according to the composition of a schematic embodiment shown in Figure 1, the system 10 includes a plurality of server 20, and log log processing apparatus 10 are connected to the processing means , respectively corresponding to a respective plurality of server systems 20;

[0027]各个服务器20分别用于,周期性根据预先定义的错误标识在各自的日志文件中进行查找,得到各自在当前周期内的错误日志集合,将各自在当前周期内的错误日志集合上报至日志处理装置10; [0027] 20, respectively, for each server periodically looked up in respective log file according to a predefined identification error, the error log to obtain each set in the current cycle, the respective error log in the current reporting period to set log processing apparatus 10;

[0028]其中,各个错误日志集合均包括多行错误日志,每行错误日志均包括所属的系统标识、请求标识、请求服务器标识、当前服务器标识、目标服务器标识以及正确性标识,该正确性标识为正确标识或者上述的错误标识; [0028] wherein each set of error logs error log includes a plurality of rows, each row includes a system identification error log belongs, request identification, server identification request, this server identification, the server identification and the target identification accuracy, the accuracy of the identification correct identification misidentified or above;

[0029]日志处理装置10用于,接收各个服务器20上报的各自在当前周期内的错误日志集合,按照上述请求标识对接收到的所有错误日志集合中的多行错误日志进行分类,得到每个请求标识对应的多行错误日志,根据当前请求标识对应的每行错误日志中的请求服务器标识、当前服务器标识和目标服务器标识,确定当前请求对应的错误来源服务器。 [0029] Log processing means 10 for receiving a respective set of error log in the current period reported by the respective servers 20, all in accordance with the above-described set of error logs received request identifies a plurality of rows in the error log classified, to give each a plurality of rows corresponding to the error log request identifier, in accordance with the current request requesting the server identifier identifying each row corresponding to the error log, the current target server identification and the server identification, the server determines that the current source of the error corresponding to the request.

[0030]如图1所示,部分服务器20属于系统A,部分服务器20属于系统B,部分服务器20属于系统C,多个系统共用一个日志处理装置10。 [0030] 1, the part 20 belonging to the system server A, the server section 20 belonging to System B, part of the server 20 belongs to System C, a plurality of systems share a log processing unit 10. 每个服务器20定时扫描各自的日志文件,如每一分钟扫描一次日志文件,该日志文件中包括多行日志,每行日志均按照如下格式定义:[0031 ][请求标识][日期日志级别][请求服务器标识][当前服务器标识][目标服务器标识][正确性标识]系统标识:服务标识.方法标识; Each server 20 scans the timing of the respective log file, such as once every minute scan log file, the log file in the log includes a plurality of rows, each row logs are defined according to the following format: [0031] [request identifier] [log level Date] [requesting server identifier] [current server identifier] [destination server identifier] [correctness flag] system identifier: service identity identifying method;

[0032]比如:[2876375639892834][2008-08-01 09:37:22 024INF0] [ 10.0.I.23][10.0.1.51][10.0.1.59][315Jtrade:OrderServiceImpl.ere ate0rder(334)。 [0032] For example: [2876375639892834] [2008-08-01 09:37:22 024INF0] [10.0.I.23] [10.0.1.51] [10.0.1.59] [315Jtrade: OrderServiceImpl.ere ate0rder (334).

[0033] 其中,请求标识可以是请求ID(identificat1n,身份识别符),用于标识该条日志对应的用户的请求,日期指该条日志的生成日期,日志级别指该条日志的级别,比如Debug或者INF0,请求服务器标识是请求服务器IPdnternet Protocol,网络地址),当前服务器标识是当前服务器IP,目标服务器标识是目标服务器IP,正确性标识用于标识该条日志是正确日志还是错误日志,当该条日志是正确日志时,正确性标识为正确标识,如O,当该条日志是错误日志时,正确性标识为错误标识,如315,错误标识是预先定义好的,用于表示该条日志的错误类型,系统标识可以是该条日志对应的系统名称,服务标识可以是该条日志对应的服务名称,方法标识可以是该条日志对应的方法名称。 [0033] wherein the request identifier may be a request ID (identificat1n, identity identifier) ​​for the user log to identify the entry corresponding to the request, refers to the date of the generation date when the log, the log when the log level refers to the level, such as Debug or INF0, identified the requesting server is a request to the server IPdnternet Protocol, network address), identifies the current server is the current server IP, destination server identifies the target server IP, correctness identifier to indicate when the log is correct log or error log, when when the log when the log is correct, the correctness of the identification of the correct identification, such as O, when the error log when the log is, the identification accuracy of misidentification, such as 315, misidentification is predefined to represent the article log the type of error, the system may be a system identification name of the article corresponding to the log, when the log may be a service identifier corresponding to the service name, the article may be a way to identify the method name corresponding to the log.

[0034]其中,请求服务器指的是调用当前服务器的服务器,目标服务器指的是当前服务器调用的服务器,比如,服务器A为第一个服务器,服务器A调用服务器B,服务器B调用服务器C,服务器C为最后一个服务器,则在服务器A的日志中,请求服务器为空,当前服务器为A,目标服务器为B,在服务器B的日志中,请求服务器为A,当前服务器为B,目标服务器为C,在服务器C的日志中,请求服务器为B,当前服务器为C,目标服务器为空。 [0034] wherein the request server is the current server call to the server, the target server is the current server is called a server, such as server A is the first server, server A call server B, server B calls C the server, the server C is the last server, the log server a, the requesting server is empty, the current server a, the destination server B, the log server B, requesting server a, the current server B, the target server is a C , C log server, the server requests is B, C is the current server, the target server is empty.

[0035]为了方便各个服务器检索各自的日志,本实施例中,优选各个服务器中各个日志的地址统一,比如统一为:/0pt/logS/系统名.日期.log,各个服务器中各个日志的名称统一,比如同一系统的日志名称按天分割确定,如:交易系统日志文件地址可以设置为: [0035] In order to facilitate each individual server retrieves the log, in this embodiment, the respective addresses of the respective unified log server in the present preferred embodiment, such as unified:. / 0pt / logS / date .log system name, the name of each server of each log unity, such as logging system of the same name by the day to determine the division, such as: trading system log file location can be set to:

[0036] /opt/logs/trade.2016-08-01.log [0036] /opt/logs/trade.2016-08-01.log

[0037] /opt/logs/trade.2016-08-02.log [0037] /opt/logs/trade.2016-08-02.log

[0038] /opt/logs/trade.2016-08-03.log。 [0038] /opt/logs/trade.2016-08-03.log.

[0039]服务器20在日志文件中查找,将包括上述错误标识的日志作为错误日志提取出来,提取出来的多行错误日志组成错误日志集合,各个服务器20将各自当前周期内的错误日志集合上报至日志处理装置10。 [0039] The server 20 looks in the log file, including a log above misidentified as a multi-line error logs error log is extracted, the extracted composition of error log collection, each server 20 to the error log in the respective current period set reported to the log processing apparatus 10. 一种优选的实施方式中,服务器20还将每个错误日志的详细错误信息随错误日志一起上报至日志处理装置10。 A preferred embodiment, the detailed error information for each error log server 20 also reports the error log to the log along with the processing apparatus 10.

[0040]日志处理装置10按照各行错误日志中包含的请求标识对接收到的所有错误日志进行分类,得到每个请求标识对应的多行错误日志。 [0040] Log processing apparatus 10 are classified by identifying all error log requests received each row contains the error log, log the error to obtain a plurality of rows each corresponding to the request identification. 图2示出了本发明实施例所提供的日志处理装置10的模块组成示意图,如图2所示,日志处理装置10包括查找模块101、标识获取模块102、重复模块103和错误来源服务器确定模块104,各个模块的功能如下: Figure 2 shows a log processing module of the present invention apparatus 10 is provided consisting of a schematic embodiment shown in Figure 2, apparatus 10 includes a lookup log processing module 101, an identifier obtaining module 102, module 103 and the source of the errors repeat determination server module 104, the function of each module are as follows:

[0041 ]查找模块101,用于在当前请求标识对应的每行错误日志中查找请求服务器标识为空的错误日志; [0041] The searching module 101, for each line current error log request identifier corresponding to the search request to the server identified in the error log is empty;

[0042]标识获取模块102,用于获取查找到的错误日志中的目标服务器标识,在当前请求标识对应的每行错误日志中查找将该目标服务器标识作为当前服务器标识的错误日志; [0042] identifier obtaining module 102, configured to obtain the target server identification is found in the error log, looking up in each line current error log request identifier corresponding to the destination server identifier as the server identifier of the current error log;

[0043]重复模块103,用于重复标识获取模块102的动作,直至查找到的将该目标服务器标识作为当前服务器标识的错误日志不存在目标服务器标识; [0043] The module 103 is repeated for repeatedly acquiring module 102 identifies the action, until you find the destination server identifies the error log as the current target server identifier identifying the server does not exist;

[0044]错误来源服务器确定模块104,用于确定查找到的不存在目标服务器标识的错误日志为当前请求对应的来源错误日志,将该来源错误日志中的当前服务器标识对应的服务器确定为当前请求对应的错误来源服务器。 [0044] Origin server error determination module 104 for determining the error log to find the identity of the target server does not exist for the current source of the request corresponding to the error log, to determine the current source error log server corresponding to the server identifier for the current request the corresponding error source server.

[0045] 具体地,由于在请求处理过程中,第一个响应请求的服务器没有对应的请求服务器,因此该服务器的日志中不存在请求服务器标识,因此在当前请求标识对应的多行错误日志中查找请求服务器标识为空的错误日志,产生该错误日志的服务器就是第一个响应请求的服务器,称为前端错误服务器,该错误日志称为前端错误日志。 [0045] In particular, since the server requests the request processing, in response to the first request does not correspond to the server, so that server's log does not exist in the requesting server identifier, and therefore requests a plurality of rows corresponding to the error log identifier in the current server identifier search request error log is empty, generating the error log server is the server in response to a first request, referred to as the front end server error, the error log referred distal error log.

[0046]如图2所示,本实施例中的日志处理装置10还包括:前端错误服务器确定模块105,用于将查找模块101查找到的错误日志确定为当前请求对应的前端错误日志,将前端错误日志中当前服务器标识对应的服务器作为当前请求对应的前端错误服务器。 [0046] 2, log processing apparatus in embodiment 10 of the present embodiment further comprises: a front end server error determination module 105, configured to find the searching module 101 determines the current error log request corresponding to the front end of the error log, the the front end of this error log server as the server identification corresponding to the current request corresponding front-end server error.

[0047]在确定前端错误日志后,由于前端错误日志中记录有目标服务器标识,该目标服务器标识对应的服务器就是前端错误服务器调用的服务器,因此获取查找到的错误日志中的目标服务器标识,在当前请求标识对应的每行错误日志中查找将该目标服务器标识作为当前服务器标识的错误日志,从而得到与前端错误日志具有调用关系的错误日志。 [0047] After determining the front end of the error log, since the front end error log target server identifier, the destination server corresponding to the identification server is the server front end of the wrong server calls, thus obtaining the target server identification found in the error log, the current request identifier corresponding to each row of the error log to find the target server ID as the server ID of the current error log, thereby obtaining the error log having a call relationship with the front end of the error log.

[0048]在获取到与前端错误日志具有调用关系的错误日志后,按照上述的查找方法,继续获取查找到的错误日志中的目标服务器标识,以及在当前请求标识对应的每行错误日志中查找将该目标服务器标识作为当前服务器标识的错误日志,从而逐层查找具有调用关系的日志。 [0048] After obtaining the error log having a call relationship with the front end of the error log, according to the above discovery methods, continue to acquire the target server identification found in the error log, and find in each row error log the current request identifier corresponding to the target server error log to identify as the current server ID, layer by layer in order to find the log has a call relationship.

[0049]当查找到的错误日志不存在目标服务器标识时,说明该错误日志为最后一个被调用的日志,该错误日志对应的服务器在调用下一个服务器时发生了错误,导致下一个服务器调用失败,从而错误日志中没有记录目标服务器标识。 [0049] When it finds an error log target server identification does not exist, indicating the error log is the last to be called the log, the error log corresponding server error occurred calling the next server, the next led to a server call fails so that no records to identify the target server error log. 因此,将查找到的不存在目标服务器标识的错误日志确定为当前请求对应的来源错误日志,将该来源错误日志中的当前服务器标识对应的服务器确定为当前请求对应的错误来源服务器。 Thus, the error log to find the target server identification is determined as the current source of the request corresponding to the error log, to determine the source of the error log server ID corresponding to the current server is the current server corresponding to the request source of error does not exist.

[0050]本实施例中,获取标识获取模块102和重复模块103在查找过程中查找到的各个错误日志,将标识获取模块102和重复模块103查找得到的各个日志,以及上述前端错误日志和上述来源错误日志按照各自之间的调用关系串接起来,能够得到当前请求对应的错误日志调用链。 [0050] In this embodiment, obtains the identification obtaining module 102 and a repetition module 103 found during the search in each of the error log, the identifier obtaining various log module 102 and repetition module 103 to find obtained, and said distal error log and said source according to the error log of call relationship between the respective connected in series, the error log can be obtained corresponding to the current request call chain.

[0051]如图2所示,本实施例中的日志处理装置10还包括:调用链确定模块106,用于获取标识获取模块102和重复模块103在查找过程中查找到的各个错误日志,提取各个错误日志中的当前服务器标识对应的服务器,将提取到的多个服务器、前端错误服务器、错误来源服务器按照调用关系组成当前请求对应的错误服务器调用链。 [0051] 2, log processing apparatus in embodiment 10 of the present embodiment further comprises: determining call chain module 106, configured to obtain the identification obtaining module 102 and the module 103 is repeated during the search to find the respective error logs, extraction each error log server identifier corresponding to the current server, the extracted plurality of servers, the front end server error, the error source server relationship in accordance with the call server call chain consisting error current corresponding to the request.

[0052]具体地,获取标识获取模块102和重复模块103在查找过程中查找到的各个错误日志,确定产生该各个错误日志的服务器,将产生该各个错误日志的服务器、前端错误服务器、错误来源服务器按照调用关系串接起来,组成当前请求对应的错误服务器调用链。 [0052] Specifically, obtain identification obtaining module 102 and a repetition module 103 found during the search in the respective error logs, determined to generate the respective error log server will generate the respective error log server, front end error server, the error sources connected in series in accordance with the call server relationship, consisting of a server error call chain corresponding to the current request.

[0053] 本实施例中,错误日志中包括请求标识、请求服务器标识、当前服务器标识和目标服务器标识,其中请求标识对应各个用户请求,请求服务器标识对应调用当前服务器的服务器,当前服务器标识对应当前服务器,目标服务器标识对应当前服务器调用的服务器,基于该种错误日志的定义方式,日志处理装置10能够根据当前请求标识对应的每行错误日志中的请求服务器标识、当前服务器标识和目标服务器标识,确定当前请求对应的错误来源服务器,从而缓解现有技术中通过人工进行错误排查的方式具有时间长、效率低、人工成本尚的缺陷。 [0053] In this embodiment, the error log includes a request identifier, the requesting server identifier, the current server ID and destination server identification, wherein the request identifier corresponding to each user request, the request server identifies the corresponding call to the current server's server, this server identifier corresponding to the current server, the destination server corresponding to the identification server is the current server call, define how this kind of error log based on the log processing device 10 in accordance with each row the error log this request to identify the corresponding request in the server identification, the current server ID and destination server identification, determining a current error corresponding to the request source server, thus alleviating a long time, inefficient, labor cost still having the drawbacks of the prior art by way of doing error troubleshooting.

[0054]本实施例中,根据各行错误日志中的请求服务器标识、当前服务器标识和目标服务器标识在各行错误日志中进行查找,能够快速得到各个请求对应的前端错误服务器、错误来源服务器,以及错误服务器调用链,还能够得到各个请求对应的前端错误日志、来源错误日志和以及错误日志调用链,从而准确定位到错误来源对应的服务器,达到快速、高效的在分布式系统中定位错误服务器的效果。 [0054] In this embodiment, in accordance with each row in the error log request to the server identification, the current server ID and destination server identification to find in each row error log, you can quickly obtain distal error server each request corresponding to the error source server, and the error server call chain, is also possible to obtain a front end of each request corresponding to the error log, source and error logs and error logs the call chain to accurately locate the source of the error corresponding to the server, to achieve rapid and efficient positioning server error effect in the distributed system .

[0055]本发明实施例针对分布式应用中服务调用层级过多、通过集群部署服务的系统,能对实现对日志错误的快速定位,缩短从错误发生到定位错误的定位时间,与现有技术相比,本实施例具有错误信息定位快速、准确、减少人工劳动的优势。 [0055] Example embodiments of the present invention is directed to a distributed application service call excessive level, cluster deployments and services through the system, can be positioned from the positioning error to the wrong time, and the prior art for achieving rapid positioning error log, shortening compared to the present embodiment has a positioning error quickly and accurately, the advantage of reducing manual labor.

[0056]由于各个服务器定时扫描错误日志、将错误日志和每个错误日志的详细错误信息上报至日志处理装置10,因此存在服务器扫描错误日志并上报时,当前服务器调用了下一个服务器,然而下一个服务器还没有生成日志的情况,也即,服务器A调用服务器B,服务器B调用服务器C,服务器B中记录有错误日志,其中请求服务器为A,当前服务器为B,目标服务器为C,服务器B调用成功,然而在服务器定时扫描错误日志并上报时,服务器C中还没有生成错误日志,这时就存在上述重复模块103查找不到将目标服务器标识作为当前服务器标识的错误日志,也即查找不到服务器C生成的错误日志。 [0056] Since the scanning timing of the respective server error log, the detailed error information and error logs each error log to the log reporting processing apparatus 10, there is a scan server and reports the error log, the next current server calls the server, but the a server has not been generated log message, i.e., server a call server B, server B calls the server C, the server B is recorded in the error log, wherein the request server a, the current server B, the target server is C, the server B when the call is successful, however, the timing of the scan and reports the error log server, server C has not generated an error log, then there is the repeating module 103 can not find the destination server identification error as the current log server identifier, i.e. the Find to the server's error log generated C. 针对这种情况,图2中的错误来源服务器确定模块104还用于,若重复模块103在各个服务器上报的各自在连续预设数量周期内的错误日志集合中均查找不到将目标服务器标识作为当前服务器标识的错误日志,则将目标服务器标识所在的错误日志确定为当前请求对应的来源错误日志,将来源错误日志中的当前服务器标识对应的服务器确定为当前请求对应的错误来源服务器。 , FIG. 2 module 104 determines the error source server is further configured to address this situation, if the module 103 are repeated in each successive lookup preset number of cycles set in the respective error logs reported by the server can not be identified as the target server the current server's error log to identify the error log to identify the target server will determine where the source of the error log for the current request corresponding to the current server error log to identify the source of the corresponding server identified as the source of the error corresponding to the server for the current request.

[0057]具体地,连续预设数量周期可以为3个周期,如果重复模块103在三个连续周期内都查找不到将目标服务器标识作为当前服务器标识的错误日志,则确定来源错误日志为目标服务器标识所在的错误日志,错误来源服务器为来源错误日志对应的服务器。 [0057] Specifically, a predetermined number of successive cycles may be three cycles, if the module 103 are repeated in three consecutive cycles to find the less than the target current error log server ID as the server ID, determining the source of the error log for the target server's error log to identify where the error source server error log for the source of the corresponding server.

[0058]进一步地,为了便于通知系统负责人及时处理错误,如图2所示,本实施例中的日志处理装置10还包括: [0058] Further, in order to facilitate the timely notification system responsible for handling errors, 2, log processing apparatus in embodiment 10 of the present embodiment further comprises:

[0059]次数统计模块107,用于根据各个请求对应的各个来源错误日志中的系统标识确定各个来源错误日志对应的系统,将各个来源错误日志对应的系统所包含的来源错误日志的数量作为各个来源错误日志对应的系统的错误次数,以及,用于根据各个请求对应的各个前端错误日志中的系统标识确定各个前端错误日志对应的系统,将各个前端错误日志对应的系统所包含的前端错误日志的数量作为各个前端错误日志对应的系统的错误次数; [0059] The number counting module 107, for determining the respective corresponding system error log source system according to the identifiers of the request sources corresponding to the respective error logs in, the number of source error log corresponding to each source of error log as each system comprising number of errors corresponding to the error log source system, and for determining the respective corresponding front end of the system error log identification system according to the respective distal end of each error log request corresponding to the front end of the front end of the respective error logs error log corresponding system contains as the number of system error log corresponding to the respective distal number of errors;

[0060]标识统计模块108,用于将各个来源错误日志对应的系统所包含的来源错误日志中的错误标识对应记录为各个来源错误日志对应的系统出现的错误标识,以及,将各个前端错误日志对应的系统所包含的前端错误日志中的错误标识对应记录为各个前端错误日志对应的系统出现的错误标识; Misidentification [0060] Statistics identification module 108 identifies the source of error for the error log corresponding to each source of error log in the system contains records for each corresponding source log corresponding to the error occurring in the system, and the respective distal error log corresponding to the front end system error log contained in the error corresponding to the identifier is recorded as error log misidentification of the respective corresponding front end system appears;

[0061]信息发送模块109,用于向各个来源错误日志对应的系统的负责人发送错误提醒信息,以及,向各个前端错误日志对应的系统的负责人发送错误提醒信息,错误提醒信息包括对应系统的系统名称、该系统出现的错误次数以及该系统出现的错误标识。 [0061] The information transmission module 109, responsible for the respective sources corresponding to the system error log information about the transmission error, and transmits the error message to alert the person in charge corresponding to the respective distal end system error log, including information about the corresponding system error system name, the number of errors occurring in the system as well as identifying the error occurring in the system. 其中系统标识可以是系统名称。 The system may be a system which identifies the name.

[0062]具体地,次数统计模块107统计各个来源错误日志对应的系统的错误次数,错误次数等于系统中来源错误日志的数量,并统计各个前端错误日志对应的系统的错误次数,错误次数等于系统中前端错误日志的数量。 Error count number of errors [0062] Specifically, the number count module 107 Statistics respective source error log corresponding to the system, the number of errors is equal to the number of source error log in the system, and counts the respective distal error log corresponding to the system, the number of errors equal to the system the number of front-end error log.

[0063]标识统计模块108统计各个来源错误日志对应的系统出现的错误标识,错误标识为系统所包含的来源错误日志中出现的错误标识,同理统计各个前端错误日志对应的系统出现的错误标识,错误标识为系统所包含的前端错误日志中出现的错误标识。 [0063] Statistics identification module 108 identifies the various statistical errors corresponding to the error log source occurring in the system, the source of the error log misidentification system identification error occurring included, similarly identified statistical errors corresponding to each of the front end system error log appears , distal misidentification misidentified system error log contained occurring.

[0064]信息发送模块109分别向各个来源错误日志对应的系统的负责人发送错误提醒信息,以及,向各个前端错误日志对应的系统的负责人发送错误提醒信息。 [0064] The person in charge of information transmission module 109 corresponding to the respective source of system error log information about the transmission error, and transmits the error message to alert the person in charge corresponding to the respective distal end system error log. 其他优选的实施方式中,以各个来源错误日志对应的系统的负责人为例,向系统负责人发送短信和邮件,短信中包括对应系统的系统名称、该系统出现的错误次数,邮件中包括对应系统的系统名称、该系统出现的错误次数以及该系统出现的错误标识,从而使短信起到提醒作用,邮件起到详细告知作用。 Other preferred embodiments, the people in charge of the various sources of error log corresponding system, for example, send text messages and e-mail to the person responsible for the system, text messaging is included in the system corresponding to the name of the system, the number of errors the system appears, the message includes a corresponding system system name, the number of errors occurring in the system and the system identifies an error occurs, so that the text message reminder to play the role, the role e-mail plays fully informed.

[0065]系统的负责人接收到错误提醒信息后,能够在日志处理装置10中查询具体的错误情况,从而解决错误。 Leader [0065] System error after receiving the alert message, to query the specific error conditions in the log of the processing apparatus 10, to resolve the error.

[0066]有些情况下,分布式系统中每隔几分钟就可能报错,该种情况下,为了避免向系统的负责人发送错误提醒信息的时间间隔过短,信息发送模块109具体用于: [0066] In some cases, a distributed system may be given every few minutes, in this case, in order to avoid erroneous information about the transmission time of the person in charge of system interval is too short, the information sending module 109 is specifically configured to:

[0067]将当前系统出现的错误标识与前次发送错误提醒信息时当前系统出现的错误标识进行比较,判断当前系统是否出现新的错误标识,若出现,则向当前系统对应的系统负责人发送错误提醒信息; [0067] The misidentification misidentification of the current and previous system has sent the wrong message to remind the current system appears compares the current system to determine whether there is a new error identification, if there is sent to the person in charge of the current system corresponds to the system error message reminders;

[0068]若未出现,判断当前时刻与前次发送错误提醒信息时刻之间的时间间隔,若该时间间隔超过预设时间,如半个小时,则向当前系统对应的系统负责人发送错误提醒信息。 [0068] If it is not, determines whether the current time and the last time between sending an error alert information time interval if the time interval exceeds a preset time, such as the system responsible for half an hour, then the corresponding error alert to the current transmission system information.

[0069]上述当前系统是任意一个来源错误日志对应的系统,或者任意一个前端错误日志对应的系统。 [0069] The current system is a source of error log in any corresponding system, a headend or any corresponding system error log. 通过信息发送模块109的比较判断过程,能够保证当某个系统有新的错误出现时,及时告知系统负责人,当某个系统没有新的错误出现时,间隔预设时间如半个小时向系统负责人发送错误提醒信息,提醒系统负责人及时解决错误。 By comparing the information sending module 109 of the judgment process, to ensure that when a system error occurs when there is a new, timely inform the person in charge of the system, when a new system is not an error, such as a preset time interval for half an hour to the system person in charge of sending the wrong message to remind, remind the person in charge of the system in a timely manner to resolve the error.

[0070]本实施例中,向各个来源错误日志对应的系统的负责人发送错误提醒信息,能够便于各个前端错误日志对应的系统的负责人应对用户的询问,实现在用户询问错误之前了解错误原因,及时响应用户询问,向各个前端错误日志对应的系统的负责人发送错误提醒信息,能够使错误得到快速解决。 [0070] In this embodiment, the person in charge to each source error log corresponding system transmits error information about, can facilitate charge respective distal error log corresponding system response user inquiry achieve know about the error before the user query errors and timely response to user inquiries, send an error message reminders can make mistakes resolved quickly to the person in charge of each front-end system corresponding to the error log.

[0071]对应图1中的错误信息定位系统,本发明实施例还提供了一种错误信息定位方法,如图3所示,该方法包括: [0071] The error message corresponding to the positioning system of FIG. 1, an embodiment of the present invention further provides a method of locating an error message, shown in Figure 3, the method comprising:

[0072]步骤S301,各个服务器周期性根据预先定义的错误标识在各自的日志文件中进行查找,得到各自在当前周期内的错误日志集合,将各自在当前周期内的错误日志集合上报至日志处理装置; [0072] step S301, the server periodically according to various predefined identification error in each log file to find, to give each log an error in the current collection period, each of the error log in the current period reported to the log processing set means;

[0073]其中,各个错误日志集合均包括多行错误日志,每行错误日志均包括所属的系统名称、请求标识、请求服务器标识、当前服务器标识、目标服务器标识以及正确性标识,该正确性标识为正确标识或者上述错误标识; [0073] wherein each set of error logs error log includes a plurality of rows, each row includes a system error log name belongs, request identification, server identification request, this server identification, the server identification and the target identification accuracy, the accuracy of the identification above is correctly identified or misidentified;

[0074]步骤S302,日志处理装置接收各个服务器上报的各自在当前周期内的错误日志集合,按照请求标识对接收到的所有错误日志集合中的多行错误日志进行分类,得到每个请求标识对应的多行错误日志,根据当前请求标识对应的每行错误日志中的请求服务器标识、当前服务器标识和目标服务器标识,确定当前请求对应的错误来源服务器。 [0074] step S302, the log processing apparatus receives a respective set of error log in the current period reported by the respective servers, all classified according to the error log request identifies a set of the received multi-line error log, each request corresponding to the identifier obtained multi-line error log request requesting the server based on the current error log identify each row corresponding to the identifier of the current target server identification and server identification, determine the current error corresponding to the request source server.

[0075] 本实施例中,错误日志中包括请求标识、请求服务器标识、当前服务器标识和目标服务器标识,其中请求标识对应各个用户请求,请求服务器标识对应调用当前服务器的服务器,当前服务器标识对应当前服务器,目标服务器标识对应当前服务器调用的服务器,基于该种错误日志的定义方式,日志处理装置10能够根据当前请求标识对应的每行错误日志中的请求服务器标识、当前服务器标识和目标服务器标识,确定当前请求对应的错误来源服务器,从而缓解现有技术中通过人工进行错误排查的方式具有时间长、效率低、人工成本尚的缺陷。 [0075] In this embodiment, the error log includes a request identifier, the requesting server identifier, the current server ID and destination server identification, wherein the request identifier corresponding to each user request, the request server identifies the corresponding call to the current server's server, this server identifier corresponding to the current server, the destination server corresponding to the identification server is the current server call, define how this kind of error log based on the log processing device 10 in accordance with each row the error log this request to identify the corresponding request in the server identification, the current server ID and destination server identification, determining a current error corresponding to the request source server, thus alleviating a long time, inefficient, labor cost still having the drawbacks of the prior art by way of doing error troubleshooting.

[0076]步骤S302中,根据当前请求标识对应的每行错误日志中的请求服务器标识、当前服务器标识和目标服务器标识,确定当前请求对应的错误来源服务器,包括: [0076] Step S302, in accordance with each line current error log request identifier corresponding to the request server identification, server identification and the current target server identification, the server determines the source of the error corresponding to the current request, comprising:

[0077] (I)在当前请求标识对应的每行错误日志中查找请求服务器标识为空的错误日志; [0077] (I) at each line current error log request identifier corresponding to the search request to the server identified in the error log is empty;

[0078] (2)获取查找到的错误日志中的目标服务器标识,在当前请求标识对应的每行错误日志中查找将目标服务器标识作为当前服务器标识的错误日志; [0078] (2) to obtain the target server identification to find the error log to find the target server ID as the current error log server identified in each row of the error log request identifier corresponding to the current;

[0079] (3)重复获取查找到的错误日志中的目标服务器标识,以及查找将目标服务器标识作为当前服务器标识的错误日志的动作,直至查找到的将目标服务器标识作为当前服务器标识的错误日志不存在目标服务器标识; [0079] (3) repeatedly obtains the destination server identification found in the error log, and locate the target server identity as the operation of the current error log server identified, until you find the target server identity as an error log of the current server identified identify the target server does not exist;

[0080] (4)确定查找到的不存在目标服务器标识的错误日志为当前请求对应的来源错误日志,将来源错误日志中的当前服务器标识对应的服务器确定为当前请求对应的错误来源服务器。 [0080] (4) determining the error log to find the identity of the target server does not exist corresponding to the request for the current source error log, the current source server identification corresponding to the error log server determines the current error corresponding to the request source server.

[0081 ]其中,根据当前请求标识对应的每行错误日志中的请求服务器标识、当前服务器标识和目标服务器标识,确定当前请求对应的错误来源服务器,还包括: [0081] wherein each row in accordance with the current error log request identifier corresponding to the request server identification, server identification and the current target server identification, the server determines the source of the error corresponding to the current request, further comprising:

[0082]若在各个服务器上报的各自在预设数量周期内的错误日志集合中均查找不到将目标服务器标识作为当前服务器标识的错误日志,则将目标服务器标识所在的错误日志确定为当前请求对应的来源错误日志,将来源错误日志中的当前服务器标识对应的服务器确定为当前请求对应的错误来源服务器。 [0082] If the respective error log collection within a preset number of cycles reported in both individual servers can not find the target server identity as the identity of the current server error log, error log to identify the target server will determine where the current request corresponding to the error log source, the current source server identification corresponding to the error log server determines the current sources of error corresponding to the server request.

[0083]本发明实施例所提供的装置可以为设备上的特定硬件或者安装于设备上的软件或固件等。 [0083] The apparatus may be provided in other embodiments of the present invention for a particular hardware device or software or firmware installed on the device. 本发明实施例所提供的装置,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述方法实施例中相应内容。 Means provided in the embodiment of the present invention, which is the principle and technical effects and the method of producing the same embodiment, as briefly described, the apparatus is not mentioned in the Examples section embodiment, the respective content may Reference Example foregoing method embodiments. 所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,前述描述的系统、装置和单元的具体工作过程,均可以参考上述方法实施例中的对应过程,在此不再赘述。 Those skilled in the art may clearly understand that, for convenience and brevity of description, specific working process systems, devices and units of the foregoing description, reference may correspond to each process in the above-described method embodiments, not described herein again.

[0084]在本发明所提供的实施例中,应该理解到,所揭露装置和方法,可以通过其它的方式实现。 [0084] In an embodiment of the present invention provided herein, it should be understood that the apparatus and methods disclosed may be implemented in other manners. 以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。 Means the above-described embodiments are merely illustrative in nature, e.g., the cell division is merely logical function division, there may be other division in actual implementation, but for example, a plurality of units or components may be combined or It can be integrated into another system, or some features may be ignored or not performed. 另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。 Another point, displayed or coupling or direct coupling or communication between interconnected in question may be coupled through some indirect communication interface unit or the communication means or connection may be electrical, mechanical, or other forms.

[0085]所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。 [0085] The unit described as separate components may be or may not be physically separate, parts displayed as units may be or may not be physical units, i.e. may be located in one place, or may be distributed to a plurality of networks unit. 可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。 You can select some or all of the units according to actual needs to achieve the object of the solutions of the embodiments.

[0086]另外,在本发明提供的实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。 [0086] Further, each functional unit in the present embodiment provided herein may be integrated into one processing unit, separate units may be physically present, may be two or more units are integrated into one unit.

[0087]所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。 The [0087] function are implemented as an independent product sold or used in the form of a software functional unit may be stored in a computer-readable storage medium. 基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。 Based on such understanding, the technical solutions of the present invention per se or contributing to the prior art or part of the technical solutions may be embodied in a software product, which computer software product is stored in a storage medium, comprising several instructions that enable a computer device (may be a personal computer, a server, or network device) to perform all or part of the steps of the methods of the various embodiments of the present invention. 而前述的存储介质包括:U盘、移动硬盘、只读存储器(R0M,Read-0nly Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。 The storage medium includes: U disk, mobile hard disk, a read-only memory (R0M, Read-0nly Memory), a random access various memories (RAM, Random Access Memory), a magnetic disk, or an optical medium can store program codes .

[0088] 应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释,此外,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。 [0088] It should be noted: like reference numerals and letters refer to similar items in the following figures, and thus once an item is defined in one figure, then it need not be in the following figures further defined and interpreting, in addition, the terms "first," "second," "third," etc. are used merely to distinguish description, not to be construed to indicate or imply relative importance.

[0089]最后应说明的是:以上所述实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围。 [0089] Finally, it should be noted that: the above-described embodiments are merely specific embodiments of the present invention to describe the technical solutions of the present invention, rather than limiting, the scope of the present invention is not limited thereto, . Although the present invention has been described in detail embodiments, those of ordinary skill in the art should be understood: any skilled in the art in the art within the scope of the invention disclosed which can still be described in the foregoing embodiments the art to modify the program or changes may be easily thought of, or part of the technical features equivalents; as such modifications, variations or replacements do not cause the essence of corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present invention. 都应涵盖在本发明的保护范围之内。 It shall fall within the scope of the present invention. 因此,本发明的保护范围应所述以权利要求的保护范围为准。 Accordingly, the scope of the present invention should be in the scope of the claims and their equivalents.

Claims (10)

1.一种错误信息定位系统,其特征在于,所述系统包括日志处理装置,与所述日志处理装置分别连接的多个服务器,多个所述服务器分别对应各自的系统; 各个所述服务器分别用于,周期性根据预先定义的错误标识在各自的日志文件中进行查找,得到各自在当前周期内的错误日志集合,将各自在当前周期内的所述错误日志集合上报至所述日志处理装置; 其中,各个所述错误日志集合均包括多行错误日志,每行所述错误日志均包括所属的系统标识、请求标识、请求服务器标识、当前服务器标识、目标服务器标识以及正确性标识,所述正确性标识为正确标识或者所述错误标识; 所述日志处理装置用于,接收各个所述服务器上报的各自在当前周期内的所述错误日志集合,按照所述请求标识对接收到的所有所述错误日志集合中的多行错误日志进行分类, An error message positioning system, wherein said system comprises processing means log, the log server and the plurality of processors are connected to, respectively corresponding to a respective plurality of said server system; each of the servers, respectively It is used, periodically according to a predefined identification error in each log file to find, to give each log an error set in the current cycle, the respective error log in the current reporting period set to the log processing apparatus ; wherein each of said set of error logs error log includes a plurality of rows, each row comprises the system identification error log belongs, request identification, server identification request, this server identification, the server identification and the correctness of the target identifier, the the correctness of the identification is correct or erroneous identification identifier; each said set of error log in the current cycle of the log processing means for receiving respective reported by the server according to the request of all the received identification abutment said multi-line error logs error log classification set, 到每个所述请求标识对应的多行错误日志,根据当前请求标识对应的每行所述错误日志中的请求服务器标识、当前服务器标识和目标服务器标识,确定当前请求对应的错误来源服务器。 To each of the plurality of lines corresponding to the identifier of the error log request, a server request based on the current request to the error log identify each row corresponding to the identifier of the current target server identification and the server identification, the server determines the source of the error corresponding to the current request.
2.根据权利要求1所述的系统,其特征在于,所述日志处理装置包括: 查找模块,用于在所述当前请求标识对应的每行所述错误日志中查找所述请求服务器标识为空的错误日志; 标识获取模块,用于获取查找到的所述错误日志中的目标服务器标识,在所述当前请求标识对应的每行所述错误日志中查找将所述目标服务器标识作为当前服务器标识的错误曰志; 重复模块,用于重复所述标识获取模块的动作,直至查找到的将所述目标服务器标识作为当前服务器标识的错误日志不存在目标服务器标识; 错误来源服务器确定模块,用于确定查找到的不存在目标服务器标识的所述错误日志为所述当前请求对应的来源错误日志,将所述来源错误日志中的当前服务器标识对应的服务器确定为所述当前请求对应的错误来源服务器。 2. The system according to claim 1, wherein the log processing apparatus comprising: a searching module configured to search said each row corresponding to the identifier of the error log request to the server identifying the current request is empty error log; identifier obtaining module, configured to obtain the target server identification to find the error log to find the error log in each row corresponding to the identifier of the current request to the destination server identifier identifying the server as the current Chi said error; repeat means for repeating the operation identifier obtaining module, until you find the identity of the target server as a current error log server identified target server identification is absent; source server error determination means for determining the error log to find the absence of the target server identified as the current source of the request corresponding to the error log, the server identifies the current source error log server determines the source of the error corresponding to the current corresponding to the request server .
3.根据权利要求2所述的系统,其特征在于,所述错误来源服务器确定模块还用于,若所述重复模块在各个所述服务器上报的各自在连续预设数量周期内的所述错误日志集合中均查找不到将所述目标服务器标识作为当前服务器标识的错误日志,则将所述目标服务器标识所在的错误日志确定为所述当前请求对应的来源错误日志,将所述来源错误日志中的当前服务器标识对应的服务器确定为所述当前请求对应的错误来源服务器。 3. The system of claim 2, wherein said error determining module is further configured source server, if the server is repeated in each of the module is reported in each of the consecutive predetermined number of errors in the cycle log lookup are not set to the target server ID as the server ID of the current error logs, error logs target server identification is located will determine the source of the error log request corresponding to the current, the source of the error log the current server is the server identifier corresponding to the determined error of the current sources corresponding to the server request.
4.根据权利要求3所述的系统,其特征在于,所述日志处理装置还包括: 前端错误服务器确定模块,用于将所述查找模块查找到的所述错误日志确定为所述当前请求对应的前端错误日志,将所述前端错误日志中当前服务器标识对应的服务器作为所述当前请求对应的前端错误服务器。 4. The system of claim 3, wherein the log processing apparatus further comprising: a front end server error determination module, the searching module is used to find the error log is determined as corresponding to the current request the front end of the error log, the front end of this error log server as the server identifier corresponding to the request corresponding to the current error front end server.
5.根据权利要求4所述的系统,其特征在于,所述日志处理装置还包括: 调用链确定模块,用于获取所述标识获取模块和所述重复模块在查找过程中查找到的各个所述错误日志,提取各个所述错误日志中的当前服务器标识对应的服务器,将提取到的多个服务器、所述前端错误服务器、所述错误来源服务器按照调用关系组成所述当前请求对应的错误服务器调用链。 5. The system according to claim 4, wherein the log processing apparatus further comprising: a call chain determining module, configured to obtain the identifier acquisition module and the module search process is repeated to find each of the said error log, each of the extraction current error log server server identifier corresponding to the extracted plurality of servers, the front end server error, the error source server relationship in accordance with the call server to the composition of the error corresponding to the current request call chain.
6.根据权利要求4所述的系统,其特征在于,所述日志处理装置还包括: 次数统计模块,用于根据各个请求对应的各个所述来源错误日志中的系统标识确定各个所述来源错误日志对应的系统,将各个所述来源错误日志对应的系统所包含的来源错误日志的数量作为各个所述来源错误日志对应的系统的错误次数,以及,用于根据各个请求对应的各个所述前端错误日志中的系统标识确定各个所述前端错误日志对应的系统,将各个所述前端错误日志对应的系统所包含的前端错误日志的数量作为各个所述前端错误日志对应的系统的错误次数; 标识统计模块,用于将各个所述来源错误日志对应的系统所包含的来源错误日志中的错误标识对应记录为各个所述来源错误日志对应的系统出现的错误标识,以及,将各个所述前端错误日志对应的系统所包含的前端错误日志 6. The system as claimed in claim 4, wherein the log processing apparatus further comprising: a number counting module for determining the source of each of the respective said error source identification system according to the error log request corresponding to the respective corresponding to the number of system error log, the number of source error log of each of said source log corresponding to the error included in the system, as each of the corresponding system error log source, and, for each of the front end corresponding to the request in accordance with various the system identification error log to determine each of the corresponding front end of the system error log, the number of the front end of the front end of each of the error log to the system error log corresponding to a number of errors included in each of the front end of the system corresponding to the error log; identifying statistics module, misidentification of the source of the error log source error log corresponding to each system included in a corresponding record for each of the identified sources of error the error occurring in the system corresponding to the log, and the front end of each of the error corresponding to the front end of the error log log system contains 的错误标识对应记录为各个所述前端错误日志对应的系统出现的错误标识; 信息发送模块,用于向各个所述来源错误日志对应的系统的负责人发送错误提醒信息,以及,向各个所述前端错误日志对应的系统的负责人发送错误提醒信息,所述错误提醒信息包括对应系统的系统名称、所述系统出现的错误次数以及所述系统出现的错误标识。 Recording error corresponding to the identifier to identify each of the error corresponding to the front end of the system error log appears; information sending module, configured to charge each of said source log corresponding to the error sends an error information about the system, and to each of the corresponding to the distal head of a system error log information about the transmission error, said error information comprises a system name corresponding to the alert system, the number of errors occurring in the system and the system identification error occurring.
7.根据权利要求6所述的系统,其特征在于,所述信息发送模块具体用于: 将当前系统出现的错误标识与前次发送错误提醒信息时当前系统出现的错误标识进行比较,判断所述当前系统是否出现新的错误标识,若出现,则向所述当前系统对应的系统负责人发送所述错误提醒信息; 若未出现,判断当前时刻与前次发送错误提醒信息时刻之间的时间间隔,若所述时间间隔超过预设时间,则向所述当前系统对应的系统负责人发送所述错误提醒信息。 7. The system according to claim 6, wherein the information sending module is configured to: identify the current error and a previous error identification transmission error occurring in the system information about the current occurring in the system, and determines the said current system whether there is a new error identification, if there, the person in charge of the system corresponding to the current system transmits the reminder information error; if it is not, determines whether the current time and the last time between sending an error alert information time interval, if the time interval exceeds a preset time, the system responsible person corresponding to the current system sends the wrong message reminder.
8.一种错误信息定位方法,其特征在于,所述方法包括: 各个服务器周期性根据预先定义的错误标识在各自的日志文件中进行查找,得到各自在当前周期内的错误日志集合,将各自在当前周期内的所述错误日志集合上报至日志处理装置; 其中,各个所述错误日志集合均包括多行错误日志,每行所述错误日志均包括所属的系统标识、请求标识、请求服务器标识、当前服务器标识、目标服务器标识以及正确性标识,所述正确性标识为正确标识或者所述错误标识; 所述日志处理装置接收各个所述服务器上报的各自在当前周期内的所述错误日志集合,按照所述请求标识对接收到的所有所述错误日志集合中的多行错误日志进行分类,得到每个所述请求标识对应的多行错误日志,根据当前请求标识对应的每行所述错误日志中的请求服务器标识、当前服务器标识 An error message positioning method, wherein the method comprises: each server periodically looks in the respective log file according to a predefined identification error, the error log to obtain each set in the current cycle, the respective the error log in the current reporting period set to the log processing apparatus; wherein each of said set of error logs error log includes a plurality of rows, each row comprises the system identification error log belongs, request identifier, a request identifier server , the current server identification, server identification and the correctness of the target identifier, the identity or correctness of the identification is correct misidentified; the log processing means receiving a respective set of said respective error logs reported by the server in the current cycle, , classified according to the error log request all of said plurality of rows set identifier received the error logs in, logs the error to obtain a plurality of rows each corresponding to the identifier of the request, according to the identifier corresponding to each row of said error current request identified the requesting server log, identifying the current server 目标服务器标识,确定当前请求对应的错误来源服务器。 Identifying the target server to determine the current error corresponding to the request source server.
9.根据权利要求8所述的方法,其特征在于,根据当前请求标识对应的每行所述错误日志中的请求服务器标识、当前服务器标识和目标服务器标识,确定当前请求对应的错误来源服务器,包括: 在所述当前请求标识对应的每行所述错误日志中查找所述请求服务器标识为空的错误曰志; 获取查找到的所述错误日志中的目标服务器标识,在所述当前请求标识对应的每行所述错误日志中查找将所述目标服务器标识作为当前服务器标识的错误日志; 重复所述获取查找到的所述错误日志中的目标服务器标识,以及所述查找将所述目标服务器标识作为当前服务器标识的错误日志的动作,直至查找到的将所述目标服务器标识作为当前服务器标识的错误日志不存在目标服务器标识; 确定查找到的不存在目标服务器标识的所述错误日志为所述当前请求对应的来源错误 9. The method according to claim 8, characterized in that, according to the current request identifier corresponding to each row of the error log request server identification, server identification and the current target server identification, the server determines the source of the error corresponding to the current request, comprising: Find the error log in each row corresponding to the identifier of the current request in the requesting server identified as Chi said null error; obtaining the target server identification to find the error log, the current request identifier each line corresponds to the error log to find the target server ID as the server ID of the current error log; repeating the obtaining the target server identification to find the error log, and the server to find the target as the operation of the current identification error log server identified until the found identifying the target server as a current error log server identified target server identification is absent; determined to find the error log does not exist for the target server identified by said error current corresponding to the request source 志,将所述来源错误日志中的当前服务器标识对应的服务器确定为所述当前请求对应的错误来源服务器。 Zhi, the server identifies the current sources corresponding to the error log server determines said error current corresponding to the request source server.
10.根据权利要求9所述的方法,其特征在于,根据当前请求标识对应的每行所述错误日志中的请求服务器标识、当前服务器标识和目标服务器标识,确定当前请求对应的错误来源服务器,还包括: 若在各个所述服务器上报的各自在预设数量周期内的所述错误日志集合中均查找不到将所述目标服务器标识作为当前服务器标识的错误日志,则将所述目标服务器标识所在的错误日志确定为所述当前请求对应的来源错误日志,将所述来源错误日志中的当前服务器标识对应的服务器确定为所述当前请求对应的错误来源服务器。 10. The method according to claim 9, wherein the server request based on the current request to the error log identify each row corresponding to the identifier of the current target server identification and the server identification, the server determines the source of the error corresponding to the current request, further comprising: an error log if the respective set within a predetermined number of cycles in each of the lookup server are not reported by the target server is the current server ID as the identification error log, then the target server identification determining where the error log request for said current sources corresponding to the error log, the server identifies the current sources corresponding to the error log server determines said error current corresponding to the request source server.
CN201610726113.9A 2016-08-25 2016-08-25 Error information positioning system and method CN106100913A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610726113.9A CN106100913A (en) 2016-08-25 2016-08-25 Error information positioning system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610726113.9A CN106100913A (en) 2016-08-25 2016-08-25 Error information positioning system and method

Publications (1)

Publication Number Publication Date
CN106100913A true CN106100913A (en) 2016-11-09

Family

ID=57225126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610726113.9A CN106100913A (en) 2016-08-25 2016-08-25 Error information positioning system and method

Country Status (1)

Country Link
CN (1) CN106100913A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462180A (en) * 2013-09-24 2015-03-25 乐金信世股份有限公司 Management system and method for a big data processing device
US20150281074A1 (en) * 2014-03-28 2015-10-01 Fujitsu Limited Data transfer control device and data transfer control method
CN105207806A (en) * 2015-08-20 2015-12-30 百度在线网络技术(北京)有限公司 Monitoring method and apparatus of distributed service
CN105553739A (en) * 2015-12-25 2016-05-04 瑞斯康达科技发展股份有限公司 Method and device for tracking MAC addresses

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462180A (en) * 2013-09-24 2015-03-25 乐金信世股份有限公司 Management system and method for a big data processing device
US20150281074A1 (en) * 2014-03-28 2015-10-01 Fujitsu Limited Data transfer control device and data transfer control method
CN105207806A (en) * 2015-08-20 2015-12-30 百度在线网络技术(北京)有限公司 Monitoring method and apparatus of distributed service
CN105553739A (en) * 2015-12-25 2016-05-04 瑞斯康达科技发展股份有限公司 Method and device for tracking MAC addresses

Similar Documents

Publication Publication Date Title
US7222096B2 (en) Line handler
US20090271529A1 (en) Stream data processing method and computer systems
CN102981943B (en) Method and system for monitoring application logs
US7865548B2 (en) Email recovery method and system
WO2006001869A3 (en) Generating a reliability analysis by identifying causal relationships between events in an event-based manufacturing system
US20080275957A1 (en) Identifying and correlating electronic mail messages
CN101562827B (en) Fault information acquisition method and system
CN103812755A (en) Message synchronization method and device in instant messaging application
US20100332608A1 (en) Method and system for email processing
US9256657B1 (en) Tracking data communicated between services
CN101540740B (en) Prompting method of a plurality of instant communication windows, system and device thereof
CN102523137B (en) A fault monitoring method, apparatus and system for
CN101043656A (en) Method and system for monitoring suspicious user of rubbish SMS
CN104244254B (en) Method and apparatus based on the message center number detecting pseudo base stations
US8719232B2 (en) Systems and methods for data integrity checking
CN103699580A (en) Database synchronization method and database synchronization device
CN102801785B (en) System and method for monitoring advertisement putting engine
CN103501486B (en) A messaging method and pushing the push server
CN100433019C (en) Data storage and retrieving method and system
CN102123109A (en) Method and system email
US7509539B1 (en) Method for determining correlation of synchronized event logs corresponding to abnormal program termination
US7610172B2 (en) Method and system for monitoring non-occurring events
CN103490917B (en) Fault detection method and apparatus for processing in a case
CN103023984B (en) Terminal application server and application log filtering method thereof
US9304862B2 (en) Method of handling an email messaging campaign

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination