CN110175465A - Log desensitization method, device, computer equipment and computer readable storage medium - Google Patents

Log desensitization method, device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN110175465A
CN110175465A CN201910300602.1A CN201910300602A CN110175465A CN 110175465 A CN110175465 A CN 110175465A CN 201910300602 A CN201910300602 A CN 201910300602A CN 110175465 A CN110175465 A CN 110175465A
Authority
CN
China
Prior art keywords
log
desensitization
application program
configuration file
history
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910300602.1A
Other languages
Chinese (zh)
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910300602.1A priority Critical patent/CN110175465A/en
Publication of CN110175465A publication Critical patent/CN110175465A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Medical Informatics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of log desensitization method, device, computer equipment and computer readable storage mediums.This method comprises: receiving the start command of application program, and start application program;Monitor the log outgoing event of application program;When listening to the log outgoing event of application program, the corresponding log content to be output of log outgoing event is intercepted;It calls and desensitizes according to log desensitization configuration file to log content, wherein log desensitization configuration file is used to indicate data type to be desensitized and desensitization corresponding with data type to be desensitized rule;Log content after desensitization is back to application program, so that application program exports the log content after desensitization.By means of the invention it is possible to which, so that desensitization strategy is applicable in the demand of personalized application program, modified log desensitization configuration file can come into force in real time by modification log desensitization configuration file, without re-launching applications, the optimization of interface log generating process is realized.

Description

