CN109408481B - Log collection rule updating method and device, electronic equipment and readable medium - Google Patents
Log collection rule updating method and device, electronic equipment and readable medium Download PDFInfo
- Publication number
- CN109408481B CN109408481B CN201811313959.5A CN201811313959A CN109408481B CN 109408481 B CN109408481 B CN 109408481B CN 201811313959 A CN201811313959 A CN 201811313959A CN 109408481 B CN109408481 B CN 109408481B
- Authority
- CN
- China
- Prior art keywords
- rule
- acquisition
- changed
- acquisition rule
- collection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the disclosure discloses a method and a device for updating log collection rules, electronic equipment and a readable medium. The method comprises the following steps: acquiring collection rule change information of the online logs; the acquisition rule change information comprises changed acquisition rule identification and changed acquisition rules; issuing an acquisition rule change message, wherein the acquisition rule change message comprises an acquisition rule identifier after change; and if the current online log collection rule is determined to be inconsistent with the changed collection rule according to the changed collection rule identification, replacing the current online log collection rule with the changed collection rule. By adopting the technical scheme provided by the disclosure, the acquisition rule of the online log can be dynamically configured, so that the extraction of the log can realize the generalization effect aiming at different service scenes.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of computers, and in particular relates to a method and a device for updating log collection rules, electronic equipment and a readable medium.
Background
In order to provide more effective data as the analysis basis, various logs become a main analysis basis, especially on-line logs, which not only can determine and reflect the state that changes along with time in the on-line actual operation process, but also can reflect different requirements of users.
In the prior art, the collection schemes of the online logs are all written in the codes, for example, when a field a is wanted to be collected, a field a is written in the displayed codes, and when a field B is wanted to be collected, a field B is written in the displayed codes. However, the log collection code is updated once for each service scenario, so that it is quite inconvenient to change the collection rule of the log.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for updating a log collection rule, an electronic device and a readable medium, which can dynamically configure the collection rule of a log on a line, so that the extraction of the log can realize a generalization effect for different service scenes.
In a first aspect, an embodiment of the present disclosure provides an update method for a log collection rule, where the method includes:
acquiring the collection rule change information of the online log; the acquisition rule change information comprises changed acquisition rule identification and changed acquisition rules;
issuing an acquisition rule change message, wherein the acquisition rule change message comprises an acquisition rule identifier after change;
and if the current online log collection rule is determined to be inconsistent with the changed collection rule according to the changed collection rule identification, replacing the current online log collection rule with the changed collection rule.
Further, after replacing the current online log collection rule with the changed collection rule, the method further comprises:
and collecting the online logs by using the changed collection rule.
Further, if it is determined that the current online log collection rule is inconsistent with the changed collection rule according to the changed collection rule identifier, replacing the current online log collection rule with the changed collection rule, including:
acquiring a changed acquisition rule identifier in a subscribed acquisition rule change message;
acquiring a current rule identifier of a current online log acquisition rule;
if the changed acquisition rule identification is inconsistent with the current rule identification, determining that the current online log acquisition rule is inconsistent with the changed acquisition rule;
and replacing the current online log collection rule with the changed collection rule.
Further, the changed collection rule identifier includes a changed collection rule version number.
Further, the acquisition rule comprises target parameters to be acquired; or, target parameters and target fields to be acquired are included.
In a second aspect, an embodiment of the present disclosure further provides an apparatus for updating a log collection rule, where the apparatus includes:
the rule change information acquisition module is used for acquiring the acquisition rule change information of the online log; the acquisition rule change information comprises changed acquisition rule identification and changed acquisition rules;
the change message issuing module is used for issuing an acquisition rule change message, wherein the acquisition rule change message comprises a changed acquisition rule identifier;
and the rule replacement module is used for replacing the current online log acquisition rule with the changed acquisition rule if the current online log acquisition rule is determined to be inconsistent with the changed acquisition rule according to the changed acquisition rule identifier.
Further, the apparatus further comprises:
and the rule using module is used for collecting the online logs by using the changed collection rule by the user.
Further, the rule replacement module includes:
the changed acquisition rule identification acquisition unit is used for acquiring the changed acquisition rule identification in the subscribed acquisition rule change message;
the current rule identification obtaining unit is used for obtaining a current rule identification of a current online log collection rule;
the rule identification judging unit is used for determining that the current online log acquisition rule is inconsistent with the changed acquisition rule if the changed acquisition rule identification is inconsistent with the current rule identification;
and the rule replacing unit is used for replacing the current online log collecting rule with the changed collecting rule.
Further, the changed collection rule identifier includes a changed collection rule version number.
Further, the acquisition rule comprises target parameters to be acquired; or, the target parameters and the target fields to be acquired are included.
In a third aspect, the present disclosure provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for updating log collection rules according to an embodiment of the present disclosure.
In a fourth aspect, an embodiment of the present disclosure provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the method for updating the log collection rule according to the embodiment of the present disclosure when executing the computer program.
According to the technical scheme provided by the embodiment of the disclosure, the information is changed by acquiring the acquisition rule of the online log; the acquisition rule change information comprises changed acquisition rule identification and changed acquisition rules; issuing an acquisition rule change message, wherein the acquisition rule change message comprises an acquisition rule identifier after change; and if the current online log collection rule is determined to be inconsistent with the changed collection rule according to the changed collection rule identification, replacing the current online log collection rule with the changed collection rule. By adopting the technical scheme provided by the disclosure, the acquisition rule of the online log can be dynamically configured, so that the extraction of the log can realize the generalization effect aiming at different service scenes.
Drawings
Fig. 1 is a flowchart of a method for updating log collection rules according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an updating apparatus for log collection rules according to a second embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
In the following embodiments, optional features and examples are provided in each embodiment, and various features described in the embodiments may be combined to form a plurality of alternatives, and each numbered embodiment should not be regarded as only one technical solution.
Example one
Fig. 1 is a flowchart of a method for updating a log collection rule according to an embodiment of the present disclosure, where the method is applicable to an online log collection situation, and the method may be executed by an apparatus for updating a log collection rule according to an embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware, and may be integrated in an electronic device such as a client, a terminal, and a server.
As shown in fig. 1, the method for updating the log collection rule includes:
s110, acquiring collection rule change information of the online log; the collection rule change information comprises a changed collection rule identifier and a changed collection rule.
The online log collection rule may be a rule designed for a collection target, and may be, for example, one or more fields of the collection target, or some attributes of the collection target, such as a time attribute, an identity attribute, and the like, where the time attribute may be specific time of collection, and the identity attribute may be some information related to the identity of the user, such as a login account.
In this embodiment, when the acquisition rule needs to be changed, all the codes are rewritten in the conventional method, but the present embodiment can be implemented by designing a new rule according to the requirement. In the technical scheme, a new rule can be configured in a rule configuration center for collecting online logs, and after the new rule is configured, the version of the rule can be marked in a mode similar to coding or numbering. According to the technical scheme, the acquisition rule change information can be acquired in an information interaction mode with the rule configuration center, wherein the acquisition rule change information comprises the changed acquisition rule identification and the changed acquisition rule. The collection rule identifier may be an identifier uniquely set for each rule, and the collection rule after being changed is a rule designed by the user according to the requirement of the user. The user may be a worker and the rule configuration center may be a server or the like providing interaction with the worker.
In this embodiment, the online log may be an operation log in which a user or a worker operates an application or another operation monitoring target online.
And S120, issuing an acquisition rule change message, wherein the acquisition rule change message comprises an acquisition rule identifier after change.
After acquiring the collection rule change information, the online log can be published to the subscription center in a message form. In this embodiment, the collection rule change message includes the changed collection rule identifier, which not only can inform the receiver of the message that the collection rule of the online log has changed, but also can enable the receiver to determine all changed information, so as to facilitate subsequent operations, and achieve the effects of carrying information and not making the message itself too bulky. The method is beneficial to improving the message publishing speed and reducing the data transmission resources occupied by the published message.
S130, if the current online log collection rule is determined to be inconsistent with the changed collection rule according to the changed collection rule identification, replacing the current online log collection rule with the changed collection rule.
After determining that the current online log collection rule is inconsistent with the changed collection rule, the changed collection rule can be used to replace the current online log collection rule, so as to complete the update of the collection rule. Therefore, the technical effect provided by the scheme can simplify the change process of the collection rule of the online log, and the collection rule is changed in the simplest mode. Moreover, as long as the collection rule of the online log is changed by the user or the staff, the collection rule changes correspondingly, and the effect of dynamically configuring the collection rule of the online log is achieved.
And if the current online log collection rule is determined to be consistent with the changed collection rule according to the changed collection rule identification, keeping the current online log collection rule. Because the user may input a new rule according to the current requirement without knowing the rule of collecting the online log according to the current rule. However, when the new rule is consistent with the rule currently in use, the collection rule of the current online log can be continuously used without updating the collection rule.
In this technical solution, optionally, if it is determined that the current online log collection rule is inconsistent with the changed collection rule according to the changed collection rule identifier, replacing the current online log collection rule with the changed collection rule includes: acquiring a changed acquisition rule identifier in a subscribed acquisition rule change message; acquiring a current rule identifier of a current online log acquisition rule; if the changed acquisition rule identification is inconsistent with the current rule identification, determining that the current online log acquisition rule is inconsistent with the changed acquisition rule; and replacing the current online log collection rule with the changed collection rule.
After acquiring the changed acquisition rule identifier in the subscribed acquisition rule change message, acquiring the current rule identifier of the current online log acquisition rule, comparing the current rule identifier with the current rule identifier of the current online log acquisition rule, and if the current rule identifier is different from the current rule identifier, determining that the new rule configured by the user is different from the current rule, so that the current rule needs to be updated. Specifically, since the subscribed message only carries the changed acquisition rule identifier, the subscribed message needs to perform information interaction with the rule configuration center, and then the newly configured online log acquisition rule is acquired. In the interaction process, the changed acquisition rule identifier can be used as a matching condition for determining the changed on-line log acquisition rule to be acquired.
In this technical solution, optionally, after the changed acquisition rule identifier is obtained, the changed acquisition rule identifier may be compared with the acquisition rule identifier currently used, and if the changed acquisition rule identifier is different, the changed acquisition rule identifier may also be compared with the locally stored identifier of the acquisition rule used in the past.
According to the technical scheme provided by the embodiment of the disclosure, the information is changed by acquiring the acquisition rule of the online log; the acquisition rule change information comprises changed acquisition rule identification and changed acquisition rules; issuing an acquisition rule change message, wherein the acquisition rule change message comprises an acquisition rule identifier after change; and if the current online log collection rule is determined to be inconsistent with the changed collection rule according to the changed collection rule identification, replacing the current online log collection rule with the changed collection rule. By adopting the technical scheme provided by the disclosure, the acquisition rule of the online log can be dynamically configured, so that the extraction of the log can realize the generalization effect aiming at different service scenes.
On the basis of the foregoing technical solutions, optionally, after replacing the current online log collection rule with the changed collection rule, the method further includes: and collecting the online logs by using the changed collection rule. According to the technical scheme, the changed collection rule can be used for collecting the online logs so as to obtain data meeting the user requirements, and the effect of dynamically configuring the log collection rule is achieved.
On the basis of the above technical solutions, optionally, the modified acquisition rule identifier includes a modified acquisition rule version number. The version number may be a version number according to a changed acquisition rule set by a user in the configuration center. The advantage of this setting is that it can more directly determine which version the collection rule changed by the current user is specific, and the change degree of the log collection rule can be determined by the version number.
On the basis of the above technical solutions, optionally, the acquisition rule includes a target parameter to be acquired; or, the target parameters and the target fields to be acquired are included. The on-line log may be obtained by using a specific collection rule in an RPC (Remote Procedure Call Protocol) interface. The target parameters may include request parameters and return parameters, and the target field may be a specific field of the target parameters. For example, if the current configured rule is (a-B, B-f), it may be determined that the current acquisition rule is the second field of the acquisition request parameter and the third field of the return parameter. The technical scheme has the advantages that all fields in the target parameters can be obtained, and one or more target fields in the target parameters can be determined.
The technical scheme provided by the embodiment of the invention can be understood as coexisting at three ends, a rule configuration center, namely a configuration end, a message issuing center, namely an issuing end, and a data acquisition end. The rule configuration center is used for acquiring a changed rule configured by a user, the publishing terminal is responsible for publishing a message of creating a new rule, the data acquisition terminal can be arranged at an RPC interface and can be used for acquiring a version number into a memory of the data acquisition terminal in a message subscription mode, and when the version number is inconsistent with the version number in use in the memory, the new configuration rule can be acquired from the configuration rule center, so that the update of the log acquisition rule is realized.
Example two
Fig. 2 is a schematic structural diagram of an updating apparatus for log collection rules according to a second embodiment of the present disclosure. As shown in fig. 2, the apparatus for updating log collection rules includes:
a rule change information obtaining module 210, configured to obtain collection rule change information of an online log; the acquisition rule change information comprises changed acquisition rule identification and changed acquisition rules;
a change message issuing module 220, configured to issue an acquisition rule change message, where the acquisition rule change message includes an acquisition rule identifier after change;
and a rule replacing module 230, configured to, if it is determined that the current online log collection rule is inconsistent with the changed collection rule according to the changed collection rule identifier, replace the current online log collection rule with the changed collection rule.
According to the technical scheme provided by the embodiment of the disclosure, the information is changed by acquiring the acquisition rule of the online log; the acquisition rule change information comprises changed acquisition rule identification and changed acquisition rules; issuing an acquisition rule change message, wherein the acquisition rule change message comprises an acquisition rule identifier after change; and if the current online log collection rule is determined to be inconsistent with the changed collection rule according to the changed collection rule identification, replacing the current online log collection rule with the changed collection rule. By adopting the technical scheme provided by the disclosure, the acquisition rule of the online log can be dynamically configured, so that the extraction of the log can realize the generalization effect aiming at different service scenes.
On the basis of the above technical solutions, optionally, the apparatus further includes:
and the rule using module is used for collecting the online logs by using the changed collection rule by the user.
On the basis of the above technical solutions, optionally, the rule replacement module 230 includes:
a changed acquisition rule identifier obtaining unit, configured to obtain a changed acquisition rule identifier in a subscribed acquisition rule change message;
the current rule identification obtaining unit is used for obtaining a current rule identification of a current online log collection rule;
the rule identification judging unit is used for determining that the current online log acquisition rule is inconsistent with the changed acquisition rule if the changed acquisition rule identification is inconsistent with the current rule identification;
and the rule replacing unit is used for replacing the current online log collecting rule with the changed collecting rule.
On the basis of the above technical solutions, optionally, the modified acquisition rule identifier includes a modified acquisition rule version number.
On the basis of the above technical solutions, optionally, the acquisition rule includes a target parameter to be acquired; or, the target parameters and the target fields to be acquired are included.
The product can execute the method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present disclosure. Referring now to FIG. 3, a block diagram of an electronic device 300 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, electronic devices such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle electronic devices (e.g., in-vehicle navigation electronic devices), and the like, and stationary electronic devices such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 308, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring the collection rule change information of the online log; the acquisition rule change information comprises changed acquisition rule identification and changed acquisition rules; issuing an acquisition rule change message, wherein the acquisition rule change message comprises an acquisition rule identifier after change; and if the current online log collection rule is determined to be inconsistent with the changed collection rule according to the changed collection rule identification, replacing the current online log collection rule with the changed collection rule.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring the collection rule change information of the online log; the acquisition rule change information comprises changed acquisition rule identification and changed acquisition rules; issuing an acquisition rule change message, wherein the acquisition rule change message comprises an acquisition rule identifier after change; and if the current online log collection rule is determined to be inconsistent with the changed collection rule according to the changed collection rule identification, replacing the current online log collection rule with the changed collection rule.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The names of the modules and units do not limit the modules and units in some cases.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Claims (7)
1. A method for updating log collection rules is characterized by comprising the following steps:
acquiring acquisition rule change information of the online log through a configuration end; the acquisition rule change information comprises changed acquisition rule identification and changed acquisition rules;
issuing an acquisition rule change message through a release terminal, wherein the acquisition rule change message comprises an acquisition rule identifier after change;
if the data acquisition end determines that the current online log acquisition rule is inconsistent with the changed acquisition rule according to the changed acquisition rule identification, replacing the current online log acquisition rule with the changed acquisition rule;
wherein, the issuing of the collection rule change message through the issuing terminal includes: issuing the acquisition rule change message to a subscription center through an issuing end;
if the data acquisition end determines that the current online log acquisition rule is inconsistent with the changed acquisition rule according to the changed acquisition rule identifier, the changed acquisition rule is used for replacing the current online log acquisition rule, and the method comprises the following steps: acquiring a changed acquisition rule identifier in a subscribed acquisition rule change message through a data acquisition end; acquiring a current rule identifier of a current online log acquisition rule; if the changed acquisition rule identification is inconsistent with the current rule identification, determining that the current online log acquisition rule is inconsistent with the changed acquisition rule; acquiring an identifier of a locally stored acquisition rule used in the past, and replacing the current online log acquisition rule with the acquisition rule used in the past if the changed acquisition rule identifier is consistent with the identifier of the acquisition rule used in the past;
the acquisition rule comprises target parameters to be acquired; or, the target parameters to be acquired and the target fields are included, and the target parameters include request parameters and return parameters.
2. The method of claim 1, wherein after replacing the current online log collection rule with the changed collection rule, the method further comprises:
and collecting the online logs by using the changed collection rule.
3. The method of claim 1, wherein the changed acquisition rule identification comprises a changed acquisition rule version number.
4. An apparatus for updating log collection rules, comprising:
the rule change information acquisition module is used for acquiring the acquisition rule change information of the online log through the configuration end; the acquisition rule change information comprises changed acquisition rule identification and changed acquisition rules;
the system comprises a change message issuing module, a receiving module and a processing module, wherein the change message issuing module is used for issuing an acquisition rule change message through an issuing end, and the acquisition rule change message comprises an acquisition rule identifier after change;
the rule replacement module is used for determining that the current online log acquisition rule is inconsistent with the changed acquisition rule through the data acquisition end according to the changed acquisition rule identifier, and replacing the current online log acquisition rule with the changed acquisition rule;
the change message publishing module is used for publishing the acquisition rule change message to a subscription center through a publishing terminal;
the rule replacement module includes: the changed acquisition rule identification acquisition unit is used for acquiring the changed acquisition rule identification in the subscribed acquisition rule change message through the data acquisition terminal;
the current rule identification obtaining unit is used for obtaining a current rule identification of a current online log collection rule;
the rule identification judging unit is used for determining that the current online log acquisition rule is inconsistent with the changed acquisition rule if the changed acquisition rule identification is inconsistent with the current rule identification;
the rule replacing unit is used for acquiring an identifier of a locally stored collection rule used in the past, and if the changed collection rule identifier is consistent with the identifier of the collection rule used in the past, replacing the current online log collection rule with the collection rule used in the past;
the acquisition rule comprises target parameters to be acquired; or, the target parameters to be acquired and the target fields are included, and the target parameters include request parameters and return parameters.
5. The apparatus of claim 4, further comprising:
and the rule using module is used for collecting the online logs by using the changed collection rule by the user.
6. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of updating log collection rules according to any one of claims 1 to 3.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for updating log collection rules according to any one of claims 1 to 3 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811313959.5A CN109408481B (en) | 2018-11-06 | 2018-11-06 | Log collection rule updating method and device, electronic equipment and readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811313959.5A CN109408481B (en) | 2018-11-06 | 2018-11-06 | Log collection rule updating method and device, electronic equipment and readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109408481A CN109408481A (en) | 2019-03-01 |
CN109408481B true CN109408481B (en) | 2022-05-06 |
Family
ID=65471683
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811313959.5A Active CN109408481B (en) | 2018-11-06 | 2018-11-06 | Log collection rule updating method and device, electronic equipment and readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109408481B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110008086B (en) * | 2019-04-04 | 2023-07-11 | 新浪技术(中国)有限公司 | Log generation method and device and client |
CN111950232B (en) * | 2019-05-16 | 2023-09-05 | 北京京东振世信息技术有限公司 | Method and device for automatically switching number segments |
CN110968478B (en) * | 2019-11-21 | 2023-04-25 | 掌阅科技股份有限公司 | Log acquisition method, server and computer storage medium |
CN110909061A (en) * | 2019-11-27 | 2020-03-24 | 恩亿科(北京)数据科技有限公司 | Data source processing method and device, electronic equipment and storage medium |
CN113391977A (en) * | 2021-06-18 | 2021-09-14 | 中国工商银行股份有限公司 | Log acquisition processing method and device |
CN113608735A (en) * | 2021-08-11 | 2021-11-05 | 中国银行股份有限公司 | Acquisition tool configuration file generation method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102648465A (en) * | 2009-08-26 | 2012-08-22 | 杰维斯股份公司 | Remote data collection systems and methods |
CN103379140A (en) * | 2012-04-17 | 2013-10-30 | 中国移动通信集团公司 | Log processing rule synchronization method and relative device and system |
CN104184600A (en) * | 2013-05-22 | 2014-12-03 | 腾讯科技(深圳)有限公司 | Management method, device and system of no-interaction operation |
CN104391996A (en) * | 2014-12-15 | 2015-03-04 | 携程计算机技术(上海)有限公司 | Method for collecting and analyzing user interaction behavior of mobile terminal |
CN105824744A (en) * | 2016-03-21 | 2016-08-03 | 焦点科技股份有限公司 | Real-time log collection and analysis method on basis of B2B (Business to Business) platform |
CN107451034A (en) * | 2017-08-17 | 2017-12-08 | 浪潮软件股份有限公司 | A kind of big data cluster log management apparatus, method and system |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8126859B2 (en) * | 2006-03-23 | 2012-02-28 | International Business Machines Corporation | Updating a local version of a file based on a rule |
US8069374B2 (en) * | 2009-02-27 | 2011-11-29 | Microsoft Corporation | Fingerprinting event logs for system management troubleshooting |
ES2385774T3 (en) * | 2009-03-03 | 2012-07-31 | Alcatel Lucent | Procedure to generate a record report operated by a terminal over the Internet |
US8732108B2 (en) * | 2010-10-07 | 2014-05-20 | International Business Machines Corporation | Rule authoring for events in a grid environment |
CN102306190A (en) * | 2011-08-31 | 2012-01-04 | 哈尔滨工业大学 | Method for dynamically updating rule set during changing process of attribute set in rough set |
US9348739B2 (en) * | 2014-07-10 | 2016-05-24 | International Business Machines Corporation | Extraction of problem diagnostic knowledge from test cases |
CN107040568B (en) * | 2016-09-28 | 2018-07-13 | 平安科技(深圳)有限公司 | identification information generation method and device |
CN107330604A (en) * | 2017-06-26 | 2017-11-07 | 携程旅游网络技术(上海)有限公司 | The management method and system of air ticket air control rule |
-
2018
- 2018-11-06 CN CN201811313959.5A patent/CN109408481B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102648465A (en) * | 2009-08-26 | 2012-08-22 | 杰维斯股份公司 | Remote data collection systems and methods |
CN103379140A (en) * | 2012-04-17 | 2013-10-30 | 中国移动通信集团公司 | Log processing rule synchronization method and relative device and system |
CN104184600A (en) * | 2013-05-22 | 2014-12-03 | 腾讯科技(深圳)有限公司 | Management method, device and system of no-interaction operation |
CN104391996A (en) * | 2014-12-15 | 2015-03-04 | 携程计算机技术(上海)有限公司 | Method for collecting and analyzing user interaction behavior of mobile terminal |
CN105824744A (en) * | 2016-03-21 | 2016-08-03 | 焦点科技股份有限公司 | Real-time log collection and analysis method on basis of B2B (Business to Business) platform |
CN107451034A (en) * | 2017-08-17 | 2017-12-08 | 浪潮软件股份有限公司 | A kind of big data cluster log management apparatus, method and system |
Also Published As
Publication number | Publication date |
---|---|
CN109408481A (en) | 2019-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109408481B (en) | Log collection rule updating method and device, electronic equipment and readable medium | |
CN109582310B (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
CN111581291A (en) | Data processing method and device, electronic equipment and readable medium | |
KR102082347B1 (en) | Electronic device and method for transmitting notification information | |
CN109857506B (en) | Method and device for realizing guide information, electronic equipment and storage medium | |
CN110390493B (en) | Task management method and device, storage medium and electronic equipment | |
CN110209315B (en) | Method and device for displaying characters in user interface, electronic equipment and storage medium | |
CN111163329B (en) | Live broadcast room gift list configuration method, device, medium and electronic equipment | |
CN110275886B (en) | Account management method, device, readable medium and system of information display system | |
CN111246228B (en) | Method, device, medium and electronic equipment for updating gift resources of live broadcast room | |
CN110781373A (en) | List updating method and device, readable medium and electronic equipment | |
CN110221857A (en) | The problem of application program restorative procedure, device, electronic equipment and storage medium | |
CN111857720A (en) | Method and device for generating user interface state information, electronic equipment and medium | |
CN111382039A (en) | Method, device, electronic equipment and storage medium for reporting user behavior event | |
CN111756953A (en) | Video processing method, device, equipment and computer readable medium | |
CN114968621B (en) | Data communication method, device, equipment, storage medium and system | |
CN111625692A (en) | Feature extraction method, device, electronic equipment and computer readable medium | |
CN111382038B (en) | Method, device, electronic equipment and storage medium for reporting service data | |
CN112203103B (en) | Message processing method, device, electronic equipment and computer readable storage medium | |
CN111367592B (en) | Information processing method and device | |
CN110083283B (en) | Method, device and system for managing information | |
CN115034175A (en) | Table data processing method, device, terminal and storage medium | |
CN111294657A (en) | Information processing method and device | |
CN112507676A (en) | Energy report generation method and device, electronic equipment and computer readable medium | |
CN112100205A (en) | Data processing method, device, equipment and computer readable medium |
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 |