CN112968927A - Log extraction method, log extraction device, storage medium and electronic equipment - Google Patents

Log extraction method, log extraction device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112968927A
CN112968927A CN202110116760.9A CN202110116760A CN112968927A CN 112968927 A CN112968927 A CN 112968927A CN 202110116760 A CN202110116760 A CN 202110116760A CN 112968927 A CN112968927 A CN 112968927A
Authority
CN
China
Prior art keywords
log extraction
log
mobile client
client
network address
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.)
Granted
Application number
CN202110116760.9A
Other languages
Chinese (zh)
Other versions
CN112968927B (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202110116760.9A priority Critical patent/CN112968927B/en
Publication of CN112968927A publication Critical patent/CN112968927A/en
Application granted granted Critical
Publication of CN112968927B publication Critical patent/CN112968927B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Abstract

The disclosure provides a log extraction method, a log extraction device, a computer-readable storage medium and electronic equipment, and relates to the technical field of information processing. The log extraction method comprises the following steps: responding to a file transfer starting instruction based on ftp, and sending the network address of the mobile client to a transfer server so that the transfer server sends the network address of the mobile client to a log extraction end; receiving a connection request sent by a network address of a mobile client of a log extraction terminal, and establishing ftp connection with the log extraction terminal; the log extraction end has network addresses of a plurality of mobile clients, and the connection request is determined by the log extraction end responding to a client selection instruction; and under the condition that the mobile client is connected with the log extraction terminal, sending log list information to the log extraction terminal so that the log extraction terminal can finish the log extraction process. The method and the device can reduce the log extraction cost and improve the log confidentiality.

Description

Log extraction method, log extraction device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of information processing technologies, and in particular, to a log extraction method, a log extraction device, a computer-readable storage medium, and an electronic device.
Background
Currently, when a piece of mobile phone software, such as a piece of mobile game software, is developed, a series of tests are continuously performed on a mobile phone client to check problems.
For developers, extracting the running log of the mobile client for analysis and verification is one of important verification means. The log extraction scheme adopted by the developer comprises the following steps: firstly, a mobile phone is connected with a computer end by a data line, then a log directory of a mobile client is opened at the computer end, and then logs in the log directory are copied to the computer end so as to carry out a verification process. For the mobile phone of the apple system, a developer needs to open the authority of the shared directory to copy the log. However, the existing technical solution will cause the problems of high log extraction cost and low log security.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a log extraction method, a log extraction apparatus, a computer-readable storage medium, and an electronic device, which overcome, at least to some extent, the problems of high log extraction cost and low log security due to the limitations and disadvantages of the related art.
According to a first aspect of the present disclosure, there is provided a log extraction method, including: responding to a file transfer starting instruction based on ftp, and sending the network address of the mobile client to a transfer server so that the transfer server sends the network address of the mobile client to a log extraction end; receiving a connection request sent by a network address of a mobile client of a log extraction terminal, and establishing ftp connection with the log extraction terminal; the log extraction end has network addresses of a plurality of mobile clients, and the connection request is determined by the log extraction end responding to a client selection instruction; and under the condition that the mobile client is connected with the log extraction terminal, sending log list information to the log extraction terminal so that the log extraction terminal can finish the log extraction process.
According to a second aspect of the present disclosure, there is provided a log extraction method, including: acquiring a network address of the mobile client from the transfer server, wherein the network address of the mobile client is a network address which is sent to the transfer server by the mobile client in response to the ftp-based file transfer start instruction; responding to the client selection instruction, determining a connection request of the mobile client corresponding to the client selection instruction, and sending the connection request to the mobile client based on the network address of the mobile client so as to establish ftp connection for the mobile client; and under the condition that the mobile client is connected with the log extraction terminal, receiving log list information sent by the mobile client so as to finish the log extraction process.
According to a third aspect of the present disclosure, there is provided a log extraction device including: the address sending module is used for responding to a file transfer starting instruction based on ftp and sending the network address of the mobile client to the transfer server so that the transfer server can send the network address of the mobile client to the log extraction end; the connection establishing module is used for receiving a connection request sent by the log extracting end based on the network address of the mobile client and establishing ftp connection with the log extracting end; the log extraction end has network addresses of a plurality of mobile clients, and the connection request is determined by the log extraction end responding to a client selection instruction; and the information sending module is used for sending the log list information to the log extraction end under the condition that the mobile client is connected with the log extraction end, so that the log extraction end can complete the log extraction process.
Optionally, the log extracting apparatus may be further configured to perform: receiving a log extraction request sent by a log extraction end, wherein the log extraction request is determined by the log extraction end in response to a log selection operation aiming at log list information; and responding to the log extraction request, and sending the log corresponding to the log extraction request to a log extraction terminal.
According to a fourth aspect of the present disclosure, there is provided a log extraction device including: an address acquisition module, configured to acquire a network address of the mobile client from the transfer server, where the network address of the mobile client is a network address that the mobile client sends to the transfer server in response to the ftp-based file transfer start instruction; the request sending module is used for responding to the client selecting instruction, determining a connection request of the mobile client corresponding to the client selecting instruction, and sending the connection request to the mobile client based on the network address of the mobile client so as to establish ftp connection with the mobile client; and the information receiving module is used for receiving the log list information sent by the mobile client under the condition that the mobile client is connected with the log extraction terminal so as to finish the log extraction process.
Optionally, the address obtaining module may be further configured to perform: sending a client address request to a transfer server; and receiving the network address of the mobile client sent by the transit server in response to the client address request.
According to a fifth aspect of the present disclosure, there is provided a log extraction system including: the system comprises at least one mobile client, a transfer server and a log extraction terminal, wherein the mobile client is used for respectively responding to a file transfer starting instruction based on ftp, sending a network address of the mobile client to the transfer server, establishing ftp connection with the log extraction terminal and sending log list information to the log extraction terminal; the transfer server is used for respectively receiving the network addresses of at least one mobile client and sending the network addresses of at least one mobile client to the log extraction end; and the log extraction terminal is used for responding to the client selection instruction to determine a connection request, respectively sending the connection request to the at least one mobile client, and respectively receiving the log list information of the at least one mobile client so as to complete the log extraction process.
Optionally, the transit server may be further configured to perform: monitoring whether an unreceived network address exists at every interval of a first preset time; and if the network address which is not received exists, receiving the network address which is not received.
Optionally, the transit server may be further configured to perform: receiving a client address request sent by a log extraction terminal; and responding to the client address request, and sending the network address of at least one mobile client to the log extraction terminal.
Optionally, the transit server may be further configured to perform: monitoring whether a log extraction end sends a client address request or not every second preset time interval; if the log extraction terminal sends a client address request, determining the network addresses of one or more mobile clients which are not sent; and responding to the client address request, and sending the network addresses of one or more mobile clients which are not sent to the log extraction terminal.
According to a sixth aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the log extraction method as described above.
According to a seventh aspect of the present disclosure, there is provided an electronic device comprising: one or more processors; a storage device for storing one or more programs which, when executed by one or more processors, cause the one or more processors to implement the log extraction method as described above.
Exemplary embodiments of the present disclosure have the following advantageous effects:
in the technical solutions provided by some embodiments of the present disclosure, first, in response to an ftp-based file transfer start instruction, sending a network address of a mobile client to a relay server, so that the relay server sends the network address of the mobile client to a log extraction end; then, receiving a connection request sent by a network address of the mobile client side of the log extraction terminal, and establishing ftp connection with the log extraction terminal; and then, under the condition that the mobile client is connected with the log extraction terminal, sending log list information to the log extraction terminal so that the log extraction terminal can finish the log extraction process. On one hand, the mobile client and the log extraction end are connected in an ftp mode, the mobile client and the log extraction end are prevented from being connected through a data line, the cost of the log extraction process is reduced, meanwhile, the mobile client and the log extraction end can be located in different areas or places, the situation that the positions of the mobile client and the log extraction end are fixed through the data line is avoided, and the using range of log extraction is expanded. On the other hand, the log extraction terminal extracts the log based on ftp connection, so that the problem of log leakage caused by opening the directory sharing authority of the mobile client is avoided, and the log confidentiality is improved.
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 disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
fig. 1 schematically illustrates a system diagram of a log extraction method according to an exemplary embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow diagram of a log extraction method according to an exemplary embodiment of the present disclosure;
FIG. 3 schematically illustrates an interface diagram of a log extraction side according to an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of a log extraction method according to an exemplary embodiment of the present disclosure;
FIG. 5 schematically illustrates an interaction diagram of a log extraction method according to an exemplary embodiment of the present disclosure;
FIG. 6 schematically illustrates a block diagram of a log extraction apparatus according to an exemplary embodiment of the present disclosure;
FIG. 7 schematically illustrates a block diagram of a log extraction apparatus according to an exemplary embodiment of the present disclosure;
fig. 8 schematically shows a block diagram of an electronic device in an exemplary embodiment according to the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
In the present disclosure, the terms "comprises" and "comprising" are used in an open-ended fashion, and mean that there may be additional elements/components/etc. in addition to the listed elements/components/etc. In addition, the terms "first" and "second" used in the present disclosure are for the purpose of distinction only and should not be construed as a limitation of the present disclosure.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
At the present stage, in the process of developing the mobile phone software, a developer can extract the running log of the mobile phone software to analyze and check the problem of the mobile phone software.
For different types of mobile phone systems, developers adopt different log extraction schemes. For a mobile phone with an android system, the mobile phone is connected to a computer end through a data line, then a log directory of a mobile phone client is opened at the computer end, and then logs in the log directory are copied to the computer end to perform subsequent verification operation. Aiming at the mobile phone of the IOS system, firstly, the directory sharing authority of a mobile phone client is opened, then, the mobile phone is connected to a computer terminal by using a data line, and then, the log in the log directory is copied to the computer terminal so as to complete verification operation.
However, the existing technical solution uses a data line to cause a problem of high log extraction cost, and for a mobile phone of the IOS system, opening a directory sharing authority of a mobile phone client causes a problem of low log confidentiality.
To address this problem, the present disclosure relates to a log extraction system.
As shown in fig. 1, the log extraction system of the present disclosure may include a log extraction terminal 102, a transit server 104, and a mobile client. Among other things, the mobile clients may include mobile client 106, mobile client 108, mobile client 110, and mobile client 112. The mobile clients 106, 108, 110, and 112 given in FIG. 1 are examples only, and the number of mobile clients of the log extraction system is not limited.
In an exemplary embodiment of the present disclosure, the mobile client may respectively respond to the ftp-based file transfer start instruction, the mobile client may transmit a network address of the mobile client to the relay server 104, and the mobile client may establish an ftp connection with the log extraction terminal 102 and transmit log list information to the log extraction terminal 102. The network address of the mobile client may be an Ip address of the mobile client.
The transit server 104 may receive the network addresses of the mobile clients respectively, and the transit server 104 sends the network addresses of the mobile clients to the log extraction terminal 102.
The log extraction terminal 102 may determine the connection request in response to the client selection instruction, the log extraction terminal 102 may send the connection request to the mobile client, and the log extraction terminal 102 may receive log list information of the mobile client so as to complete a log extraction process.
In an exemplary embodiment of the present disclosure, a mobile client may be configured with an ftp-based file transfer apparatus. The transit server 104 may be a physical server having a hardware device, or may be a virtual server. The log extraction terminal can be configured on a personal computer, a tablet, a desktop computer, a mobile phone, and the like, but is not limited thereto. The mobile client may be configured in a cell phone, tablet, etc., but is not limited thereto.
Hereinafter, each step of the log extraction method in the present exemplary embodiment will be described in more detail with reference to the drawings and examples.
Fig. 2 schematically shows a flowchart of a log extraction method of an exemplary embodiment of the present disclosure. In the following description, a mobile client is taken as an execution subject for illustration. Referring to fig. 2, the log extraction method may specifically include the following steps:
s201, responding to a file transfer starting instruction based on ftp, and sending the network address of the mobile client to a transfer server, so that the transfer server sends the network address of the mobile client to a log extraction end.
In an exemplary embodiment of the present disclosure, the mobile client may be configured with an ftp-based file transfer apparatus so that the mobile client acts as a log provider during file transfer. The file transfer start instruction may be an instruction generated by the user triggering the ftp-based file transfer apparatus, or may be a file transfer start instruction that the mobile client self-triggers when the mobile client is opened by the user. The present disclosure does not limit the number of mobile clients. The network address of the mobile client may be the network address of the device configuring the mobile client. The mobile client may store a directory of client run logs.
When the mobile client sends the network address of the mobile client, the mobile client can send the device name, the address sending time, the device type and the like corresponding to the mobile client to the relay server, so that the relay server can forward the device name, the address sending time, the device type and the like to the log extraction end.
The transit server can receive and store the network address sent by the mobile client, the device name corresponding to the mobile client, the address sending time, the device type and other information. The relay server may be a virtual server disposed in the device at the log extraction side, or may be a virtual server disposed in a device other than the device at the log extraction side.
As shown in fig. 3, the interface of the log extraction end may show a device list 302 corresponding to the mobile client, where the device list may show a device name, address sending time, IP address, device type, and the like of at least one mobile client. The interface of the log extraction end can display the log extraction state. That is, the log extraction side may have network addresses of a plurality of mobile clients.
In an exemplary embodiment of the present disclosure, in response to the ftp-based file transfer start instruction, the plurality of mobile clients may simultaneously transmit the network addresses of the mobile clients to the relay server, or may sequentially transmit the network addresses of the mobile clients to the relay server.
According to an exemplary embodiment of the disclosure, a transit server monitors whether an unreceived network address exists every interval of a first preset duration; if the network address which is not received exists, the transit server receives the network address which is not received.
Wherein the first preset time period may be set to several seconds.
For example, after receiving a network address sent by a mobile client, the relay server first monitors that there are 3 network addresses that are not received after 2 seconds, then receives and stores the 3 network addresses that are not received to the relay server, and then, after 2 seconds, monitors that there are no network addresses that are not received, and then continues to monitor at 2 seconds.
And S203, receiving a connection request sent by the log extraction terminal based on the network address of the mobile client, and establishing ftp connection with the log extraction terminal.
In an exemplary embodiment of the present disclosure, the connection request may be determined by the log extraction side in response to a client selection instruction, wherein the client selection instruction may contain a network address of the selected mobile client. The client selection instruction may be generated by the log extraction end in response to the developer selecting a device corresponding to the mobile client from the device list.
The log extraction terminal disclosed by the invention responds to the client selection instruction, firstly, a connection request of the mobile client corresponding to the client selection instruction can be determined, then, the mobile client receives the connection request sent by the log extraction terminal based on the network address of the mobile client, and establishes ftp connection with the log extraction terminal to transmit the log stored by the mobile client.
According to the method and the device, the ftp connection is established between the mobile client and the log extraction end, the mobile client and the log extraction end are prevented from being connected through a data line, the cost of the log extraction process is reduced, meanwhile, the mobile client and the log extraction end can be located in different areas or places, the physical positions of the mobile client and the log extraction end are not limited, and the use range of log extraction is expanded.
S205, under the condition that the mobile client is connected with the log extraction terminal, log list information is sent to the log extraction terminal, so that the log extraction terminal can complete a log extraction process.
The log list information may include log directory information corresponding to logs stored by the mobile client.
According to an exemplary embodiment of the present disclosure, after the log extraction terminal receives the log list information, the mobile client may first receive a log extraction request sent by the log extraction terminal, and then, in response to the log extraction request, send a log corresponding to the log extraction request to the log extraction terminal.
The log extraction request may be determined by the log extraction side in response to a log selection operation for the log list information. The log extraction request can comprise the type of the log and the client corresponding to the log. The client corresponding to the log can be a game client, a shopping client, a travel ticket booking client and the like.
The mobile client sends the log of the mobile client to the log extraction end based on ftp connection, so that the directory sharing permission of the mobile client is prevented from being opened, and the log confidentiality is improved
Fig. 4 schematically shows a flowchart of a log extraction method of an exemplary embodiment of the present disclosure. In the following description, the log extraction side is taken as an execution subject for illustration. Referring to fig. 4, the log extraction method may specifically include the following steps:
in step S401, the log extraction end may obtain the network address of the mobile client from the transit server; in step S403, in response to the client selection instruction, the log extraction end may determine a connection request of the mobile client corresponding to the client selection instruction, and send the connection request to the mobile client based on the network address of the mobile client, so as to establish an ftp connection with the mobile client. In step S405, in the case that the mobile client establishes a connection with the log extraction end, the log extraction end may receive the log list information sent by the mobile client, so as to complete the log extraction process.
The transfer server may receive and store the network address of the mobile client sent to the transfer server in response to the ftp-based file transfer initiation instruction, prior to obtaining the network address of the mobile client.
According to an exemplary embodiment of the present disclosure, the log extraction side may first send a client address request to the transit server; then, the network address of the mobile client sent by the transit server in response to the client address request is received.
The client address request may be a request for the network addresses of all the mobile clients currently received by the transit server. The client address request may also contain a device list for all mobile clients currently received by the transit server.
The transit server of the present disclosure may store a network address of at least one mobile client. After receiving the client address request sent by the log extraction terminal, receiving the network address of at least one mobile client sent by the transit server based on the transit server responding to the client address request.
According to the exemplary embodiment of the disclosure, after the log list information is acquired, the log extraction terminal may first determine a log extraction request in response to a log selection operation of a developer for the log list information, and then the log extraction terminal may send the log extraction request to the mobile client so as to complete a log extraction process.
As shown in fig. 3, the interface of the log extraction end may show a device list 302, log list information 304, current log extraction conditions 306, and the like. The device list 302 may include a device name, an address sending time, a device type, and the like corresponding to at least one mobile client acquired by the log extraction terminal from the relay server. The log list information 304 may be a log list transmitted by a mobile client currently establishing an ftp connection with the log extraction terminal. The current log extraction case 306 may be a transmission case for a log sent by a mobile client currently establishing an ftp connection with the log extraction terminal.
The interface of the log extraction end can display the device information of the mobile clients establishing ftp connection with the log extraction end, so that a developer can manage and check the log extraction process of the mobile clients at the log extraction end, the log management is improved, the log extraction cost is reduced, and the log extraction steps of the mobile clients are simplified.
Fig. 5 schematically illustrates an interaction diagram of a log extraction method of an exemplary embodiment of the present disclosure. The method specifically comprises the following steps:
in step S502, the mobile client sends the network address of the mobile client to the relay server in response to the ftp-based file transfer start instruction, so that the relay server receives and stores the network address of the mobile client; in step S504, the transfer server receives the client address request sent by the log extraction end; in step S506, the transfer server responds to the client address request, and sends the network address of the mobile client to the log extraction end; in step S508, the mobile client may receive a connection request sent by the log extraction end based on the network address of the mobile client, and establish an ftp connection with the log extraction end; in step S510, when the mobile client establishes a connection with the log extraction end, the mobile client may send log list information to the log extraction end; in step S512, the log extracting end determines a log extracting request in response to the log selecting operation for the log list information; in step S514, the log extracting end sends a log extracting request to the mobile client; in step S516, the mobile client sends the log corresponding to the log extraction request to the log extraction end.
The mobile client of the present disclosure may be at least one mobile client. In step S506, the transit server responds to the client address request, and may also send the network address of at least one mobile client to the log extraction end; before step S508, the log extraction end may respond to the client selection instruction, determine a connection request of the mobile client corresponding to the client selection instruction, and send the connection request to the mobile client based on the network address of the mobile client.
The relay server can monitor whether the network address which is not received exists at intervals of a first preset time length; and if the network address which is not received exists, receiving the network address which is not received.
According to an exemplary embodiment of the disclosure, the transit server may first monitor whether the log extraction terminal sends the client address request every second preset duration; if the log extraction terminal sends a client address request, then the transfer server determines the network addresses of one or more mobile clients which are not sent; and then, responding to the client address request, and sending the network addresses of the one or more mobile clients which are not sent to the log extraction terminal.
The second preset duration may be longer than the first preset duration, or may be equal to the first preset duration.
The transfer server of the present disclosure may receive the network address of at least one mobile client at the same time, and after receiving the client address request sent by the log extraction end, send the network address of the at least one mobile client to the log extraction end, so that the log extraction end responds to the client selection instruction and establishes an ftp connection with the at least one mobile client. The log extraction process of the mobile clients is managed by the log extraction end, log extraction steps are simplified, log extraction efficiency is improved, and log extraction cost is reduced.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Further, in an exemplary embodiment of the present disclosure, a log extracting apparatus is also provided.
Fig. 6 schematically shows a block diagram of a log extraction apparatus according to an exemplary embodiment of the present disclosure. Referring to fig. 6, a log extracting apparatus 600 according to an exemplary embodiment of the present disclosure may include: an address sending module 601, a connection establishing module 603 and an information sending module 605.
The address sending module 601 is configured to send, in response to a file transfer start instruction based on ftp, a network address of the mobile client to the relay server, so that the relay server sends the network address of the mobile client to the log extraction end; the connection establishing module 603 is configured to receive a connection request sent by the log extraction end based on the network address of the mobile client, and establish ftp connection with the log extraction end; the log extraction end has network addresses of a plurality of mobile clients, and the connection request is determined by the log extraction end responding to a client selection instruction; and an information sending module 605, configured to send log list information to the log extraction end when the mobile client establishes a connection with the log extraction end, so that the log extraction end completes a log extraction process.
According to an exemplary embodiment of the present disclosure, the log extracting apparatus 600 may be further configured to perform: receiving a log extraction request sent by a log extraction end, wherein the log extraction request is determined by the log extraction end in response to a log selection operation aiming at log list information; and responding to the log extraction request, and sending the log corresponding to the log extraction request to a log extraction terminal.
Further, in an exemplary embodiment of the present disclosure, a log extracting apparatus is also provided.
Fig. 7 schematically shows a block diagram of a log extraction apparatus according to an exemplary embodiment of the present disclosure. Referring to fig. 7, a log extracting apparatus 700 according to an exemplary embodiment of the present disclosure may include: an address acquisition module 702, a request sending module 704 and an information receiving module 706.
The address obtaining module 702 is configured to obtain a network address of the mobile client from the transfer server, where the network address of the mobile client is a network address that the mobile client sends to the transfer server in response to the ftp-based file transfer start instruction; a request sending module 704, configured to, in response to the client selection instruction, determine a connection request of the mobile client corresponding to the client selection instruction, and send the connection request to the mobile client based on the network address of the mobile client, so as to establish an ftp connection with the mobile client; an information receiving module 706, configured to receive log list information sent by the mobile client when the mobile client establishes a connection with the log extraction end, so as to complete a log extraction process.
According to an exemplary embodiment of the present disclosure, the address obtaining module 702 may be further configured to perform: sending a client address request to a transfer server; and receiving the network address of the mobile client sent by the transit server in response to the client address request.
The details of each module/unit in the above-mentioned apparatus have been described in detail in the embodiments of the method section, and thus are not described again.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above-mentioned "exemplary methods" section of the present description, when the program product is run on the terminal device.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 800 according to this embodiment of the invention is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in fig. 8, electronic device 800 is in the form of a general purpose computing device. The components of the electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one memory unit 820, a bus 830 connecting different system components (including the memory unit 820 and the processing unit 810), and a display unit 840.
Wherein the storage unit stores program code that is executable by the processing unit 810 to cause the processing unit 810 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present specification. For example, the processing unit 810 may perform steps S201 to S205 shown in fig. 2 and steps S401 to S405 shown in fig. 4.
The storage unit 820 may include readable media in the form of volatile memory units such as a random access memory unit (RAM)8201 and/or a cache memory unit 8202, and may further include a read only memory unit (ROM) 8203.
The storage unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 830 may be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 800 may also communicate with one or more external devices 900 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to communicate with the electronic device 800, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 800 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 850. Also, the electronic device 800 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 860. As shown, the network adapter 860 communicates with the other modules of the electronic device 800 via the bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (12)

1. A log extraction method, comprising:
responding to a file transfer starting instruction based on ftp, and sending a network address of a mobile client to a transfer server so that the transfer server can send the network address of the mobile client to a log extraction end;
receiving a connection request sent by the log extraction terminal based on the network address of the mobile client, and establishing ftp connection with the log extraction terminal;
the log extraction end has network addresses of a plurality of mobile clients, and the connection request is determined by the log extraction end responding to a client selection instruction;
and under the condition that the mobile client is connected with the log extraction end, sending log list information to the log extraction end so that the log extraction end can finish a log extraction process.
2. The log extraction method according to claim 1, further comprising:
receiving a log extraction request sent by the log extraction terminal, wherein the log extraction request is determined by the log extraction terminal in response to a log selection operation for the log list information;
and responding to the log extraction request, and sending the log corresponding to the log extraction request to the log extraction terminal.
3. A log extraction method, comprising:
acquiring a network address of a mobile client from a transfer server, wherein the network address of the mobile client is the network address which is sent to the transfer server by the mobile client in response to an ftp-based file transfer initiation instruction;
responding to a client selection instruction, determining a connection request of the mobile client corresponding to the client selection instruction, and sending the connection request to the mobile client based on a network address of the mobile client so as to establish an ftp connection with the mobile client;
and under the condition that the mobile client is connected with the log extraction terminal, receiving log list information sent by the mobile client so as to finish the log extraction process.
4. The log extraction method of claim 3, wherein obtaining the network address of the mobile client from the relay server comprises:
sending a client address request to a transfer server;
and receiving the network address of the mobile client sent by the transit server in response to the client address request.
5. A log extraction device, comprising:
the address sending module is used for responding to a file transfer starting instruction based on ftp and sending the network address of the mobile client to the transfer server so that the transfer server can send the network address of the mobile client to the log extraction end;
the connection establishing module is used for receiving a connection request sent by the log extracting end based on the network address of the mobile client and establishing ftp connection with the log extracting end; the log extraction end has network addresses of a plurality of mobile clients, and the connection request is determined by the log extraction end responding to a client selection instruction;
and the information sending module is used for sending the log list information to the log extraction end under the condition that the mobile client is connected with the log extraction end, so that the log extraction end can complete the log extraction process.
6. A log extraction device, comprising:
an address acquisition module, configured to acquire a network address of a mobile client from a transfer server, where the network address of the mobile client is a network address that the mobile client sends to the transfer server in response to an ftp-based file transfer start instruction;
the request sending module is used for responding to a client selection instruction, determining a connection request of the mobile client corresponding to the client selection instruction, and sending the connection request to the mobile client based on the network address of the mobile client so as to establish ftp connection with the mobile client;
and the information receiving module is used for receiving the log list information sent by the mobile client under the condition that the mobile client is connected with the log extraction terminal so as to finish the log extraction process.
7. A log extraction system, comprising:
the system comprises at least one mobile client, a transfer server and a log extraction terminal, wherein the mobile client is used for respectively responding to a file transfer starting instruction based on ftp, sending a network address of the mobile client to the transfer server, establishing ftp connection with the log extraction terminal and sending log list information to the log extraction terminal;
the transit server is used for respectively receiving the network addresses of the at least one mobile client and sending the network addresses of the at least one mobile client to the log extraction terminal;
and the log extraction terminal is used for responding to the client selection instruction to determine a connection request, respectively sending the connection request to the at least one mobile client, and respectively receiving the log list information of the at least one mobile client so as to complete the log extraction process.
8. The log extraction system of claim 7, wherein the transit server is further configured to perform:
monitoring whether an unreceived network address exists at every interval of a first preset time;
and if the network address which is not received exists, receiving the network address which is not received.
9. The log extraction system of claim 7 or 8, wherein the transit server is further configured to perform:
receiving a client address request sent by the log extraction terminal;
and responding to the client address request, and sending the network address of the at least one mobile client to the log extraction terminal.
10. The log extraction system of claim 9, wherein the transit server is further configured to perform:
monitoring whether the log extraction end sends the client address request or not every second preset time interval;
if the log extraction terminal is monitored to send the client address request, determining the network addresses of one or more mobile clients which are not sent;
and responding to the client address request, and sending the network addresses of the one or more mobile clients which are not sent to the log extraction terminal.
11. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the log extraction method according to any one of claims 1 to 4.
12. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the log extraction method as claimed in any one of claims 1 to 4.
CN202110116760.9A 2021-01-28 2021-01-28 Log extraction method, log extraction device, storage medium and electronic equipment Active CN112968927B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110116760.9A CN112968927B (en) 2021-01-28 2021-01-28 Log extraction method, log extraction device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110116760.9A CN112968927B (en) 2021-01-28 2021-01-28 Log extraction method, log extraction device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112968927A true CN112968927A (en) 2021-06-15
CN112968927B CN112968927B (en) 2022-11-04

Family

ID=76271944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110116760.9A Active CN112968927B (en) 2021-01-28 2021-01-28 Log extraction method, log extraction device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112968927B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679486A (en) * 2022-03-29 2022-06-28 网易(杭州)网络有限公司 Communication interaction method and system, application terminal, client terminal and transfer server terminal
CN115086206A (en) * 2022-06-14 2022-09-20 工银科技有限公司 Client software debugging method and device
CN114679486B (en) * 2022-03-29 2024-05-07 网易(杭州)网络有限公司 Communication interaction method and system, application terminal, client terminal and transfer server terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855840A (en) * 2005-04-26 2006-11-01 华为技术有限公司 Method for network management device to obtain log data from network element
US7467211B1 (en) * 1999-10-18 2008-12-16 Cisco Technology Inc. Remote computer system management through an FTP internet connection
CN101741762A (en) * 2008-11-07 2010-06-16 北大方正集团有限公司 File transmitting method and file transmitting system
CN103873592A (en) * 2014-04-02 2014-06-18 联想(北京)有限公司 Data transmission method and system
CN105721596A (en) * 2016-03-03 2016-06-29 惠州Tcl移动通信有限公司 File access method and system for mobile terminal
CN108551476A (en) * 2018-03-27 2018-09-18 深圳市创智成科技股份有限公司 A kind of control method and system for realizing file transmission
CN108880877A (en) * 2018-06-07 2018-11-23 深圳市茁壮网络股份有限公司 A kind of acquisition methods and device of log
CN109213742A (en) * 2018-11-02 2019-01-15 大唐网络有限公司 Log collection method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7467211B1 (en) * 1999-10-18 2008-12-16 Cisco Technology Inc. Remote computer system management through an FTP internet connection
CN1855840A (en) * 2005-04-26 2006-11-01 华为技术有限公司 Method for network management device to obtain log data from network element
CN101741762A (en) * 2008-11-07 2010-06-16 北大方正集团有限公司 File transmitting method and file transmitting system
CN103873592A (en) * 2014-04-02 2014-06-18 联想(北京)有限公司 Data transmission method and system
CN105721596A (en) * 2016-03-03 2016-06-29 惠州Tcl移动通信有限公司 File access method and system for mobile terminal
CN108551476A (en) * 2018-03-27 2018-09-18 深圳市创智成科技股份有限公司 A kind of control method and system for realizing file transmission
CN108880877A (en) * 2018-06-07 2018-11-23 深圳市茁壮网络股份有限公司 A kind of acquisition methods and device of log
CN109213742A (en) * 2018-11-02 2019-01-15 大唐网络有限公司 Log collection method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679486A (en) * 2022-03-29 2022-06-28 网易(杭州)网络有限公司 Communication interaction method and system, application terminal, client terminal and transfer server terminal
CN114679486B (en) * 2022-03-29 2024-05-07 网易(杭州)网络有限公司 Communication interaction method and system, application terminal, client terminal and transfer server terminal
CN115086206A (en) * 2022-06-14 2022-09-20 工银科技有限公司 Client software debugging method and device

Also Published As

Publication number Publication date
CN112968927B (en) 2022-11-04

Similar Documents

Publication Publication Date Title
US10277697B2 (en) Method and system for pushing web application message
CN111338762B (en) Request processing technique
CN110083455B (en) Graph calculation processing method, graph calculation processing device, graph calculation processing medium and electronic equipment
US11509505B2 (en) Method and apparatus for operating smart network interface card
US20170222891A1 (en) Automatic asynchronous handoff identification
US10084637B2 (en) Automatic task tracking
CN107666493B (en) Database configuration method and equipment thereof
CN114095567B (en) Data access request processing method and device, computer equipment and medium
US20150227412A1 (en) Server performance correction using remote server actions
CN112968927B (en) Log extraction method, log extraction device, storage medium and electronic equipment
CN112363938A (en) Data processing method and device, electronic equipment and storage medium
CN110362435B (en) PCIE fault positioning method, device, equipment and medium for Purley platform server
CN112235300B (en) Cloud virtual network vulnerability detection method, system, device and electronic equipment
US10191844B2 (en) Automatic garbage collection thrashing monitoring
CN110069406A (en) The TPC-DS test method and system of automatic trigger
CN111935092B (en) Information interaction method and device based on third-party application and electronic equipment
CN113220403A (en) Method and device for h5 intercepting Android return event and electronic equipment
CN112818204B (en) Service processing method, device, equipment and storage medium
CN115269269A (en) Drill method, device, backup server, medium, server cluster and system
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN108551484B (en) User information synchronization method, device, computer device and storage medium
US10671505B2 (en) System and method for monitoring service
CN116302711B (en) Disaster recovery method and device based on cloud platform mirror image, electronic equipment and storage medium
CN110099275B (en) Application testing method, device, equipment and storage medium
CN112463343B (en) Restarting method and device of business process, storage medium and electronic equipment

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