Log desensitization method, device, computer equipment and computer readable storage medium
Technical field
The present invention relates to technical fields more particularly to a kind of log desensitization method, device, computer equipment and computer can Read storage medium.
Background technique
Data desensitize (Data Masking), and also known as data bleaching, data remove privacy or transformation of data.Refer to certain quick Feel the deformation that information carries out data by desensitization rule, realizes the reliably protecting of privacy-sensitive data.It is being related to client secure number According to or some commercial sensitive datas in the case where, under the conditions of not violating system convention, truthful data is transformed simultaneously It provides test to use, such as identification card number, cell-phone number, card number, customer ID personal information require to carry out data desensitization.
In the log of print application, usually it is also required to carry out data desensitization, in order to facilitate the exploitation of application program, Log desensitization application product exists in the prior art, after application program accesses log desensitization application product It desensitizes to the log of application program, desensitization function is individually developed without application program more.But it is in the prior art Log desensitization application product, desensitize tactful applicable different application that can not be personalized, cannot after the strategy modification that desensitizes Come into force in time, it is necessary to re-launching applications, cannot real-time switchover policy, and cannot actively desensitize to history log.
Therefore it provides a kind of log desensitization method, device, computer equipment and computer readable storage medium, preferably Meet application personalization log desensitization demand, is this field technical issues that need to address.
Summary of the invention
The object of the present invention is to provide a kind of log desensitization method, device, computer equipment and computer-readable storage mediums Matter, for solving the above problem of the existing technology.
To achieve the goals above, the present invention provides a kind of log desensitization methods.
The log desensitization method includes: the start command for receiving application program, and starts operation application program;Described in monitoring The log outgoing event of application program;When listening to the log outgoing event of the application program, the log output is intercepted The corresponding log content to be output of event;Call log desensitization configuration file, wherein the log desensitization configuration file is used for Indicate data type to be desensitized and desensitization rule corresponding with the data type to be desensitized;It desensitizes and configures according to the log File desensitizes to the log content;Log content after desensitization is back to the application program, so that the application Program exports the log content after the desensitization.
To achieve the goals above, the present invention provides a kind of log desensitization devices.
Log desensitization device includes: receiving module, for receiving the start command of application program, and start operation and answer Use program;Module is monitored, for monitoring the log outgoing event of the application program;Blocking module, for working as the monitoring mould When block listens to the log outgoing event of the application program, intercept in the corresponding log to be printed of the log outgoing event Hold;Calling module, for calling log desensitization configuration file, wherein the log desensitization configuration file is used to indicate wait desensitize Data type and desensitization rule corresponding with the data type to be desensitized;Desensitize module, for desensitizing according to the log Configuration file desensitizes to the log content;Output module, for the log content after desensitization to be back to the application Program, so that the application program prints out the log content after the desensitization.
To achieve the goals above, the present invention provides a kind of computer equipments.
The computer equipment include memory, processor and storage on a memory and the meter that can run on a processor Calculation machine program, which is characterized in that the processor realizes the step of any one method provided by the invention when executing described program Suddenly.
To achieve the goals above, the present invention provides a kind of computer readable storage mediums.
It is stored with computer program on the computer readable storage medium, realization when which is executed by processor The step of any one method provided by the invention.
Compared with prior art, it log desensitization method provided by the invention, device, computer equipment and computer-readable deposits The log desensitization configuration file that can be configured is arranged, so as to repair according to the personalized demand of application program in storage media Will on some other day desensitization configuration file, meanwhile, in application program launching, while starting log desensitization procedure, and log desensitization journey The log outgoing event of ordered pair application program is monitored, and when listening to application program and wanting output journal, is first carried out to log Desensitization.To log desensitization when, by read log desensitize configuration file carry out log desensitization, even if log desensitize configuration file into It has gone modification, can call modified log desensitization configuration file namely log desensitization configuration file that can come into force in real time, Without re-launching applications.
Detailed description of the invention
Fig. 1 is the step flow chart for the log desensitization method that the embodiment of the present invention one provides;
Fig. 2 is the step flow chart of log desensitization method provided by Embodiment 2 of the present invention;
Fig. 3 is the block diagram for the log desensitization device that the embodiment of the present invention three provides;
Fig. 4 is the composition schematic diagram for the computer equipment that the embodiment of the present invention four provides.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
Embodiment one
The embodiment of the present invention one provides a kind of log desensitization method, executes the log desensitization application of the log desensitization method Program interacts, the application program with access side's application program by carrying out log desensitization using the log desensitization method The log of generation can be desensitized by the log desensitization method.Fig. 1 is the log desensitization side that the embodiment of the present invention one provides The step flow chart of method, as shown in Figure 1, this method includes the following steps, namely S101 to step S106.
Step S101: the start command starting operation of application program is received.
Optionally, access side's application program adds the JAR packet of log desensitization application program when the project of building Carry reference, after quote successfully, access side's application program according to itself log desensitization requirement, newly-increased log desensitize configuration file or In original log desensitization configuration file, log desensitisation regimens are configured.Access side's application program is according to oneself day Will desensitization demand, after log desensitization configuration file is completed in configuration, access side's application program is again to log desensitization configuration file progress Reference after the completion of the reference of access side code, can be taken off by class load starter to log when access side's application program launching Quick application program sends start command, and with while access side's application program launching, log is desensitized application program launching, day Will desensitization application program launching operation.
Step S102: the log outgoing event of application program is monitored.
Log is desensitized after application program launching success, and access side's application program has code service logic to hold when operation Log exports when row, and log desensitizes application program by monitoring access side's application program, can listen to access side using journey The log outgoing event of sequence.
Step S103: when listening to the log outgoing event of application program, it is corresponding to defeated to intercept log outgoing event Log content out.
Log desensitizes application program in the log outgoing event for listening to access side's application program, can be blocked by log class It cuts device to obtain before log prints, intercepts the corresponding log content to be output of log outgoing event.
Step S104: log desensitization configuration file is called.
Log desensitizes application program in the log outgoing event for listening to access side's application program, and log desensitization is called to match Set file, wherein log desensitization configuration file is used to indicate data type to be desensitized and corresponding with data type to be desensitized Desensitization rule.Data type to be desensitized include card number, Chinese name, English name, telephone number, Email, ID card No. and Address, desensitization rule include retaining preceding M wait data in the data type that desensitizes N with after, replace data to be desensitized with symbol Other positions of data in type, wherein M and N is the integer greater than 1.
In one embodiment, data type to be desensitized and desensitization corresponding with data type to be desensitized rule, and The example that desensitizes is as shown in table 1 below.
Table 1
Wherein it is preferred to can be configured in real time to log desensitization configuration file.Match carrying out log desensitization configuration file When setting, specifically: it is operated in response to the configuration to log desensitization configuration file, Update log desensitization configuration file.Wherein, log The configuration file that desensitizes includes multiple desensitization data configuration items, and each desensitization data configuration item corresponds to a desensitization data type and takes off Quick rule;In response to log desensitization configuration file configuration operate, Update log desensitization configuration file the step of include: receive Selected operation to desensitization data configuration item, using the chosen corresponding desensitization data type of desensitization data configuration item as to de- Quick data type, the chosen corresponding desensitization rule of desensitization data configuration item is corresponding de- as data type to be desensitized Quick rule.
Step S105: it desensitizes according to log desensitization configuration file to log content.
After intercepting log content, according to log before desensitize configuration file configuration log desensitisation regimens, to log into Row desensitization process specifically by the data of data type to be desensitized corresponding in log, is handled according to desensitization rule, is handled Data afterwards can refer to the data after desensitizing in table 1.
Step S106: being back to application program for the log content after desensitization, so that application program is by the log after desensitization Content output.
The log desensitization configuration file that can be configured is arranged in the log desensitization method provided using the embodiment, thus Can desensitize configuration file according to the personalized demand modification log of application program, meanwhile, in application program launching, simultaneously Starting log desensitization procedure, and log desensitization procedure monitors the log outgoing event of application program, answers listening to When wanting output journal with program, first desensitize to log.When to log desensitization, carried out by reading log desensitization configuration file Log desensitization can call modified log desensitization configuration file even if log desensitization configuration file is modified, I.e. log desensitization configuration file can come into force in real time, be not necessarily to re-launching applications.
Embodiment two
Second embodiment of the present invention provides a kind of preferably log desensitization method, the log for executing the log desensitization method is de- Quick application program is interacted with access side's application program by carrying out log desensitization using the log desensitization method, this is answered The log generated with program, including history log, can be desensitized by the log desensitization method, it should be noted that Relevant technical characteristic and corresponding technical effect, can refer to above-described embodiment one in the embodiment, be not repeated to describe at this. Fig. 2 is the step flow chart of log desensitization method provided by Embodiment 2 of the present invention, as shown in Fig. 2, this method includes following Step S201 to step S212.
Step S201: the start command starting operation of application program is received.
Step S202: the log outgoing event of application program is monitored.
Log desensitizes application program after actuation, monitors the log outgoing event of application program.
Step S203: operating in response to the configuration to log desensitization configuration file, Update log desensitization configuration file.
Wherein, log desensitization configuration file includes multiple desensitization data configuration items, further includes that history log desensitization time is matched Set item and history log desensitization pattern configurations item.The corresponding desensitization data type of each desensitization data configuration item and desensitization rule Then.History log desensitization time configuration item is used to configure the time for carrying out history log desensitization process, and desensitize pattern configurations item Desensitization process mode is carried out to history log for configuring, wherein carrying out desensitization process mode to history log includes manual mould Formula and silent mode.
Optionally, log desensitization configuration file can be configured and is updated before activation in log desensitization application program, Log desensitization configuration file can also be configured and be updated after application program launching is desensitized in log.Step S203 is specifically wrapped It includes:
The selected operation to desensitization data configuration item is received, by the chosen corresponding desensitization data of desensitization data configuration item Type is used as data type to be desensitized, and regard the chosen corresponding desensitization rule of desensitization data configuration item as data class to be desensitized The corresponding desensitization rule of type;
Receive and the input of history log desensitization time configuration item operated, determine to history log carry out desensitization process when Between;The selection operation to desensitization pattern configurations item is received, determines that the mode for carrying out desensitization process to history log is manual mode Or silent mode.
Step S204: judge whether current time needs that history log is carried out at desensitization according to log desensitization configuration file Reason.
Wherein, application program is desensitized after actuation in log, that is, can determine whether to need to carry out at desensitization history log Reason.Specifically, according to the parameter of history log desensitization time configuration item in log desensitization configuration file, whether judge current time Need to carry out history log desensitization process, the parameter of the history log desensitization time configuration item can be specific time, example Such as in such a month, and on such a day some time in certain year;The parameter of the history log desensitization time configuration item may be every after log desensitization application program The time of predetermined amount of time, such as persistently carry out at interval of 3 hours after application program is desensitized in log the history day of 1 hour Will desensitization, or may be other times parameter.No matter the ginseng of history log desensitization time configuration item is limited in which way Number needs to carry out desensitization process to history log in current time, thens follow the steps S205.
Preferably, in the log outgoing event for not hearing application program, worked as according to log desensitization configuration file judgement Whether the preceding time needs to carry out desensitization process to history log, that is, when listening to the log outgoing event of application program, it is excellent Desensitization process first is carried out to the corresponding log of log outgoing event.
Step S205: the history log of application program is obtained.
Step S206: judge whether history log needs desensitization process according to log desensitization configuration file.
In this step, log desensitization configuration file is first called, is judged in history log with the presence or absence of log desensitization configuration Data type to be desensitized in file, if it does, illustrating that history log needs desensitization process.
And if history log needs desensitization process, and to history log to carry out the mode of desensitization process be manual mode when, Then follow the steps S207.And if history log needs desensitization process, and the mode for carrying out desensitization process to history log is silence When mode, S209 is thened follow the steps.
Step S207: warning message is sent.
Specifically, warning message can be sent in a predetermined manner, such as sends alarm message breath to predetermined cell-phone number, dialled It plays alarm call and sends alarm mail etc. to predetermined cell-phone number, or to predetermined mailbox.Alert receipt person is receiving alarm signal After breath, it is determined whether it is de- to send log to log desensitization application program when needing to carry out desensitization process for Yao Jinhang desensitization process Quick application program.
Step S208: log desensitization application program is received.
Step S209: desensitization process is carried out to history log according to log desensitization configuration file.
The mode for carrying out desensitization process to history log is silent mode, namely default needs to desensitize to history log Processing, to directly carry out desensitization process to history log in this step.
Step S210: when listening to the log outgoing event of application program, it is corresponding to defeated to intercept log outgoing event Log content out.
Step S211: it calls log desensitization configuration file and carries out desensitization process.
It is right according to the log desensitisation regimens of current newest log desensitization configuration file configuration after intercepting log content Log carries out desensitization process.
Step S212: the log content after desensitization is back to application program.
The log desensitization method provided using the embodiment, can be desensitized configuration file by log, according to application program The desensitization time and desensitization mode of personalized traffic-operating period setting history log, realize to do not access log desensitization application program it Preceding history log carries out desensitization process.
Embodiment three
The embodiment of the invention provides a kind of log desensitize device, the log desensitize device with it is provided in an embodiment of the present invention Log is desensitized, and direction is corresponding, and corresponding technical characteristic can refer to above related to technical effect, and details are not described herein again.Specifically Ground, log desensitization device include: receiving module 301, monitor module 302, blocking module 303, calling module 304, desensitization mould Block 305 and output module 306.
Wherein, receiving module 301 is used to receive the start command starting operation of application program;Module 302 is monitored for supervising Listen the log outgoing event of application program;Blocking module 303 is used to listen to the log output thing of application program when monitoring module When part, the corresponding log content to be printed of log outgoing event is intercepted;Calling module 304 is for calling log desensitization configuration text Part, wherein log desensitization configuration file is used to indicate data type to be desensitized and desensitization corresponding with data type to be desensitized Rule;Desensitization module 305 is used to desensitize to log content according to log desensitization configuration file;Output module 306 is used for will Log content after desensitization is back to application program, so that application program prints out the log content after desensitization.
Optionally, log desensitization device further includes update module, which is used to call day in calling module 304 Will desensitizes before configuration file, operates in response to the configuration to log desensitization configuration file, Update log desensitization configuration file.
Optionally, log desensitization configuration file includes multiple desensitization data configuration items, and each desensitization data configuration item is corresponding One desensitization data type and desensitization rule;The step of update module executes includes: to receive to select desensitization data configuration item Operation, using the chosen corresponding desensitization data type of desensitization data configuration item as data type to be desensitized, by what is be selected The corresponding desensitization rule of the data configuration item that desensitizes is as the corresponding desensitization rule of data type to be desensitized.
Optionally, log desensitization configuration file further includes history log desensitization time configuration item and history log desensitization mode Configuration item, history log desensitization time configuration item are used to configure the time for carrying out history log desensitization process, and desensitization mode is matched Set item for configure to history log carry out desensitization process mode, wherein to history log progress desensitization process mode include hand Dynamic model formula and silent mode;The step of update module executes further include: receive the input to history log desensitization time configuration item Operation determines the time that desensitization process is carried out to history log;The selection operation to desensitization pattern configurations item is received, is determined to going through The mode that history log carries out desensitization process is manual mode or silent mode.
Log desensitization device further includes first judgment module, the second judgment module, obtains module and sending module, In, first judgment module is used for after receiving module 301 receives the start command starting operation of application program, is desensitized according to log Configuration file judges whether current time needs to carry out desensitization process to history log;Module is obtained to be used to need in current time Desensitization process is carried out to history log, obtains the history log of application program;Second judgment module is used to match according to log desensitization It sets file and judges whether history log needs desensitization process;Sending module is used to need desensitization process in history log and to history When the mode of log progress desensitization process is manual mode, warning message is sent;Desensitization module 305 is specifically used for going through receiving When history log desensitization order, or desensitization process is needed in history log and is quiet to the mode of history log progress desensitization process When silent mode, desensitization process is carried out to history log according to log desensitization configuration file.
Optionally, the step of first judgment module specifically executes includes: when the log output thing for not hearing application program When part, judge whether current time needs to carry out desensitization process to history log according to log desensitization configuration file.
Optionally, the step of receiving module 301 specifically executes includes: to receive application program to load starter transmission by class Start command start operation.
Optionally, data type to be desensitized includes card number, Chinese name, English name, telephone number, Email, identity card Number and address;Desensitization rule include retain wait preceding M of data in the data type that desensitizes and after N, replaced with symbol wait take off Other positions of data in quick data type, wherein M and N is the integer greater than 1.
Example IV
The embodiment of the present invention also provides a kind of computer equipment, can such as execute the smart phone, tablet computer, pen of program Remember that this computer, desktop computer, rack-mount server, blade server, tower server or Cabinet-type server are (including only Server cluster composed by vertical server or multiple servers) etc..The computer equipment 02 of the present embodiment includes at least But it is not limited to: memory 021, the processor 022 of connection can be in communication with each other by system bus, as shown in Figure 4.It may be noted that It is that Fig. 4 illustrates only the computer equipment 02 with component 021-022, it should be understood that being not required for implementing all show Component out, the implementation that can be substituted is more or less component.
In the present embodiment, memory 021 (i.e. readable storage medium storing program for executing) includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, magnetic Disk, CD etc..In some embodiments, memory 021 can be the internal storage unit of computer equipment 02, such as the calculating The hard disk or memory of machine equipment 02.In further embodiments, memory 021 is also possible to the external storage of computer equipment 02 The plug-in type hard disk being equipped in equipment, such as the computer equipment 02, intelligent memory card (Smart Media Card, SMC), peace Digital (Secure Digital, SD) card, flash card (FlashCard) etc..Certainly, memory 21 can also both include calculating The internal storage unit of machine equipment 02 also includes its External memory equipment.In the present embodiment, memory 021 is commonly used in storage peace Operating system and types of applications software loaded on computer equipment 02, for example, above-described embodiment log desensitization device program generation Code etc..In addition, memory 021 can be also used for temporarily storing the Various types of data that has exported or will export.
Processor 022 can be in some embodiments central processing unit (Central Processing Unit, CPU), Controller, microcontroller, microprocessor or other data processing chips.The processor 022 is commonly used in control computer equipment 02 overall operation.In the present embodiment, program code or processing number of the processor 022 for being stored in run memory 021 According to, such as running log desensitization device etc..
Embodiment five
The embodiment of the present invention also provides a kind of computer readable storage medium, as flash memory, hard disk, multimedia card, card-type are deposited Reservoir (for example, SD or DX memory etc.), static random-access memory (SRAM), read-only is deposited random access storage device (RAM) Reservoir (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, Disk, CD, server, App are stored thereon with computer program, realization when program is executed by processor using store etc. Corresponding function.The computer readable storage medium of the present embodiment is for storing log desensitization device, realization when being executed by processor The log desensitization method of above-described embodiment.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of log desensitization method characterized by comprising
The start command of application program is received, and starts the operation application program;
Monitor the log outgoing event of the application program;
When listening to the log outgoing event of the application program, the log outgoing event corresponding day to be output is intercepted Will content;
Call log to desensitize configuration file, wherein log desensitization configuration file be used to indicate data type to be desensitized and with The corresponding desensitization rule of the data type to be desensitized;
It desensitizes according to log desensitization configuration file to the log content;
Log content after desensitization is back to the application program, so that the application program will be in the log after the desensitization Hold output.
2. log desensitization method according to claim 1, which is characterized in that before calling log desensitization configuration file, The method also includes:
It is operated in response to the configuration to log desensitization configuration file, updates the log desensitization configuration file.
3. log desensitization method according to claim 2, which is characterized in that
The log desensitization configuration file includes multiple desensitization data configuration items, and each desensitization data configuration item is one corresponding The data type that desensitizes and desensitization rule;
The step of operating in response to the configuration to log desensitization configuration file, update log desensitization configuration file packet It includes: receiving the selected operation to the desensitization data configuration item, the chosen desensitization data configuration item is corresponding described The data type that desensitizes is as the data type to be desensitized, by the chosen corresponding desensitization of the desensitization data configuration item Rule is used as the corresponding desensitization rule of the data type to be desensitized.
4. log desensitization method according to claim 3, which is characterized in that
Log desensitization configuration file further includes history log desensitization time configuration item and history log desensitization pattern configurations item, The history log desensitization time configuration item is used to configure the time for carrying out history log desensitization process, and the desensitization mode is matched Set item for configure to history log carry out desensitization process mode, wherein to history log progress desensitization process mode include hand Dynamic model formula and silent mode;
The step of operating in response to the configuration to log desensitization configuration file, update the log desensitization configuration file is also wrapped It includes: receiving the input to history log desensitization time configuration item and operate, determine the time for carrying out desensitization process to history log;It connects Receive to it is described desensitization pattern configurations item selection operation, determine to history log carry out desensitization process mode be manual mode or Silent mode;
After receiving the start command starting operation of application program, the method also includes:
Judge whether current time needs to carry out desensitization process to history log according to log desensitization configuration file;
If current time needs to carry out desensitization process to history log, the history log of the application program is obtained;
Judge whether the history log needs desensitization process according to log desensitization configuration file;
If the history log needs desensitization process and to when the mode of history log progress desensitization process is manual mode, send Warning message, and receive history log desensitization order when, according to the log desensitization configuration file to the history log into Row desensitization process;
If the history log need desensitization process and to history log carry out desensitization process mode be silent mode when, directly Desensitization process is carried out to the history log according to log desensitization configuration file.
5. log desensitization method according to claim 4, which is characterized in that
Judge whether current time needs the step of carrying out desensitization process to history log according to log desensitization configuration file Further are as follows: when not hearing the log outgoing event of the application program, according to log desensitization configuration file judgement Whether current time needs to carry out desensitization process to history log.
6. log desensitization method according to claim 1, which is characterized in that
The step of receiving the start command starting operation of application program is further are as follows: receives the application program and is opened by class load The start command of dynamic device transmission starts operation.
7. log desensitization method according to claim 1, which is characterized in that
The data type to be desensitized includes card number, Chinese name, English name, telephone number, Email, ID card No. and lives Location;
The desensitization rule includes retaining preceding M wait data in the data type that desensitizes N with after, replaced with symbol described in Other positions wait data in the data type that desensitizes, wherein M and N is the integer greater than 1.
The device 8. a kind of log is desensitized characterized by comprising
Receiving module for receiving the start command of application program, and starts the operation application program;
Module is monitored, for monitoring the log outgoing event of the application program;
Blocking module, for intercepting the day when the monitoring module listens to the log outgoing event of the application program The corresponding log content to be printed of will outgoing event;
Calling module, for calling log desensitization configuration file, wherein the log desensitization configuration file is used to indicate wait desensitize Data type and desensitization rule corresponding with the data type to be desensitized;
Desensitize module, for desensitizing according to log desensitization configuration file to the log content;
Output module, for the log content after desensitization to be back to the application program, so that the application program will be described Log content output after desensitization.
9. a kind of computer equipment, the computer equipment include memory, processor and storage on a memory and can be The computer program run on processor, which is characterized in that the processor realizes claim 1 to 7 when executing described program The step of any one the method.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: described program is processed The step of any one of claim 1 to 7 the method is realized when device executes.
CN201910300602.1A 2019-04-15 2019-04-15 Log desensitization method, device, computer equipment and computer readable storage medium Pending CN110175465A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910300602.1A CN110175465A (en) 2019-04-15 2019-04-15 Log desensitization method, device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910300602.1A CN110175465A (en) 2019-04-15 2019-04-15 Log desensitization method, device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110175465A true CN110175465A (en) 2019-08-27

Family

ID=67689527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910300602.1A Pending CN110175465A (en) 2019-04-15 2019-04-15 Log desensitization method, device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110175465A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110750253A (en) * 2019-10-28 2020-02-04 深圳前海环融联易信息科技服务有限公司 Log standardization method and device, computer equipment and storage medium
CN110765483A (en) * 2019-09-29 2020-02-07 北京淇瑀信息科技有限公司 Configured log desensitization method and device and electronic equipment
CN111310224A (en) * 2020-01-16 2020-06-19 平安医疗健康管理股份有限公司 Log desensitization method, apparatus, computer device and computer readable storage medium
CN112784298A (en) * 2021-01-21 2021-05-11 平安普惠企业管理有限公司 Log desensitization method and device, computer equipment and storage medium
CN113010912A (en) * 2021-02-18 2021-06-22 浙江网商银行股份有限公司 Desensitization method and apparatus
CN113221182A (en) * 2021-06-10 2021-08-06 中国银行股份有限公司 Bank log desensitization method and device
CN113343293A (en) * 2021-05-31 2021-09-03 江苏苏宁银行股份有限公司 Universal data desensitization method, assembly, system, computer device and storage medium
CN113569291A (en) * 2021-08-02 2021-10-29 京东科技控股股份有限公司 Log mask method and device
CN114025358A (en) * 2020-07-15 2022-02-08 成都鼎桥通信技术有限公司 Data desensitization method, device, equipment and storage medium
CN115859355A (en) * 2022-12-15 2023-03-28 北京领雁科技股份有限公司 Log desensitization method, apparatus, electronic device and computer readable medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410532A (en) * 2014-12-12 2015-03-11 携程计算机技术(上海)有限公司 Server and log filtering method thereof
US20150302206A1 (en) * 2014-04-22 2015-10-22 International Business Machines Corporation Method and system for hiding sensitive data in log files
CN106529329A (en) * 2016-10-11 2017-03-22 中国电子科技网络信息安全有限公司 Desensitization system and desensitization method used for big data
CN106599713A (en) * 2016-11-11 2017-04-26 中国电子科技网络信息安全有限公司 Database masking system and method based on big data
US20170308712A1 (en) * 2016-04-22 2017-10-26 International Business Machines Corporation Automatic Audit Logging of Events in Software Applications Performing Regulatory Workloads
CN107423632A (en) * 2017-04-20 2017-12-01 北京同余科技有限公司 Customizable sensitive data desensitization method and system
CN108829789A (en) * 2018-06-01 2018-11-16 平安普惠企业管理有限公司 Log processing method, device, computer equipment and storage medium
CN109525608A (en) * 2019-01-07 2019-03-26 Oppo广东移动通信有限公司 Log reporting method and device, blog management method and device and terminal device
CN109614379A (en) * 2018-10-22 2019-04-12 中国平安人寿保险股份有限公司 Log-output method, device, computer storage medium and computer equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150302206A1 (en) * 2014-04-22 2015-10-22 International Business Machines Corporation Method and system for hiding sensitive data in log files
CN104410532A (en) * 2014-12-12 2015-03-11 携程计算机技术(上海)有限公司 Server and log filtering method thereof
US20170308712A1 (en) * 2016-04-22 2017-10-26 International Business Machines Corporation Automatic Audit Logging of Events in Software Applications Performing Regulatory Workloads
CN106529329A (en) * 2016-10-11 2017-03-22 中国电子科技网络信息安全有限公司 Desensitization system and desensitization method used for big data
CN106599713A (en) * 2016-11-11 2017-04-26 中国电子科技网络信息安全有限公司 Database masking system and method based on big data
CN107423632A (en) * 2017-04-20 2017-12-01 北京同余科技有限公司 Customizable sensitive data desensitization method and system
CN108829789A (en) * 2018-06-01 2018-11-16 平安普惠企业管理有限公司 Log processing method, device, computer equipment and storage medium
CN109614379A (en) * 2018-10-22 2019-04-12 中国平安人寿保险股份有限公司 Log-output method, device, computer storage medium and computer equipment
CN109525608A (en) * 2019-01-07 2019-03-26 Oppo广东移动通信有限公司 Log reporting method and device, blog management method and device and terminal device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110765483A (en) * 2019-09-29 2020-02-07 北京淇瑀信息科技有限公司 Configured log desensitization method and device and electronic equipment
CN110750253A (en) * 2019-10-28 2020-02-04 深圳前海环融联易信息科技服务有限公司 Log standardization method and device, computer equipment and storage medium
CN111310224A (en) * 2020-01-16 2020-06-19 平安医疗健康管理股份有限公司 Log desensitization method, apparatus, computer device and computer readable storage medium
CN114025358A (en) * 2020-07-15 2022-02-08 成都鼎桥通信技术有限公司 Data desensitization method, device, equipment and storage medium
CN114025358B (en) * 2020-07-15 2024-02-13 成都鼎桥通信技术有限公司 Data desensitization method, device, equipment and storage medium
CN112784298A (en) * 2021-01-21 2021-05-11 平安普惠企业管理有限公司 Log desensitization method and device, computer equipment and storage medium
CN113010912A (en) * 2021-02-18 2021-06-22 浙江网商银行股份有限公司 Desensitization method and apparatus
CN113343293A (en) * 2021-05-31 2021-09-03 江苏苏宁银行股份有限公司 Universal data desensitization method, assembly, system, computer device and storage medium
CN113221182A (en) * 2021-06-10 2021-08-06 中国银行股份有限公司 Bank log desensitization method and device
CN113569291A (en) * 2021-08-02 2021-10-29 京东科技控股股份有限公司 Log mask method and device
CN113569291B (en) * 2021-08-02 2024-04-05 京东科技控股股份有限公司 Log mask method and device
CN115859355A (en) * 2022-12-15 2023-03-28 北京领雁科技股份有限公司 Log desensitization method, apparatus, electronic device and computer readable medium
CN115859355B (en) * 2022-12-15 2023-08-04 北京领雁科技股份有限公司 Log desensitization method, device, electronic equipment and computer readable medium

Similar Documents

Publication Publication Date Title
CN110175465A (en) Log desensitization method, device, computer equipment and computer readable storage medium
CN109669835B (en) MySQL database monitoring method, device, equipment and readable storage medium
CN107995377B (en) Customer service management method, electronic device and computer readable storage medium
CN103078949B (en) The method and system of display telephone number information
CN112672357B (en) Method and device for processing user account in service system and computer equipment
CN109583226A (en) Data desensitization process method, apparatus and electronic equipment
CN107682572B (en) Customer incoming line distribution method, system, computer equipment and storage medium
CN105844146B (en) Method and device for protecting driver and electronic equipment
CN110489993A (en) A kind of desensitization system and method for Electricity customers data
CN108616668B (en) Method for monitoring dialing task, electronic device and computer readable storage medium
CN106878527A (en) Call control method and device
CN108564345B (en) Insurance platform data processing method, electronic device and computer readable storage medium
CN106559386A (en) A kind of authentication method and device
CN107872446B (en) Communication account management method and device and server
CN109219001A (en) SMS interception method, intercepts platform and storage medium at device
US20240187523A1 (en) System and method for unified autodial campaign management
CN110191097A (en) Detection method, system, equipment and the storage medium of login page safety
CN108959597A (en) User's space guard method, device, equipment and display terminal storage medium
CN109040491B (en) Hanging-up behavior processing method and device, computer equipment and storage medium
CN108810233B (en) Malicious incoming call identification method and device
CN107545413A (en) Event-handling method and device
CN116074042A (en) Multi-cloud platform exception handling method, device and equipment based on single sign-on
CN108989298A (en) A kind of equipment safety monitoring method and device
CN109905407A (en) Management method, system, equipment and medium based on vpn server access Intranet
CN115242872A (en) Data processing method and device, computer equipment and readable storage 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