CN113190410A - Log collection method, system, client and storage medium - Google Patents
Log collection method, system, client and storage medium Download PDFInfo
- Publication number
- CN113190410A CN113190410A CN202110507049.6A CN202110507049A CN113190410A CN 113190410 A CN113190410 A CN 113190410A CN 202110507049 A CN202110507049 A CN 202110507049A CN 113190410 A CN113190410 A CN 113190410A
- Authority
- CN
- China
- Prior art keywords
- log
- client
- thread
- configuration information
- remote device
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 75
- 238000004891 communication Methods 0.000 claims abstract description 45
- 230000005540 biological transmission Effects 0.000 claims abstract description 36
- 238000004590 computer program Methods 0.000 claims description 6
- 230000007717 exclusion Effects 0.000 claims description 2
- 230000008569 process Effects 0.000 abstract description 21
- 238000012545 processing Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3089—Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
- G06F11/3093—Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention relates to the field of communication, and discloses a log collection method, a system, a client and a storage medium, wherein the log collection method is applied to the client, the client and at least one client server have communication connection for service data transmission, and the method comprises the following steps: receiving a log control message from a remote device forwarded by the client server, wherein the log control message contains client configuration information; creating a log capturing thread for acquiring log files according to the client configuration information; and sending the log file acquired by the log capturing thread to the remote equipment or log storage equipment appointed by the remote equipment. The method is applied to the log collection process, and the remote acquisition of the module log information is realized.
Description
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a log collection method, a log collection system, a client and a storage medium.
Background
At present, a module product is used as a part of communication equipment, the deployment range is very wide, the deployment scenes are various, various faults and problems can be encountered, and problems are generated due to the fact that the deployment scene of the module product is far away or the environment is special, the problem points are distributed discretely, and much trouble is generated for the collection of module log information. The traditional module log information collection method is mostly manually collected on site.
However, since most of the module products are disposed inside the communication device, the USB interface is not necessarily reserved, and the log information collection cannot be performed, and additional operations (e.g., flying wires) are required. In addition, the wireless communication environment is complex, the problem phenomena are different in different places and scenes of the same batch of equipment, specific analysis of specific problems is needed, and therefore each point is required to collect information manually on site. In a word, the manual on-site log information acquisition has more limitations in the actual application process, and a lot of manpower is consumed.
Disclosure of Invention
The embodiment of the invention aims to provide a log collection method, a log collection system, a client and a storage medium, which are used for realizing remote collection of log information.
In order to solve the technical problem, an embodiment of the present invention provides a log collection method, which is applied to a client that has a communication connection for service data transmission with at least one client server, and the method includes: receiving a log control message from a remote device forwarded by the client server, wherein the log control message contains client configuration information; creating a log capturing thread for acquiring log files according to the client configuration information; and sending the log file acquired by the log capturing thread to the remote equipment or log storage equipment appointed by the remote equipment.
An embodiment of the present invention further provides a log collection system, including: the system comprises a remote device, a client and at least one client server; the remote equipment is in communication connection with the client server, and the client server and the client side have communication connection for service data transmission; wherein,
the remote device is used for sending the log control message to the client through the client server;
the client is configured to receive a log control message from the remote device forwarded by the client server, where the log control message includes client configuration information, create a log capture thread for acquiring a log file according to the client configuration information, and send the log file acquired by the log capture thread to the remote device or a log saving device specified by the remote device.
An embodiment of the present invention further provides a client, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the log collection method described above.
An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program is configured to implement the log collection method described above when executed by a processor.
Compared with the prior art, the log collection method and the log collection system have the advantages that the log collection process is started by receiving the log control message which is transmitted by the remote device and forwarded by the client server, the client side acquires the client configuration information in the log control message, creates the log capturing thread to acquire the log file, and transmits the acquired log file to the remote device or the log storage device appointed by the remote device. For the remote equipment needing to collect the log files, the log files can be obtained only by sending the log control message, and how to realize the inside of the target object of the log files to be collected is not concerned, so that the remote collection of the logs is realized, and the process is simple and quick.
In addition, according to the log collection method provided by the embodiment of the present invention, the client includes a Modem side processor and an AP side processor; the creating of the log capturing thread for acquiring the log file according to the client configuration information comprises: sending the received client configuration information to the Modem side processor; the Modem side processor sends the client configuration information to the AP side processor through a preset communication interface message; and the AP side processor creates a log capturing thread for acquiring the log file according to the client configuration information. And the Modem side processor in the client receives the client configuration information and forwards the client configuration information to the AP side processor, and the AP side processor creates a log capturing thread to rapidly capture the log.
In addition, the log collection method according to an embodiment of the present invention, where sending the log file acquired by the log capture thread to the remote device or a log storage device designated by the remote device, includes: when the remote equipment is a server, the log file acquired through the log capturing thread is sent to the remote equipment through the client server; and when the remote equipment is a client, directly sending the log file acquired by the log capturing thread to the log storage equipment appointed by the remote equipment. The acquired log file needs to occupy huge storage space, and when the remote device is a client, the huge log file cannot be completely stored, and the huge log file needs to be stored in log storage equipment which is pre-designated by the remote device.
In addition, the log collection method according to an embodiment of the present invention, where the remote device is a client, directly sending the log file acquired by the log capture thread to the log storage device designated by the remote device, includes: when the remote equipment is a client, creating a log transmission thread according to the client configuration information, wherein the client configuration information comprises log storage information for specifying log storage equipment; establishing communication connection with the designated log storage equipment through the log transmission thread; and directly sending the log file acquired by the log capturing thread to the designated log storage equipment through the log transmission thread. The log file is directly sent to the log storage equipment appointed by the remote equipment through the log transmission thread, and the transmission process is quicker without being forwarded by a client server.
In addition, the log collection method according to an embodiment of the present invention, after sending the log file acquired by the log capture thread to the remote device or a log saving device designated by the remote device, further includes: receiving a log capture termination message sent by a remote device and forwarded by the client server; and terminating the acquisition of the log file of the log capturing thread according to the log capturing termination message.
In addition, in the log collection system provided by the embodiment of the present invention, the client includes a Modem side processor and an AP side processor; the Modem side processor is used for receiving the client configuration information sent by the client and sending the client configuration information to the AP side processor through a predefined communication interface message; and the AP side processor is used for creating a log capturing thread for acquiring the log file according to the client configuration information.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a flowchart of a log collection method according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a log collection method provided by a second embodiment of the invention;
FIG. 3 is a flow chart of a log collection method provided by a third embodiment of the present invention;
FIG. 4 is a first flowchart of a log collection method according to a fourth embodiment of the present invention;
FIG. 5 is a second flowchart of a log collection method according to a fourth embodiment of the present invention;
fig. 6 is a flowchart of a log collection method according to a fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a log collection system according to a sixth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a client 702 in the log collection system according to a sixth embodiment of the present invention;
fig. 9 is a schematic structural diagram of a client according to a seventh embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
A first embodiment of the present invention relates to a log collection method, which is applied to a client, where the client and at least one client server have a communication connection for service data transmission, and a specific flow is as shown in fig. 1, where the method includes:
Specifically, the remote device in this embodiment may be a server, or a network device such as a client and the like for initiating log collection, where the client is a target object of a log file to be collected, and there is a communication connection for service data transmission between the client and at least one client server, and it should be noted that a normal service of the client also needs to be completed in a log remote collection process between the client and the client server, so that the client and the client server always maintain communication connection and have data interaction, and the remote device borrows this connection, and can start a log remote collection process only by establishing a connection with the client server.
In addition, the communication connection between the remote device and the client server may be any connection mode, such as a TCP connection, a UDP connection, or an IP connection, and certainly, the sending and receiving of the messages between the user device and the remote device follow the corresponding communication protocol and the message encapsulation format. It should be noted that, before establishing the TCP/IP connection, PPP (Point to Point protocol) dialing needs to be performed, where PPP is a Point to Point protocol.
Specifically, the client configuration information may include log configuration information, log problem information, log saving server information, and the like, which is only a specific example here, and other information may be included in the actual use process. In addition, the collection of the log file is generally used for analyzing and judging the failure cause when the device fails, so the client configuration information in this embodiment may be the log configuration information, the log problem information, the log saving server information and the like manually input by the client initiating the log information collection, or when the failure occurs, the log collection process may be automatically triggered, and the remote device automatically configures the client configuration information such as the log configuration information, the log problem information and the log saving server information which are matched with the failure type.
And 103, sending the log file acquired through the log capturing thread to the remote equipment or log saving equipment appointed by the remote equipment.
Specifically, when the remote device needs to collect the log file of a certain module or unit in the client, the log capturing thread acquires the log file of the module or unit by monitoring each communication port of the module or unit. That is, the specific target object for the created log capture thread to obtain the log file may be determined from the client configuration information.
In addition, the complete log file generally needs to occupy a huge storage space, if all log files are sent together, the transmission efficiency is extremely low, a lot of time is consumed, and once the communication connection is interrupted or fails, all log files need to be retransmitted. Therefore, when the log file is transmitted, the log file can be divided into a plurality of sub-files to be transmitted, or the log file can be packaged into a log file with a specific format by encoding processing, or compression processing can be performed.
Compared with the prior art, the log collection method and the log collection system have the advantages that the log collection process is started by receiving the log control message which is transmitted by the remote device and forwarded by the client server, the client side acquires the client configuration information in the log control message, creates the log capturing thread to acquire the log file, and transmits the acquired log file to the remote device or the log storage device appointed by the remote device. For the remote equipment needing to collect the log files, the log files can be obtained only by sending the log control message, and how to realize the inside of the target object of the log files to be collected is not concerned, so that the remote collection of the logs is realized, and the process is simple and quick.
A second embodiment of the present invention relates to a log collection method, which is applied to a client, where the client and at least one client server have a communication connection for service data transmission, and the client further includes a Modem-side processor and an AP-side processor, as shown in fig. 2, and specifically includes:
Specifically, in the present embodiment, the micro control unit in the client is specifically configured to receive the client configuration information, and the micro control unit transmits the received client configuration information to the Modem-side processor in the form of an AT instruction.
In step 203, the Modem side processor transmits the client configuration information to the AP side processor via a predetermined communication interface message.
Specifically, the Modem-side processor and the AP-side processor communicate with each other through predefined communication interface messages, for example, the Modem-side processor and the AP-side processor provided by the high-pass platform communicate with each other through a QMI (qualcomm Message interface) Message, where the QMI is a functional interface of multiprocessor inter-process communication provided by the high-pass platform, that is, the Modem-side processor and the AP-side processor need to communicate with each other according to a QMI protocol. Of course, processors of other platforms may be used, and the inter-processor message transmission follows the corresponding communication interface protocol.
In step 204, the AP-side processor creates a log capture thread for acquiring log files according to the client configuration information.
Specifically, when receiving a communication interface message containing client configuration information sent by a Modem side processor, the AP side processor starts a log capture program, reads the client configuration information in the communication interface message, creates a log capture thread, and monitors each port of a target object of a log file to be collected, where the target object may be the entire client or a certain module or unit in the client. In addition, when the log capturing thread monitors that the port has output, the current time can be read, and the log file is saved by taking the current time as the file name. Of course, the log file name may be set in other forms, such as: in the form of fault/problem type, fault object, etc.
In step 205, the log file acquired by the log capture thread is sent to the remote device or the log saving device designated by the remote device.
Step 205 in this embodiment is substantially the same as step 103 in the first embodiment, and is not repeated here.
Compared with the prior art, the method and the device have the advantages that the log collection process is started by receiving the log control message which is transmitted by the remote device and forwarded by the client server, the AP side processor in the client creates a log capture thread according to the client configuration information, monitors each port of the target object of the log file to be collected, and transmits the acquired log file to the remote device or the log storage device appointed by the remote device. For the remote equipment needing to collect the log files, the log files of the client or all modules (units) in the client can be collected only by sending the log control message, and the whole process is quick and simple.
A third embodiment of the present invention relates to a log collection method, which is applied to a client, where the client and at least one client server have a communication connection for service data transmission, as shown in fig. 3, and the method specifically includes:
Step 301 in this embodiment is substantially the same as step 101 in the first embodiment, and is not repeated here.
Step 302 in this embodiment is substantially the same as step 102 in the first embodiment, and therefore, the description thereof is omitted.
Specifically, the complete log file generally needs to occupy a huge storage space, and when the remote device is a server, all log files can be stored. Thus, the client sends the log file to the remote device via the original path, i.e., via the client server. In addition, if all log files are sent together in the transmission process, the transmission efficiency is extremely low, a lot of time is consumed, and once the communication connection is interrupted or fails, all log files need to be retransmitted. Therefore, when the log file is transmitted, the log file can be divided into a plurality of sub-files to be transmitted, or the log file can be packaged into a log file with a specific format by encoding processing, or compression processing can be performed.
Compared with the prior art, the log collection method and the log collection system have the advantages that the log collection process is started by receiving the log control message transmitted by the client server and sent by the remote equipment, the client side acquires the client configuration information in the log control message, creates the log capturing thread to acquire the log file, and when the remote equipment is the server, the client side transmits the acquired log file to the remote equipment through the client server. For the remote equipment needing to collect the log files, the log files can be obtained only by sending the log control message, and how to realize the inside of the target object of the log files to be collected is not concerned, so that the remote collection of the logs is realized, and the process is simple and quick.
A fourth embodiment of the present invention relates to a log collection method, which is applied to a client, where the client and at least one client server have a communication connection for service data transmission, as shown in fig. 4, and the method specifically includes:
Step 401 in this embodiment is substantially the same as step 101 in the first embodiment, and is not repeated here.
Specifically, the client comprises a Modem side processor and an AP side processor, the client sends client configuration information to the AP side processor through the Modem side processor through an AT instruction, and the AP side processor is used for creating a log capturing thread according to the client configuration information.
It should be noted that, a complete log file generally needs to occupy a huge storage space, when the remote device is a client, all log files cannot be completely stored, and even if the huge log file can be stored, the remote device is already in a full load state at this time, and cannot perform other tasks, such as reading of the log file, analysis of the log file, and the like. Therefore, it is necessary to specify a device dedicated to log saving, such as a log saving server, which has a large storage space, in advance.
Further, as shown in fig. 5, step 403 specifically includes:
Specifically, the creation of the log transmission thread is also completed by the AP-side processor, and the specific process is basically the same as the creation of the log capture thread. It should be noted that, whether the client creates the log transmission thread is indicated by the log saving information, and when the log saving information is the remote device itself, the log transmission thread does not need to be created; when the log saving information is the log saving device designated by the remote device, the log saving information needs to be created.
Specifically, the communication connection between the client and the log saving device may be any connection mode, such as a TCP connection, a UDP connection, or an IP connection, and the sending and receiving of the log file between the client and the log saving device conform to a corresponding communication protocol and a message encapsulation format. It should be noted that, before establishing the TCP/IP connection, PPP (Point to Point protocol) dialing needs to be performed, where PPP is a Point to Point protocol.
Specifically, when the log capturing thread monitors that the log file is output from the target object port, a message is sent immediately to inform the log transmission thread to start transmitting the log file. And the log capturing thread and the log transmission thread are communicated through a mutual exclusion lock.
Compared with the prior art, the log collection method and the log collection system have the advantages that the log collection process is started by receiving the log control message which is transmitted by the client server and is sent by the remote equipment, the client side acquires the client configuration information in the log control message, creates the log capturing thread to acquire the log file, and when the remote equipment is the client side, the log file is directly sent to the log storage equipment appointed by the remote equipment through the log transmission thread. For the remote equipment needing to collect the log files, the log files can be obtained only by sending the log control message, and how to realize the inside of the target object of the log files to be collected is not concerned, so that the remote collection of the logs is realized, and the process is simple and quick.
A fifth embodiment of the present invention relates to a log collection method, which is applied to a client, where the client and at least one client server have a communication connection for service data transmission, as shown in fig. 6, and the method specifically includes:
In this embodiment, the termination of log capture is also initiated by a remote device, specifically, the remote device sends a log capture termination message, a micro control unit MCU of the user device receives the log capture termination message, the micro control unit sends the log capture termination message to a Modem-side processor in the communication module through an AT instruction, the Modem-side processor sends the log capture termination message to an AP-side processor in the communication module through a communication interface message, and finally, the AP-side processor terminates the log capture. The whole log capture termination process is basically the same as the log capture start process, and the specific details are not described herein.
In addition, the steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps into multiple steps, and all the steps are within the scope of the patent as long as the same logical relationship is included; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A sixth embodiment of the present invention relates to a log collection system, as shown in fig. 7, including: a remote device 701, a client 702, and at least one client server 703; the remote device 701 is in communication connection with the client server 703, and the client server 703 and the client 702 have communication connection for service data transmission; wherein,
a remote device 701, configured to send a log control message to a client via a client server 703.
The client 702 is configured to receive a log control message from the remote device forwarded by the client server 703, where the log control message includes client configuration information, create a log capture thread for acquiring a log file according to the client configuration information, and send the log file acquired by the log capture thread to the remote device or a log storage device designated by the remote device.
It should be noted that, as shown in fig. 7(a), when the remote device 701 is a server, all complete log files may be stored, so that the remote device 701 sends a log control message, and forwards the log control message to the client 702 via the client server 703 to start log collection. The log file collected by the client 702 is returned to the remote device 701 via the original path, i.e. the client server 703. As shown in fig. 7(b), when the remote device 701 is a client, the remote device 701 does not have a large storage space for storing log files, so the remote device 701 sends a log control message, and forwards the log control message to the client 702 via the client server 703 to start log collection. And the log files collected by the client 702 are sent directly to the designated log saving device 704.
Further, as shown in fig. 8, the client 702 includes:
a Modem side processor 801, configured to receive the client configuration information sent by the client 702, and send the client configuration information to the AP side processor through a predefined communication interface message;
the AP-side processor 802 is configured to receive client configuration information sent by the Modem-side processor 801, and create a log capture thread for acquiring a log file according to the client configuration information.
It should be understood that the modules in this embodiment are system examples corresponding to the first embodiment, and therefore this embodiment can be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
It should be noted that the log collection system provided in this embodiment describes only the main device and the main module, and does not represent that the log collection system does not include other basic modules or units for implementing the log collection method of the present invention.
A seventh embodiment of the present invention relates to a client, as shown in fig. 9, including:
at least one processor 901; and the number of the first and second groups,
a memory 902 communicatively connected to the at least one processor 901; wherein,
the memory 902 stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor 901, so that the at least one processor 901 can execute the log collection method according to the first to fourth embodiments of the present invention.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
An eighth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.
Claims (10)
1. A log collection method applied to a client having a communication connection with at least one client server for traffic data transmission, the method comprising:
receiving a log control message from a remote device forwarded by the client server, wherein the log control message contains client configuration information;
creating a log capturing thread for acquiring log files according to the client configuration information;
and sending the log file acquired by the log capturing thread to the remote equipment or log storage equipment appointed by the remote equipment.
2. The log collection method of claim 1, wherein the client comprises a Modem-side processor and an AP-side processor;
the creating of the log capturing thread for acquiring the log file according to the client configuration information comprises:
sending the received client configuration information to the Modem side processor;
the Modem side processor sends the client configuration information to the AP side processor through a preset communication interface message;
and the AP side processor creates a log capturing thread for acquiring the log file according to the client configuration information.
3. The log collection method according to claim 1, wherein the sending the log file acquired by the log capture thread to the remote device or a log saving device designated by the remote device includes:
when the remote equipment is a server, the log file acquired through the log capturing thread is sent to the remote equipment through the client server;
and when the remote equipment is a client, directly sending the log file acquired by the log capturing thread to the log storage equipment appointed by the remote equipment.
4. The log collection method according to claim 3, wherein when the remote device is a client, directly sending the log file acquired by the log capture thread to a log saving device designated by the remote device, includes:
creating a log transmission thread according to the client configuration information, wherein the client configuration information comprises log saving information used for designating log saving equipment;
establishing communication connection with the designated log storage equipment through the log transmission thread;
and directly sending the log file acquired by the log capturing thread to the designated log storage equipment through the log transmission thread.
5. The log collection method according to claim 4, wherein the sending the log file acquired by the log capture thread directly to the designated log saving device via the log transmission thread comprises:
and informing the log transmission thread to send the log file to the designated log storage equipment by a log capturing thread in the client in a mutual exclusion lock mode.
6. The log collection method according to claim 1, wherein after the sending the log file acquired by the log capture thread to the remote device or a log saving device designated by the remote device, the method further comprises:
receiving a log capture termination message sent by a remote device and forwarded by the client server;
and terminating the acquisition of the log file of the log capturing thread according to the log capturing termination message.
7. A log collection system, comprising: the system comprises a remote device, a client and at least one client server; the remote equipment is in communication connection with the client server, and the client server and the client side have communication connection for service data transmission; wherein,
the remote device is used for sending a log control message to the client through the client server;
the client is configured to receive a log control message from the remote device forwarded by the client server, where the log control message includes client configuration information, create a log capture thread for acquiring a log file according to the client configuration information, and send the log file acquired by the log capture thread to the remote device or a log saving device specified by the remote device.
8. The log collection system of claim 7,
the client comprises a Modem side processor and an AP side processor;
the Modem side processor is used for receiving the client configuration information sent by the client and sending the client configuration information to the AP side processor through a predefined communication interface message;
and the AP side processor is used for receiving the client configuration information sent by the Modem side processor and creating a log capturing thread for acquiring the log file according to the client configuration information.
9. A client, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the log collection method of any of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the log collection method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110507049.6A CN113190410A (en) | 2021-05-10 | 2021-05-10 | Log collection method, system, client and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110507049.6A CN113190410A (en) | 2021-05-10 | 2021-05-10 | Log collection method, system, client and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113190410A true CN113190410A (en) | 2021-07-30 |
Family
ID=76980941
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110507049.6A Pending CN113190410A (en) | 2021-05-10 | 2021-05-10 | Log collection method, system, client and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113190410A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115209394A (en) * | 2022-05-31 | 2022-10-18 | 深圳市广和通无线股份有限公司 | Log capture method, device, equipment and storage medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043375A (en) * | 2007-03-15 | 2007-09-26 | 华为技术有限公司 | Distributed system journal collecting method and system |
CN101227643A (en) * | 2008-01-21 | 2008-07-23 | 中兴通讯股份有限公司 | Terminal log conveying system and method |
CN101930468A (en) * | 2010-08-31 | 2010-12-29 | 中兴通讯股份有限公司 | File acquisition method and system |
CN103914485A (en) * | 2013-01-07 | 2014-07-09 | 上海宝信软件股份有限公司 | System and method for remotely collecting, retrieving and displaying application system logs |
CN104252405A (en) * | 2013-06-26 | 2014-12-31 | 腾讯科技(深圳)有限公司 | Log information output method and device |
CN104346265A (en) * | 2013-07-29 | 2015-02-11 | 比亚迪股份有限公司 | Terminal equipment and acquisition method and device for log information thereof |
CN106100879A (en) * | 2016-06-07 | 2016-11-09 | 青岛海信移动通信技术股份有限公司 | Mobile terminal journal obtaining method and device |
CN107181633A (en) * | 2017-07-27 | 2017-09-19 | 郑州云海信息技术有限公司 | A kind of method and system of long-range acquisition business diary |
CN109558284A (en) * | 2018-12-03 | 2019-04-02 | 浪潮电子信息产业股份有限公司 | BMC fault analysis positioning method, device, equipment and readable storage medium |
CN109885548A (en) * | 2019-02-22 | 2019-06-14 | 网易(杭州)网络有限公司 | Log inquiring method, device, storage medium and electronic device |
CN110134540A (en) * | 2019-05-21 | 2019-08-16 | 苏州浪潮智能科技有限公司 | A kind of log information collection method, device, equipment and readable storage medium storing program for executing |
CN110912998A (en) * | 2019-11-26 | 2020-03-24 | 福建汉特云智能科技有限公司 | Vehicle problem troubleshooting system and method based on remote equipment terminal |
CN112350861A (en) * | 2020-10-29 | 2021-02-09 | 深圳市广和通无线股份有限公司 | Log obtaining method and device, computer equipment and storage medium |
-
2021
- 2021-05-10 CN CN202110507049.6A patent/CN113190410A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043375A (en) * | 2007-03-15 | 2007-09-26 | 华为技术有限公司 | Distributed system journal collecting method and system |
CN101227643A (en) * | 2008-01-21 | 2008-07-23 | 中兴通讯股份有限公司 | Terminal log conveying system and method |
CN101930468A (en) * | 2010-08-31 | 2010-12-29 | 中兴通讯股份有限公司 | File acquisition method and system |
CN103914485A (en) * | 2013-01-07 | 2014-07-09 | 上海宝信软件股份有限公司 | System and method for remotely collecting, retrieving and displaying application system logs |
CN104252405A (en) * | 2013-06-26 | 2014-12-31 | 腾讯科技(深圳)有限公司 | Log information output method and device |
CN104346265A (en) * | 2013-07-29 | 2015-02-11 | 比亚迪股份有限公司 | Terminal equipment and acquisition method and device for log information thereof |
CN106100879A (en) * | 2016-06-07 | 2016-11-09 | 青岛海信移动通信技术股份有限公司 | Mobile terminal journal obtaining method and device |
CN107181633A (en) * | 2017-07-27 | 2017-09-19 | 郑州云海信息技术有限公司 | A kind of method and system of long-range acquisition business diary |
CN109558284A (en) * | 2018-12-03 | 2019-04-02 | 浪潮电子信息产业股份有限公司 | BMC fault analysis positioning method, device, equipment and readable storage medium |
CN109885548A (en) * | 2019-02-22 | 2019-06-14 | 网易(杭州)网络有限公司 | Log inquiring method, device, storage medium and electronic device |
CN110134540A (en) * | 2019-05-21 | 2019-08-16 | 苏州浪潮智能科技有限公司 | A kind of log information collection method, device, equipment and readable storage medium storing program for executing |
CN110912998A (en) * | 2019-11-26 | 2020-03-24 | 福建汉特云智能科技有限公司 | Vehicle problem troubleshooting system and method based on remote equipment terminal |
CN112350861A (en) * | 2020-10-29 | 2021-02-09 | 深圳市广和通无线股份有限公司 | Log obtaining method and device, computer equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115209394A (en) * | 2022-05-31 | 2022-10-18 | 深圳市广和通无线股份有限公司 | Log capture method, device, equipment and storage medium |
CN115209394B (en) * | 2022-05-31 | 2024-08-30 | 深圳市广和通无线股份有限公司 | Log grabbing method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109766163B (en) | Synchronous display method and device, storage medium and electronic device | |
CN113595961A (en) | Protocol conversion method and system, and gateway device | |
CN105978860B (en) | A kind of implementation method of electric system software interface adapter | |
CN109981360B (en) | Internet of things equipment site opening method, device and system and storage medium | |
CN111294235B (en) | Data processing method, device, gateway and readable storage medium | |
CN105450479A (en) | Method and apparatus for monitoring module | |
US20230114166A1 (en) | Log acquisition method and apparatus, terminal, server, and computer readable storage medium | |
CN101185070A (en) | Device management system and method for setting configuration-value therein | |
CN111831499A (en) | Remote debugging method, device, server, readable storage medium and system | |
CN113190410A (en) | Log collection method, system, client and storage medium | |
CN110535919B (en) | Network access method and device of concentrator and power peak regulation system | |
CN104424036A (en) | Synchronous operation method and device of smart terminal | |
CN111552268A (en) | Vehicle remote diagnosis method, equipment connector and vehicle connector | |
CN112511621B (en) | Data transmission method and device, storage medium, and electronic device | |
CN111832273A (en) | Method and device for determining destination message, storage medium and electronic device | |
CN111884938B (en) | Router information acquisition method and device | |
CN111240904A (en) | Database backup method and device, electronic equipment and storage medium | |
CN109271454B (en) | Data synchronization method and network equipment | |
CN113794527B (en) | Adaptive frame length wired telemetry forwarding system and self-checking method for deep space exploration circulator | |
CN213990708U (en) | Agricultural machinery operation information remote transmission device and agricultural machinery | |
CN112953988B (en) | Data docking method and device based on FTP | |
CN116980286A (en) | Device configuration method, device control method, storage medium, and terminal | |
CN110602458B (en) | Image forwarding method and related device | |
EP3038390B1 (en) | Processing method and apparatus for signaling tracing | |
CN112698948A (en) | Method and device for acquiring product resources, storage medium and electronic device |
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 |