Detection method and apparatus for log message transmission and loss in distributed system

The embodiment of the invention discloses a detection method and apparatus for log message transmission and loss in a distributed system. The detection method comprises: after a server receives a log message sent by a node, the log message is parsed and information of a physical position of the node and a local serial number of the message are obtained; and according to the information of the physical position of the node, a local serial number of a log message that is sent by the node previously and is stored in the server is searched and whether the local serial number of the log message sent previously and the local serial number of the log message received currently are consecutive numbers is determined; and if not, the log message sent by the node is determined to be lost.