CN109862379B - Log processing method and device, mobile terminal and storage medium - Google Patents

Log processing method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN109862379B
CN109862379B CN201811647830.8A CN201811647830A CN109862379B CN 109862379 B CN109862379 B CN 109862379B CN 201811647830 A CN201811647830 A CN 201811647830A CN 109862379 B CN109862379 B CN 109862379B
Authority
CN
China
Prior art keywords
live broadcast
link
node
link node
log
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811647830.8A
Other languages
Chinese (zh)
Other versions
CN109862379A (en
Inventor
姚仕明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201811647830.8A priority Critical patent/CN109862379B/en
Publication of CN109862379A publication Critical patent/CN109862379A/en
Application granted granted Critical
Publication of CN109862379B publication Critical patent/CN109862379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a log processing method, a log processing device, terminal equipment and a storage medium. The method comprises the following steps: when monitoring that the live broadcast service flow is abnormal, identifying at least one link node which is configured for a live broadcast link corresponding to the live broadcast service flow in advance; acquiring log information corresponding to each link node according to a log burying point added in advance at each link node; determining live broadcast state information corresponding to each link node according to the log information; and displaying the live broadcast state information corresponding to each link node on a preset page. The method and the device can achieve the purposes of rapidly troubleshooting the abnormal reason of the live link and positioning the abnormal link node, reduce abnormal troubleshooting time and reduce the occurrence probability of live broadcast accidents.

Description

Log processing method and device, mobile terminal and storage medium
Technical Field
The present invention relates to the field of terminal device technologies, and in particular, to a log processing method and apparatus, a mobile terminal, and a storage medium.
Background
With the popularity of Chinese Internet users half as much as possible, the number of Chinese Internet net citizens is the first to live in the world. The live video broadcast is a leader sheep rising in the emerging industry of the Internet, the live video broadcast is developed rapidly, and the number of users is multiplied day by day. The video live broadcast refers to live broadcast by utilizing the internet and a streaming media technology, and the video is combined with rich elements such as images, characters and sounds, has a luxuriant sound and a good effect, and gradually becomes a mainstream expression mode of the internet.
In the process from creation to next broadcast of a live broadcast, a plurality of processing flows are involved in the middle, when an abnormality occurs in the live broadcast process, corresponding code logic needs to be analyzed and a plurality of log data needs to be searched to investigate the problem of live broadcast abnormality, however, the process of analyzing and investigating the problem one by searching a plurality of log data is complicated, the time consumed by positioning the abnormal processing flows is long, and the occurrence of a live broadcast accident may be caused.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a log processing method, device, mobile terminal and storage medium, so as to solve the technical problems in the prior art that the process of checking live broadcast abnormity is complicated, the time for positioning the abnormal processing flow is long, and live broadcast accidents may be caused.
In order to solve the above problem, an embodiment of the present invention provides a log processing method, including: when monitoring that the live broadcast service flow is abnormal, identifying at least one link node which is configured for a live broadcast link corresponding to the live broadcast service flow in advance; acquiring log information corresponding to each link node according to a log burying point added in advance at each link node; determining live broadcast state information corresponding to each link node according to the log information; and displaying the live broadcast state information corresponding to each link node on a preset page.
Preferably, before identifying at least one link node configured in advance for a live broadcast link corresponding to a live broadcast service flow when monitoring that a live broadcast service flow is abnormal, the method further includes: acquiring a target service type of the live broadcast service flow; determining a target node configuration rule matched with the target service type according to the mapping relation between the service type and the node configuration rule; configuring at least one link node for the live broadcast service flow according to the target node configuration rule; adding the logging site at each of the link nodes; and the log burying point is used for acquiring log information of the live broadcast link corresponding to the link node.
Preferably, the determining, according to each piece of log information, live broadcast state information corresponding to each link node includes: sending each log information to a background server so that the background server analyzes and processes each log information; receiving log analysis results corresponding to the log information returned by the background server; and determining the live broadcast state information corresponding to each link node according to the log analysis result.
Preferably, the displaying of the live broadcast state information corresponding to each link node on a preset page includes: acquiring a target node state parameter corresponding to the live broadcast state information of each link node according to the mapping relation between the live broadcast state information and the node state parameter; displaying each link node of the live broadcast service flow on the preset page, and adding corresponding target node state parameters for each link node; wherein the node state parameter includes any one of a color parameter and a graphic identification parameter.
Preferably, after the displaying the live broadcast status information corresponding to each link node on the preset page, the method further includes: acquiring a state reference instruction of a target link node in each link node; and displaying detailed state information corresponding to the target link node on a preset page according to the state reference instruction.
In order to solve the above problem, an embodiment of the present invention provides a log processing apparatus, including: the link node identification module is used for identifying at least one link node which is configured for a live broadcast link corresponding to a live broadcast service flow in advance when monitoring that the live broadcast service flow is abnormal; the log information acquisition module is used for acquiring log information corresponding to each link node according to a log burying point added in advance at each link node; the live broadcast state determining module is used for determining live broadcast state information corresponding to each link node according to each log information; and the live broadcast state display module is used for displaying the live broadcast state information corresponding to each link node on a preset page.
Preferably, the method further comprises the following steps: the target type acquisition module is used for acquiring a target service type of the live broadcast service flow; the target rule determining module is used for determining a target node configuration rule matched with the target service type according to the mapping relation between the service type and the node configuration rule; a link node configuration module, configured to configure at least one link node for the live broadcast service flow according to the target node configuration rule; a log burying point adding module, configured to add the log burying point at each link node; and the log burying point is used for acquiring log information of the live broadcast link corresponding to the link node.
Preferably, the live status determining module includes: the log information sending submodule is used for sending each log information to a background server so that the background server can analyze and process each log information; the analysis result receiving submodule is used for receiving the log analysis results corresponding to the log information returned by the background server; and the live broadcast state determining submodule is used for determining live broadcast state information corresponding to each link node according to each log analysis result.
Preferably, the live status display module includes: the node state parameter acquisition submodule is used for acquiring a target node state parameter corresponding to the live broadcast state information of each link node according to the mapping relation between the live broadcast state information and the node state parameter; the node state parameter adding submodule is used for displaying each link node of the live broadcast business process on the preset page and adding corresponding target node state parameters for each link node; wherein the node state parameter includes any one of a color parameter and a graphic identification parameter.
Preferably, the method further comprises the following steps: a state lookup instruction acquisition module, configured to acquire a state lookup instruction for a target link node in each link node; and the detailed state information display module is used for displaying the detailed state information corresponding to the target link node on a preset page according to the state lookup instruction.
In order to solve the above problem, an embodiment of the present invention provides a terminal device, including: the log processing system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the computer program realizes the log processing method of any one of the above items when being executed by the processor.
In order to solve the above problem, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, where the computer program, when executed by a processor, implements the log processing method described in any one of the above.
Compared with the prior art, the embodiment of the invention has the following advantages:
in the embodiment of the invention, when the abnormality of the live broadcast service flow is monitored, at least one link node which is configured for a live broadcast link corresponding to the live broadcast service flow in advance is identified, the log information corresponding to each link node is obtained according to the log buried point which is added in advance at each link node, the live broadcast state information corresponding to each link node is determined according to each log information, and the live broadcast state information corresponding to each link node is displayed on a preset page. According to the embodiment of the invention, the log burying points are added to the link nodes configured for the live link corresponding to the live broadcast service flow in advance to obtain the log information corresponding to the link nodes, and the live broadcast state information of the link nodes is analyzed and displayed, so that the purposes of rapidly troubleshooting the abnormal reason of the live broadcast link and positioning the abnormal link nodes can be achieved, the abnormal troubleshooting time is reduced, and the occurrence probability of the live broadcast accident is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
FIG. 1 is a flowchart illustrating steps of a log processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a log processing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram illustrating a log processing apparatus according to an embodiment of the present invention;
fig. 4 shows a schematic structural diagram of a log processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flowchart illustrating steps of a log processing method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 101: when the fact that the live broadcast business process is abnormal is monitored, at least one link node which is configured for a live broadcast link corresponding to the live broadcast business process in advance is identified.
The embodiment of the invention can be applied to scenes of abnormal node positioning in the live broadcast service process, such as event live broadcast, information live broadcast, entertainment live broadcast and the like.
In the terminal system, at least one link node may be preconfigured for a live broadcast link corresponding to a live broadcast service flow, for example, for a live broadcast service in a ball game, a live broadcast session link node, a live broadcast room link node, and the like may be established.
A live broadcast monitoring program can be established in a terminal system for a live broadcast business process in advance, and the live broadcast monitoring program can be used for monitoring the abnormity in the live broadcast process in real time, such as live broadcast blockage, live broadcast delay and the like.
When it is monitored that the live broadcast service flow is abnormal, at least one link node configured for a live broadcast link corresponding to the live broadcast service flow in advance can be identified, and step 102 is executed.
Step 102: and acquiring the log information corresponding to each link node according to the log burying points added in advance at each link node.
The log burying point may refer to a code, a program, or the like, which is added in advance at each link node, for acquiring log information of a live link corresponding to the link node. For example, for a live link corresponding to a live broadcast service flow, 3 link nodes, namely a link node a, a link node B and a link node C, are added to the live link in advance, the live link is divided into 3 sub-live links according to the three link nodes, namely a sub-live link a, a sub-live link B and a sub-live link C, then the link nodes A, B and C correspond to the sub-live links a, B and C, and log embedded points added in advance at the link nodes A, B and C can acquire log information generated by the sub-live links a, B and C in the live broadcast process.
When monitoring that the live broadcast service flow is abnormal, the log information corresponding to each link node can be obtained through the log buried point added in advance at each link node, for example, for live broadcast of a ball game, the log information generated in the live broadcast process of each live broadcast field can be obtained according to the live broadcast field node, and for the live broadcast room node, the log information generated in the live broadcast process of each live broadcast room can be obtained.
The time for the live broadcast link corresponding to each link node to start executing, the Bug generated in the process of executing the live broadcast link, and the like are recorded in the log information, so that the abnormal reason and the abnormal link node can be analyzed according to the log information of the live broadcast link corresponding to each link node.
The following embodiments describe in detail how to configure link nodes and add a log burying point at each link node in a live broadcast service flow, and the embodiments of the present invention are not described herein again.
After acquiring the log information corresponding to each link node according to the log burying point added in advance at each link node, step 103 is executed.
Step 103: and determining the live broadcast state information corresponding to each link node according to the log information.
After the log information corresponding to each link node is obtained, each log information can be analyzed and checked, so that the link node with the abnormality is determined.
In practical application, after the log information is acquired, the log information can be sent to a background server or a log analysis tool (such as kibana logstack) preset at a terminal side, so that the abnormal link node can be determined according to an analysis result.
The following describes in detail a process of sending log information to a backend server for analysis, with reference to the preferred embodiment.
In a preferred embodiment of the present invention, the step 103 may include:
substep A1: and sending each log information to a background server so that the background server analyzes and processes each log information.
In the embodiment of the present invention, after obtaining the log information corresponding to each link node preconfigured in the live broadcast service flow, the log information corresponding to each link node may be sent to the background server, and the background server performs processing such as analysis and positioning on each log information, and performs substep a 2.
Substep A2: and receiving a log analysis result which is returned by the background server and corresponds to each log information.
The log analysis result may include an abnormal analysis result and a normal analysis result, the normal analysis result refers to an analysis result that the link node corresponding to the log information is in a normal state, and the abnormal analysis result refers to an analysis result that the link node corresponding to the log information is abnormal.
The exception analysis result may further include a reason why each link node is abnormal, such as an abnormal crash of the live broadcast client, an application outage, and the like.
After receiving the log analysis results corresponding to the respective log information returned by the backend server, sub-step a3 is performed.
Substep A3: and determining the live broadcast state information corresponding to each link node according to the log analysis result.
After the terminal receives the log analysis results returned by the background server, the live broadcast state information of the live broadcast link corresponding to each link node, such as a normal state and an abnormal state, can be determined according to the log analysis results.
And when the abnormal link node exists, the reason for the abnormal link node to be abnormal can be obtained according to the log analysis result, so that the subsequent staff can quickly repair the abnormality.
After determining the live broadcast status information corresponding to each link node according to each log information, step 104 is executed.
Step 104: and displaying the live broadcast state information corresponding to each link node on a preset page.
The method comprises the steps that a preset page can be preset on a terminal side, each link node of a live broadcast service flow can be displayed in the preset page to form a link node link topological graph, after live broadcast state information corresponding to each link node is determined, target node state parameters (such as color parameters or graphic identification parameters and the like) can be added to each link node of the preset page, the live broadcast state of each link node can be visually displayed, and therefore when the live broadcast service flow is abnormal, normal state link nodes and abnormal state link nodes in the live broadcast service flow can be quickly located.
However, the scheme for adding the status parameter of the target node at each link node of the preset page is described in detail in the following preferred embodiments.
In a preferred embodiment of the present invention, the step 104 may include:
substep B1: and acquiring a target node state parameter corresponding to the live broadcast state information of each link node according to the mapping relation between the live broadcast state information and the node state parameter.
In the embodiment of the present invention, the node status parameter refers to a parameter for visually displaying live broadcast status information of each link node, and the node status parameter may include any one of a color parameter, a graphic identification parameter, and the like.
The terminal side can also pre-store the mapping relationship between the live broadcast state information and the node state parameters, for example, the live broadcast state information comprises an abnormal state and a normal state, the node state parameters are color parameters comprising red and green, and when the live broadcast state information is in the abnormal state, the node state parameters with the mapping relationship are red; and when the live broadcast state information is in a normal state, the node state parameters with the mapping relation are green, and the like. For another example, the live broadcast status information includes an abnormal status and a normal status, and the node status parameters are graphic identification parameters including a star parameter and
Figure BDA0001932372810000071
when the live broadcast state information is in an abnormal state, the node state parameter with the mapping relation is a four-star parameter; when the live broadcast state information is in a normal state, the node state parameter with the mapping relation is
Figure BDA0001932372810000072
And (4) parameters.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be taken as the only limitation of the embodiments of the present invention.
In practical applications, a person skilled in the art may also select other node status parameters, such as a numerical parameter, an english character parameter, and the like, which is not limited in this embodiment of the present invention.
Substep B2: and displaying each link node of the live broadcast service flow on the preset page, and adding corresponding target node state parameters for each link node.
After the live broadcast state information corresponding to each link node is determined, the target node state parameters corresponding to each link node can be displayed in a preset page, so that the live broadcast state information corresponding to each link node can be visually displayed, and normal state link nodes and abnormal state link nodes in the live broadcast service flow can be quickly positioned when the live broadcast service flow is abnormal.
According to the log processing method provided by the embodiment of the invention, when the abnormality of the live broadcast service flow is monitored, at least one link node which is configured for the live broadcast link corresponding to the live broadcast service flow in advance is identified, log information corresponding to each link node is obtained according to a log burying point which is added in advance at each link node, the live broadcast state information corresponding to each link node is determined according to each log information, and the live broadcast state information corresponding to each link node is displayed on a preset page. According to the embodiment of the invention, the log burying points are added to the link nodes configured for the live link corresponding to the live broadcast service flow in advance to obtain the log information corresponding to the link nodes, and the live broadcast state information of the link nodes is analyzed and displayed, so that the purposes of rapidly troubleshooting the abnormal reason of the live broadcast link and positioning the abnormal link nodes can be achieved, the abnormal troubleshooting time is reduced, and the occurrence probability of the live broadcast accident is reduced.
Referring to fig. 2, a flowchart illustrating steps of a log processing method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 201: and acquiring the target service type of the live broadcast service flow.
The embodiment of the invention can be applied to scenes of abnormal node positioning in the live broadcast service process, such as event live broadcast, information live broadcast, entertainment live broadcast and the like.
In the invention, after the live broadcast service flow is obtained, the target service type of the live broadcast service flow can be obtained according to the name of the live broadcast service flow, and the ball live broadcasts such as NBA live broadcast, football live broadcast and the like can be classified as event live broadcast, game live broadcast can be classified as entertainment live broadcast, news live broadcast, legal live broadcast and the like can be classified as information live broadcast and the like.
Of course, after the live broadcast service flow is obtained, the target service type of the live broadcast service flow can be obtained according to the description information added to the live broadcast service flow in advance, for example, for live broadcast of a ball game, before the live broadcast starts, a simple text description is added to describe description information of battle performance, recent state, player first issue and the like of a battle team, and the live broadcast service flow can be classified according to the description information of the live broadcast service flow, so that the target service type of the live broadcast service flow is obtained.
After the target service type of the live service flow is obtained, step 202 is executed.
Step 202: and determining a target node configuration rule matched with the target service type according to the mapping relation between the service type and the node configuration rule.
The node configuration rule is a rule for configuring a link node for a live broadcast service process, and the service type is a type of the live broadcast service process. The node configuration rules may include rules of how many link nodes are added to the live broadcast service flow, and rules of which position of the live broadcast link a link node is added to.
The terminal side prestores a mapping relationship between the service type and the node configuration rule, that is, the live broadcast service flows of different service types may adopt corresponding node configuration rules to perform node configuration, for example, the service type includes A, B and C, the node configuration rule includes 1, 2 and 3, the service type a has a mapping relationship with the node configuration rule 1, the service type B has a mapping relationship with the node configuration rule 2, and the service type C has a mapping relationship with the node configuration rule 3.
The mapping relationship between the service types and the node configuration rules may be stored in the terminal side in the form of a list, as shown in table 1 below:
table 1:
type of service Node configuration rules
A1 S1
A2 S2
A3 S3
As can be known from table 1, a mapping relationship exists between the service type a1 and the node configuration rule S1, a mapping relationship exists between the service type a2 and the node configuration rule S2, and a mapping relationship exists between the service type A3 and the node configuration rule S3.
In practical application, the terminal side may also adopt other forms to store the mapping relationship between the service type and the node configuration rule, such as creating a mapping relationship database, storing the mapping relationship between the service type and the node configuration rule in the form of a database, and the like. In particular, the present invention may be determined according to practical situations, and the embodiments of the present invention are not limited thereto.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be taken as the only limitation of the embodiments of the present invention.
After the target service type of the live broadcast service flow is obtained, a target node configuration rule matched with the target service type may be obtained according to the target service type and the mapping relationship between the service type and the node configuration rule, for example, as shown in table 1, when the target service type is a2, the matched target node configuration rule is S2; and when the target service type is A1, the matched target node configuration rule is S1 and the like.
After determining the target node configuration rule matching the target service type according to the mapping relationship between the service type and the node configuration rule, step 203 is executed.
Step 203: and configuring at least one link node for the live broadcast service flow according to the target node configuration rule.
After obtaining the target node configuration rule corresponding to the live broadcast service flow, link node configuration may be performed on the live broadcast service flow according to the target node configuration rule, for example, where to add a link node, how many link nodes to add, and the like to the live broadcast service flow.
After configuring at least one link node for the live broadcast service flow according to the target node configuration rule, step 204 is executed.
Step 204: adding the logging site at each of the link nodes; and the log burying point is used for acquiring log information of the live broadcast link corresponding to the link node.
The log burying point may refer to a code, a program, or the like, which is added in advance at each link node to acquire log information of the live link corresponding to each link node. For example, for a live link corresponding to a live broadcast service flow, 3 link nodes, namely a link node a, a link node B and a link node C, are added to the live link in advance, the live link is divided into 3 sub-live links according to the three link nodes, namely a sub-live link a, a sub-live link B and a sub-live link C, then the link nodes A, B and C correspond to the sub-live links a, B and C, and log embedded points added in advance at the link nodes A, B and C can acquire log information generated by the sub-live links a, B and C in the live broadcast process.
In the invention, the log burying points can be added manually, namely, each link node is selected manually and the burying point processing is carried out at each link node, thereby completing the addition of each log burying point.
Of course, other ways may also be adopted to add the log burying point at each link node, for example, based on the spring aop technology, a custom annotation is configured for the link node related interface, so as to achieve the purpose of adding the log burying point at each link node.
In a specific implementation, a person skilled in the art may select a manner of adding a logging buried point at each link node according to actual needs, which is not limited in the embodiment of the present invention.
After adding the logging burial points at each link node, step 205 is performed.
Step 205: when the fact that the live broadcast business process is abnormal is monitored, at least one link node which is configured for a live broadcast link corresponding to the live broadcast business process in advance is identified.
In the terminal system, at least one link node may be preconfigured for a live broadcast link corresponding to a live broadcast service flow, for example, for a live broadcast service in a ball game, a live broadcast session link node, a live broadcast room link node, and the like may be established.
A live broadcast monitoring program can be established in a terminal system for a live broadcast business process in advance, and the live broadcast monitoring program can be used for monitoring the abnormity in the live broadcast process in real time, such as live broadcast blockage, live broadcast delay and the like.
When it is monitored that the live broadcast service flow is abnormal, at least one link node configured for the live broadcast link corresponding to the live broadcast service flow in advance can be identified, and step 206 is executed.
Step 206: and acquiring the log information corresponding to each link node according to the log burying points added in advance at each link node.
The time for the live broadcast link corresponding to each link node to start executing, the Bug generated in the process of executing the live broadcast link, and the like are recorded in the log information, so that the abnormal reason and the abnormal link node can be analyzed according to the log information of the live broadcast link corresponding to each link node.
After identifying at least one link node configured for the live link corresponding to the live service flow in advance, log information corresponding to each link node may be obtained according to a log burying point added in advance at each link node, and step 207 is executed.
Step 207: and determining the live broadcast state information corresponding to each link node according to the log information.
After the log information corresponding to each link node is obtained, each log information can be analyzed and checked, so that the link node with the abnormality is determined.
In practical application, after the log information is acquired, the log information can be sent to a background server or a log analysis tool (such as kibana logstack) preset at a terminal side, so that the abnormal link node can be determined according to an analysis result.
After determining the live broadcast status information corresponding to each link node according to each log information, step 208 is executed.
Step 208: and displaying the live broadcast state information corresponding to each link node on a preset page.
The method comprises the steps that a preset page can be preset on a terminal side, each link node of a live broadcast service flow can be displayed in the preset page to form a link node link topological graph, after live broadcast state information corresponding to each link node is determined, target node state parameters (such as color parameters or graphic identification parameters and the like) can be added to each link node of the preset page, the live broadcast state of each link node can be visually displayed, and therefore when the live broadcast service flow is abnormal, normal state link nodes and abnormal state link nodes in the live broadcast service flow can be quickly located.
The node state parameter refers to a parameter for visually displaying the live broadcast state information of each link node, and may include any one of a color parameter, a graphic identification parameter, and the like.
The terminal side can also pre-store the mapping relation between the live broadcast state information and the node state parameters, for example, the live broadcast state information comprises an abnormal state and a normal state, and the nodeThe point state parameters are color parameters including red and green, and when the live broadcast state information is in an abnormal state, the node state parameters with the mapping relation are red; and when the live broadcast state information is in a normal state, the node state parameters with the mapping relation are green, and the like. For another example, the live broadcast status information includes an abnormal status and a normal status, and the node status parameters are graphic identification parameters including a star parameter and
Figure BDA0001932372810000121
when the live broadcast state information is in an abnormal state, the node state parameter with the mapping relation is a four-star parameter; when the live broadcast state information is in a normal state, the node state parameter with the mapping relation is
Figure BDA0001932372810000122
And (4) parameters.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be taken as the only limitation of the embodiments of the present invention.
In practical applications, a person skilled in the art may also select other node status parameters, such as a numerical parameter, an english character parameter, and the like, which is not limited in this embodiment of the present invention.
After the live broadcast state information corresponding to each link node is determined, the target node state parameters corresponding to each link node can be displayed in a preset page, so that the live broadcast state information corresponding to each link node can be visually displayed, and normal state link nodes and abnormal state link nodes in the live broadcast service flow can be quickly positioned when the live broadcast service flow is abnormal.
Step 209: and acquiring a state reference instruction of a target link node in each link node.
The state reference instruction refers to an instruction for referring to detailed state information of the live broadcast link corresponding to each link node.
The state reference instruction may be an instruction triggered by clicking each link node when the user or the maintenance personnel refers to the detailed state information of the node, or an instruction triggered by inputting voice by the user or the maintenance personnel to refer to the detailed state information of the link node.
The target link node refers to a link node that needs to refer to the detailed status information, for example, when a user triggers to refer to the detailed status information of the link node 8, the link node 8 is the target link node, and so on.
After acquiring the state reference instruction for the target link node among the link nodes, step 210 is executed.
Step 210: and displaying detailed state information corresponding to the target link node on a preset page according to the state reference instruction.
The preset page may be a pop-up page popped up from the preset page, or a page popped up to be covered on the preset page, and specifically, may be determined according to an actual situation.
When a state lookup instruction for a target link node is received, detailed state information of a live link corresponding to the target link node can be displayed in a preset page, for example, the link node A is normal; or link node B, exception, cause of exception: xxx, and the like.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present invention, and are not to be taken as the only limitation of the embodiments of the present invention.
The embodiment of the invention configures at least one link node for the live broadcast service flow in advance, adds the log burying point at each link node, and acquires the log information of the live broadcast link corresponding to each link node in real time through the log burying point to analyze the abnormal condition of the live broadcast link corresponding to each link node and display the abnormal condition in the preset page, so that the abnormal link node can be quickly positioned, the time for positioning the abnormal processing flow is saved, and the occurrence of the live broadcast accident is reduced.
According to the log processing method provided by the embodiment of the invention, when the abnormality of the live broadcast service flow is monitored, at least one link node which is configured for the live broadcast link corresponding to the live broadcast service flow in advance is identified, log information corresponding to each link node is obtained according to a log burying point which is added in advance at each link node, the live broadcast state information corresponding to each link node is determined according to each log information, and the live broadcast state information corresponding to each link node is displayed on a preset page. According to the embodiment of the invention, the log burying points are added to the link nodes configured for the live link corresponding to the live broadcast service flow in advance to obtain the log information corresponding to the link nodes, and the live broadcast state information of the link nodes is analyzed and displayed, so that the purposes of rapidly troubleshooting the abnormal reason of the live broadcast link and positioning the abnormal link nodes can be achieved, the abnormal troubleshooting time is reduced, and the occurrence probability of the live broadcast accident is reduced.
Referring to fig. 3, a schematic structural diagram of a log processing apparatus provided in an embodiment of the present invention is shown, which may specifically include:
a link node identification module 301, configured to identify, when it is monitored that a live broadcast service flow is abnormal, at least one link node that is configured in advance for a live broadcast link corresponding to the live broadcast service flow; a log information obtaining module 302, configured to obtain log information corresponding to each link node according to a log burying point added in advance at each link node; a live broadcast state determining module 303, configured to determine, according to each log information, live broadcast state information corresponding to each link node; and a live broadcast state display module 304, configured to display, on a preset page, live broadcast state information corresponding to each link node.
Preferably, the live status determining module 303 includes: the log information sending submodule is used for sending each log information to a background server so that the background server can analyze and process each log information; the analysis result receiving submodule is used for receiving the log analysis results corresponding to the log information returned by the background server; and the live broadcast state determining submodule is used for determining live broadcast state information corresponding to each link node according to each log analysis result.
Preferably, the live status showing module 304 includes: the node state parameter acquisition submodule is used for acquiring a target node state parameter corresponding to the live broadcast state information of each link node according to the mapping relation between the live broadcast state information and the node state parameter; the node state parameter adding submodule is used for displaying each link node of the live broadcast business process on the preset page and adding corresponding target node state parameters for each link node; wherein the node state parameter includes any one of a color parameter and a graphic identification parameter.
The log processing device provided by the embodiment of the invention identifies at least one link node which is configured for a live broadcast link corresponding to a live broadcast service flow in advance when monitoring that the live broadcast service flow is abnormal, acquires log information corresponding to each link node according to a log burying point which is added in advance at each link node, determines live broadcast state information corresponding to each link node according to each log information, and displays the live broadcast state information corresponding to each link node on a preset page. According to the embodiment of the invention, the log burying points are added to the link nodes configured for the live link corresponding to the live broadcast service flow in advance to obtain the log information corresponding to the link nodes, and the live broadcast state information of the link nodes is analyzed and displayed, so that the purposes of rapidly troubleshooting the abnormal reason of the live broadcast link and positioning the abnormal link nodes can be achieved, the abnormal troubleshooting time is reduced, and the occurrence probability of the live broadcast accident is reduced.
Referring to fig. 4, a schematic structural diagram of a log processing apparatus provided in an embodiment of the present invention is shown, which may specifically include:
a target type obtaining module 401, configured to obtain a target service type of the live broadcast service flow; a target rule determining module 402, configured to determine, according to a mapping relationship between a service type and a node configuration rule, a target node configuration rule matching the target service type; a link node configuration module 403, configured to configure at least one link node for the live broadcast service flow according to the target node configuration rule; a log burying point adding module 404, configured to add the log burying point at each link node; the log burying point is used for acquiring log information of a live link corresponding to the link node; a link node identification module 405, configured to identify at least one link node that is configured in advance for a live broadcast link corresponding to a live broadcast service flow when monitoring that a live broadcast service flow is abnormal; a log information obtaining module 406, configured to obtain log information corresponding to each link node according to a log burying point added in advance at each link node; a live broadcast state determining module 407, configured to determine, according to each log information, live broadcast state information corresponding to each link node; a live broadcast status display module 408, configured to display live broadcast status information corresponding to each link node on a preset page; a state lookup instruction obtaining module 409, configured to obtain a state lookup instruction for a target link node in each link node; a detailed state information display module 410, configured to display, according to the state lookup instruction, detailed state information corresponding to the target link node on a preset page.
The log processing device provided by the embodiment of the invention identifies at least one link node which is configured for a live broadcast link corresponding to a live broadcast service flow in advance when monitoring that the live broadcast service flow is abnormal, acquires log information corresponding to each link node according to a log burying point which is added in advance at each link node, determines live broadcast state information corresponding to each link node according to each log information, and displays the live broadcast state information corresponding to each link node on a preset page. According to the embodiment of the invention, the log burying points are added to the link nodes configured for the live link corresponding to the live broadcast service flow in advance to obtain the log information corresponding to the link nodes, and the live broadcast state information of the link nodes is analyzed and displayed, so that the purposes of rapidly troubleshooting the abnormal reason of the live broadcast link and positioning the abnormal link nodes can be achieved, the abnormal troubleshooting time is reduced, and the occurrence probability of the live broadcast accident is reduced.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Optionally, the present invention further provides a mobile terminal, including: the log processing method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, each process of the log processing method embodiment is realized, the same technical effect can be achieved, and in order to avoid repetition, the description is omitted here.
Optionally, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the log processing method as described above. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
In the embodiment of the invention, when the abnormality of the live broadcast service flow is monitored, at least one link node which is configured for a live broadcast link corresponding to the live broadcast service flow in advance is identified, the log information corresponding to each link node is obtained according to the log buried point which is added in advance at each link node, the live broadcast state information corresponding to each link node is determined according to each log information, and the live broadcast state information corresponding to each link node is displayed on a preset page. According to the embodiment of the invention, the log burying points are added to the link nodes configured for the live link corresponding to the live broadcast service flow in advance to obtain the log information corresponding to the link nodes, and the live broadcast state information of the link nodes is analyzed and displayed, so that the purposes of rapidly troubleshooting the abnormal reason of the live broadcast link and positioning the abnormal link nodes can be achieved, the abnormal troubleshooting time is reduced, and the occurrence probability of the live broadcast accident is reduced.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The present invention provides a log processing method, a log processing apparatus, a terminal device and a computer readable storage medium, which are introduced in detail, and specific examples are applied in this text to explain the principle and the implementation of the present invention, and the descriptions of the above embodiments are only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A log processing method is applied to video live broadcast abnormity and is characterized by comprising the following steps:
when monitoring that the live broadcast service flow is abnormal, identifying at least one link node which is configured for a live broadcast link corresponding to the live broadcast service flow in advance;
acquiring log information corresponding to each link node according to a log burying point added in advance at each link node; the log burying point comprises codes and programs which are added in each link node in advance and used for acquiring the log information of the live broadcast link corresponding to the link node;
determining live broadcast state information corresponding to each link node according to the log information;
displaying the live broadcast state information corresponding to each link node on a preset page;
when the abnormality of the live broadcast service process is monitored, before identifying at least one link node configured for a live broadcast link corresponding to the live broadcast service process in advance, the method further includes:
acquiring a target service type of the live broadcast service flow;
determining a target node configuration rule matched with the target service type according to the mapping relation between the service type and the node configuration rule;
configuring at least one link node for the live broadcast service flow according to the target node configuration rule;
adding the logging site at each of the link nodes; and the log burying point is used for acquiring log information of the live broadcast link corresponding to the link node.
2. The method of claim 1, wherein the determining the live status information corresponding to each link node according to each log information comprises:
sending each log information to a background server so that the background server analyzes and processes each log information;
receiving log analysis results corresponding to the log information returned by the background server;
and determining the live broadcast state information corresponding to each link node according to the log analysis result.
3. The method according to claim 1, wherein the displaying the live broadcast status information corresponding to each link node on a preset page comprises:
acquiring a target node state parameter corresponding to the live broadcast state information of each link node according to the mapping relation between the live broadcast state information and the node state parameter;
displaying each link node of the live broadcast service flow on the preset page, and adding corresponding target node state parameters for each link node;
wherein the node state parameter includes any one of a color parameter and a graphic identification parameter.
4. The method according to claim 1, further comprising, after said displaying the live status information corresponding to each of the link nodes on a preset page:
acquiring a state reference instruction of a target link node in each link node;
and displaying detailed state information corresponding to the target link node on a preset page according to the state reference instruction.
5. A log processing device is applied to video live broadcast exception and is characterized by comprising:
the link node identification module is used for identifying at least one link node which is configured for a live broadcast link corresponding to a live broadcast service flow in advance when monitoring that the live broadcast service flow is abnormal;
the log information acquisition module is used for acquiring log information corresponding to each link node according to a log burying point added in advance at each link node; the log burying point comprises codes and programs which are added in each link node in advance and used for acquiring the log information of the live broadcast link corresponding to the link node;
the live broadcast state determining module is used for determining live broadcast state information corresponding to each link node according to each log information;
the live broadcast state display module is used for displaying live broadcast state information corresponding to each link node on a preset page;
further comprising:
the target type acquisition module is used for acquiring a target service type of the live broadcast service flow;
the target rule determining module is used for determining a target node configuration rule matched with the target service type according to the mapping relation between the service type and the node configuration rule;
a link node configuration module, configured to configure at least one link node for the live broadcast service flow according to the target node configuration rule;
a log burying point adding module, configured to add the log burying point at each link node; and the log burying point is used for acquiring log information of the live broadcast link corresponding to the link node.
6. The apparatus of claim 5, wherein the live status determining module comprises:
the log information sending submodule is used for sending each log information to a background server so that the background server can analyze and process each log information;
the analysis result receiving submodule is used for receiving the log analysis results corresponding to the log information returned by the background server;
and the live broadcast state determining submodule is used for determining live broadcast state information corresponding to each link node according to each log analysis result.
7. The apparatus of claim 5, wherein the live status showing module comprises:
the node state parameter acquisition submodule is used for acquiring a target node state parameter corresponding to the live broadcast state information of each link node according to the mapping relation between the live broadcast state information and the node state parameter;
the node state parameter adding submodule is used for displaying each link node of the live broadcast business process on the preset page and adding corresponding target node state parameters for each link node;
wherein the node state parameter includes any one of a color parameter and a graphic identification parameter.
8. The apparatus of claim 5, further comprising:
a state lookup instruction acquisition module, configured to acquire a state lookup instruction for a target link node in each link node;
and the detailed state information display module is used for displaying the detailed state information corresponding to the target link node on a preset page according to the state lookup instruction.
9. A terminal device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the log processing method of any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, implements the log processing method according to any one of claims 1 to 4.
CN201811647830.8A 2018-12-29 2018-12-29 Log processing method and device, mobile terminal and storage medium Active CN109862379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811647830.8A CN109862379B (en) 2018-12-29 2018-12-29 Log processing method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811647830.8A CN109862379B (en) 2018-12-29 2018-12-29 Log processing method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109862379A CN109862379A (en) 2019-06-07
CN109862379B true CN109862379B (en) 2021-10-15

Family

ID=66893498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811647830.8A Active CN109862379B (en) 2018-12-29 2018-12-29 Log processing method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109862379B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362475A (en) * 2019-06-17 2019-10-22 北京奇艺世纪科技有限公司 A kind of information acquisition method, device, terminal device and storage medium
CN112416735A (en) * 2019-08-21 2021-02-26 腾讯科技(深圳)有限公司 Application program detection method and device, terminal equipment and storage medium
CN110781149A (en) * 2019-10-23 2020-02-11 北京达佳互联信息技术有限公司 Method, device, equipment and storage medium for managing live broadcast room information
CN113382268B (en) * 2020-03-09 2023-09-22 腾讯科技(深圳)有限公司 Live broadcast anomaly analysis method, live broadcast anomaly analysis device, computer equipment and storage medium
CN112306870A (en) * 2020-10-28 2021-02-02 广州博冠信息科技有限公司 Data processing method and device based on live APP
CN112532972B (en) * 2020-11-26 2023-10-03 北京百度网讯科技有限公司 Fault detection method and device for live broadcast service, electronic equipment and readable storage medium
CN113760723B (en) * 2021-01-13 2024-04-16 北京京东乾石科技有限公司 Business process debugging method and device
CN113747188A (en) * 2021-09-03 2021-12-03 百果园技术(新加坡)有限公司 Link monitoring system and method for video live broadcast quality
CN115037966B (en) * 2022-05-19 2024-03-12 上海哔哩哔哩科技有限公司 Live broadcast processing method, live broadcast processing device, computing equipment and computer storage medium
CN116882724A (en) * 2023-07-13 2023-10-13 北京优特捷信息技术有限公司 Method, device, equipment and medium for generating business process optimization scheme

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107690077A (en) * 2017-09-05 2018-02-13 北京京东尚科信息技术有限公司 The method and apparatus for monitoring net cast interim card
CN107786897A (en) * 2016-08-31 2018-03-09 南京中兴新软件有限责任公司 IPTV system fault locating method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9009533B2 (en) * 2011-12-29 2015-04-14 Electronics And Telecommunications Research Institute Home/building fault analysis system using resource connection map log and method thereof
CN105528277A (en) * 2015-12-10 2016-04-27 北京奇虎科技有限公司 Method and equipment for monitoring target device
CN107196788B (en) * 2017-05-02 2020-12-18 创新先进技术有限公司 Method and device for processing buried point data, server and client
CN107844924A (en) * 2017-12-18 2018-03-27 马上消费金融股份有限公司 A kind of execution method, apparatus and medium for controlling workflow
CN108491320A (en) * 2018-03-05 2018-09-04 平安普惠企业管理有限公司 Exception analysis method, device, computer equipment and the storage medium of application program
CN108595313B (en) * 2018-03-08 2021-12-10 北京三快在线科技有限公司 Log generation method and device of application program, electronic equipment and storage medium
CN109104302A (en) * 2018-07-18 2018-12-28 杭州鑫合汇互联网金融服务有限公司 A kind of full link tracing monitoring method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107786897A (en) * 2016-08-31 2018-03-09 南京中兴新软件有限责任公司 IPTV system fault locating method and system
CN107690077A (en) * 2017-09-05 2018-02-13 北京京东尚科信息技术有限公司 The method and apparatus for monitoring net cast interim card

Also Published As

Publication number Publication date
CN109862379A (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN109862379B (en) Log processing method and device, mobile terminal and storage medium
US11645379B2 (en) Security verification method and relevant device
CN108427633B (en) Display interface processing method and device
CN104135507B (en) A kind of method and apparatus of door chain
CN109669795B (en) Crash information processing method and device
US10248549B1 (en) Systems and methods for detection of untested code execution
CN105740304B (en) Visual page editing method and device and A/B testing method and device
CN107967206B (en) Data test system, request interception method and request interception device
CN105868256A (en) Method and system for processing user behavior data
CN112818456B (en) Layer configuration method, electronic equipment and related products
US20170017695A1 (en) Question and answer information providing system, information processing device, and non-transitory computer-readable medium
CN111770353A (en) Live broadcast monitoring method and device, electronic equipment and storage medium
CN107168844B (en) Performance monitoring method and device
CN114238134A (en) Test result display method, device, equipment and storage medium
CN111611140A (en) Reporting verification method and device of buried point data, electronic equipment and storage medium
CN111651567B (en) Service question-answer data processing method and device
CN111241400B (en) Information searching method and device
CN104424352A (en) System and method for providing agent service to user terminal
CN108271050B (en) Live broadcast room program recommendation method and device
CN109558531A (en) News information method for pushing, device and computer equipment
CN112953904B (en) Abnormality detection method, abnormality detection device, server, and storage medium
CN109684177A (en) Information feedback method and device
US20150261851A1 (en) Multi-faceted Social Network System for Use with Plural Applications
CN110602483A (en) Video fault determination method, device and computer readable storage medium
JP6508327B2 (en) Text visualization system, text visualization method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant