[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108509293A - A kind of user journal timestamp fault-tolerance approach and system - Google Patents

A kind of user journal timestamp fault-tolerance approach and system Download PDF

Info

Publication number
CN108509293A
CN108509293A CN201810237129.2A CN201810237129A CN108509293A CN 108509293 A CN108509293 A CN 108509293A CN 201810237129 A CN201810237129 A CN 201810237129A CN 108509293 A CN108509293 A CN 108509293A
Authority
CN
China
Prior art keywords
timestamp
log files
information
user log
user
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
CN201810237129.2A
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.)
Sichuan Feixun Information Technology Co Ltd
Original Assignee
Sichuan Feixun Information 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 Sichuan Feixun Information Technology Co Ltd filed Critical Sichuan Feixun Information Technology Co Ltd
Priority to CN201810237129.2A priority Critical patent/CN108509293A/en
Publication of CN108509293A publication Critical patent/CN108509293A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of user journal timestamp fault-tolerance approaches, including:Collect user log files;User log files are decompressed, are parsed, the timestamp of user log files is obtained;Store path based on user log files carries out error detection and error correction to the timestamp of user log files.In addition, the invention also discloses a kind of user journal timestamp tolerant systems, including:Collection module, for collecting user log files;Decompression parsing module obtains the timestamp of user log files for being decompressed, being parsed to the user log files that collection module is collected;Error-detection error-correction module is used for the store path based on user log files, timestamp progress error detection and error correction to the user log files that decompression parsing module obtains.The present invention is based on the store paths of user log files, the problem of carrying out error-detection error-correction to the timestamp of user log files, avoid due to data analysis mistake caused by timestamp mistake or lose.

Description

A kind of user journal timestamp fault-tolerance approach and system
Technical field
The present invention relates to terminal user's journal file field more particularly to a kind of user journal timestamp fault-tolerance approach and it is System.
Background technology
When analyzing user journal information, the timestamp of daily record is important analysis axis.However, due to terminal Equipment often because restart with the reasons such as the system failure, cause timestamp mistake occur, for example the date of timestamp occurs 19700101 equal error messages, can cause later data to handle and analyze mistake and data Loss in this way.
Invention content
The present invention provides a kind of user journal timestamp fault-tolerance approach, and error-detection error-correction has been carried out to the user journal time, solves It has determined in the prior art since user journal timestamp appearance mistake causes later data processing analysis mistake and loss of data Problem.Specific technical solution is as follows:
A kind of user journal timestamp fault-tolerance approach, including:S100 collects user log files;S200 is to the user day Will file is decompressed, is parsed, and the timestamp of the user log files is obtained;S300 is deposited based on the user log files Path is stored up, error detection and error correction are carried out to the timestamp of the user log files.
Preferably, the step S200 includes:S210 decompresses the user log files, obtains the user day The title of will file;S220 parses the temporal information of the user log files from the title of the user log files, Obtain the timestamp of the user log files.
Preferably, the step S300 includes:S310 obtains the store path of the user log files, intercepts the use Temporal information in the store path of family journal file, which is used as, refers to temporal information;S320 judge the user log files when Between the temporal information stabbed it is whether consistent with the reference time information, if it is not, entering step S330;S330 judges the user day The timestamp of will file is wrong, according to the reference time information, changes the timestamp of the user log files.
Preferably, the step S320 includes:S321 obtains the year information in the timestamp of the user log files; S322 judges whether the year information in the timestamp of the user log files is consistent with the year information of current time;If It is to enter step S323;Otherwise, S330 is entered step;S323 is obtained in the timestamps of the user log files except year especially Remaining time information, judge in the timestamp of the user log files except year especially remaining time information whether with the reference Corresponding temporal information is consistent in temporal information;If it is not, entering step S330.
Preferably, the file name information of the user log files includes three parts:Temporal information, hardware id information and soft Part version number information;Wherein, the temporal information includes:Year information, month information, date information and hour information.
In addition, the present invention also provides a kind of user journal timestamp tolerant systems, including:Collection module, for collecting User log files;Parsing module is decompressed, the user log files for being collected to the collection module are decompressed, solved Analysis, obtains the timestamp of the user log files;Error-detection error-correction module is used for the storage road based on the user log files Diameter, timestamp progress error detection and error correction to the user log files that the decompression parsing module obtains.
Preferably, the decompression parsing module includes:Filename acquisition submodule, for the user log files into Row decompression, obtains the title of the user log files;Timestamp acquisition submodule, for the name from the user log files The temporal information that the user log files are parsed in title obtains the timestamp of the user log files.
Preferably, the error-detection error-correction module includes:Reference time acquisition submodule, for obtaining the user journal text The store path of part, the temporal information intercepted in the store path of the user log files are used as with reference to temporal information;Judge Submodule, for judge it is described decompression parsing module obtain the user log files timestamp temporal information whether with The reference time information that the reference time acquisition submodule obtains is consistent;If it is not, judging the time of the user log files It stabs wrong;Submodule is changed, for when the judging submodule judges that the timestamp of the user log files is wrong, according to The reference time information, changes the timestamp of the user log files.
Preferably, the judging submodule includes:First acquisition unit, the time for obtaining the user log files Year information in stamp;First judging unit, for judging user log files that the first acquisition unit obtains Whether the year information in timestamp is consistent with the year information of current time;When the timestamp for judging the user log files In year information it is consistent with the year information of current time when, follow-up time information is continued by second judgment unit and is sentenced It is disconnected;When the year information of year information and current time in the timestamp for judging the user log files is inconsistent, lead to Cross the timestamp that the modification submodule changes the user log files;Second acquisition unit, for obtaining the user day Except year especially remaining time information in the timestamp of will file;The second judgment unit, for when the judgement user journal When year information in the timestamp of file is consistent with the year information of current time, judge what the second acquisition unit obtained Except year, especially whether remaining time information was corresponding with the reference time information in the timestamp of the user log files Temporal information is consistent;When in the timestamp for judging the user log files in addition to year information remaining time information and the ginseng Examine corresponding temporal information in temporal information it is inconsistent when, by the modification submodule change the user log files when Between stab.
Preferably, the file name information of the user log files includes three parts:Temporal information, hardware id information and soft Part version number information;Wherein, the temporal information includes:Year information, month information, date information and hour information.
The present invention at least has with the next item down technique effect:
(1) present invention has carried out error detection according to the store path of user log files to the timestamp of user log files Error correction avoids the problem for causing that later data is handled and analysis is wrong since timestamp is wrong, can also avoid loss of data The phenomenon that occur, realize the fault-tolerant purpose of user journal timestamp.
(2) whether the present invention is identical as the time of current time by the year information for monitoring timestamp in user journal, If differing, the temporal information when date in timestamp is directly replaced with to the days in the store path of the user journal Temporal information when day is realized the fault-tolerant purpose of user journal timestamp, is promoted to obtain revised user journal timestamp The treatment effeciency of detection.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of flow chart of the embodiment of user journal timestamp fault-tolerance approach of the present invention;
Fig. 2 is a kind of flow chart of another embodiment of user journal timestamp fault-tolerance approach of the present invention;
Fig. 3 is a kind of flow chart of another embodiment of user journal timestamp fault-tolerance approach of the present invention;
Fig. 4 is a kind of flow chart of another embodiment of user journal timestamp fault-tolerance approach of the present invention;
Fig. 5 is a kind of block diagram of the embodiment of user journal timestamp tolerant system of the present invention;
Fig. 6 is a kind of block diagram of another embodiment of user journal timestamp tolerant system of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
The invention discloses a kind of user journal timestamp fault-tolerance approaches, and embodiment is as shown in Figure 1, include:
S100 collects user log files;
S200 decompresses the user log files, is parsed, and the timestamp of the user log files is obtained;
Store paths of the S300 based on the user log files carries out error detection to the timestamp of the user log files And error correction.
We are in data processing, usually processing in real time, in store path when collecting the journal file of user Including the mode of temporal information stores user log files.The present invention is based on such a memory mechanism to carry out The error-detection error-correction of user log files timestamp.Such as be 20 minutes 16 points of on March 2nd, 2018 now, then at 2018 3 On the moon 2 16: 00 separately began to 2 days 17: 00 March in 2018/preceding, storage of the user network journal file of this period Aft section in path is " 2018/03/02/16/20/log_file.data ".Here store path is by machine time What setting generated, the standard that can be detected as timestamp.
Another embodiment of fault-tolerance approach of the present invention, as shown in Fig. 2, including:
S100 collects user log files;
S210 decompresses the user log files, obtains the title of the user log files;
S220 parses the temporal information of the user log files from the title of the user log files, obtains institute State the timestamp of user log files;
Store paths of the S300 based on the user log files carries out error detection to the timestamp of the user log files And error correction.
Our user log files in name are named according to certain name format, in file name The timestamp of user network journal file is contained, specifically, the magnanimity uplink file (user log files) collected It is " YYYYMMDDHHMinMinSS_X***X (hardware ID) _ Va.b (software version number) .data " to name format.Therefore, we The temporal information that user log files can be chosen from filename, obtains the timestamp of user log files.And due to terminal There are restarting the either reasons such as system failure and is likely to result in the initialization of time at that time or restores covering in equipment, then just It is likely to occur the temporal information of mistake, for example occurs for 19700101 wrong time, in this way, the user log files that terminal generates When name will time of occurrence information mistake, subsequent data processing and analysis are impacted.Therefore, for this feelings Condition, it would be desirable to which EDC error detection and correction is carried out to the timestamp of user log files.
Another embodiment of fault-tolerance approach of the present invention, as shown in figure 3, including:
S100 collects user log files;
S200 decompresses the user log files, is parsed, and the timestamp of the user log files is obtained;
S310 obtains the store path of the user log files, in the store path for intercepting the user log files Temporal information, which is used as, refers to temporal information;
S320 judges whether the temporal information of the timestamp of the user log files is consistent with the reference time information, If it is not, entering step S330;
S330 judges that the timestamp of the user log files is wrong, according to the reference time information, changes the use The timestamp of family journal file.
In the present embodiment, after getting the timestamp information of user log files, compare the timestamp whether with storage road Temporal information in diameter is consistent, specifically, such as getting the timestamp information of user log files:Timestamp= " 20171225210915 " (temporal information represented as 09 divide 15 seconds when 25 days 21 December in 2017);The user log files Store path is:(temporal information represented is on December 28th, 2017 to * * * * */2017/12/28/21/log_file.data When 21), when carrying out Time transfer receiver, time and time compare, month and compare in month, date and date compare, hour It compares, is found after so comparing, the time in temporal information and store path in the timestamp of user log files with hour Information is inconsistent, therefore, judge it is wrong in the timestamp of the user log files, to the temporal information in store path be Reference time is modified the temporal information in timestamp.Specifically, timestamp is revised as:Timestamp= “20171228210915”.Namely time point inconsistent with reference time information in the temporal information of timestamp is replaced with Reference time information point since the time point information on days is consistent, occurs in this present embodiment from date sart point in time information It is inconsistent, therefore, as long as by timestamp date and subsequent hour be modified, by original in December, 2017 When being revised as 28 days 21 December in 2017 at 25 days 21.For the minute in timestamp, second equi-time point information, due to ginseng Examining does not have the information at this time point in the time, just have no way of referring to yet, then this part-time point information is then not necessarily to check modification. That is temporal information when need to only compare the date in the timestamps of user log files whether with the year in store path Temporal information is identical when the day moon, if identical, illustrates that timestamp is errorless, it is not necessary to modify if it is different, then illustrate that timestamp has Accidentally, then can directly by the date in timestamp when time letter of temporal information when replacing with the date in store path Breath (reference time information) realizes the fault-tolerant purpose of user journal timestamp to have modified the temporal information of timestamp.
Preferably, as shown in figure 4, on the basis of the above embodiments, the step S320 includes:
S321 obtains the year information in the timestamp of the user log files;
S322 judge the year information in the timestamp of the user log files whether the year information with current time Unanimously;If so, entering step S323;Otherwise, S330 is entered step;
S323 is obtained in the timestamps of the user log files except year especially remaining time information, judges the user day In the timestamp of will file except year especially remaining time information whether with corresponding temporal information one in the reference time information It causes;If it is not, entering step S330.
In the present embodiment, in order to optimize error detection efficiency, accelerates the inspection treatment effeciency to timestamp, preferentially the time is carried out Detection, if the time is inconsistent, without subsequently being checked, directly by the timestamp of user log files according to the reference time Change accordingly, if the time is consistent, rechecks the temporal informations such as subsequent month, date, hour.
Preferably, in any of the above-described embodiment, the file name information of the user log files includes three parts:Time believes Breath, hardware id information and software version number information;Wherein, the temporal information includes:Year information, month information, date letter Breath and hour information.
Another embodiment of fault-tolerance approach of the present invention, the store path according to journal file are set by machine time, Such as~/year/month/day/hour/log_file.data, the user journal timestamp in journal file path is obtained, into Row log timestamp error correction.Implementation steps specifically include:
Step 1: the magnanimity uplink file collected, name format are:“YYYYMMDDHHMinMinSS_X***X (hardware ID) _ Va.b (software version number) .data ".
Step 2: carrying out decompressing secret parsing to collected magnanimity uplink file.
Step 3: in resolving, by user journal timestamp fault tolerant mechanism carry out the error detection of log recording time and Error correction is as follows:
(1) title for obtaining uplink file, is labeled as FileName.
(2) it is three parts by FileName points and remains, i.e. timestamp=" YYYYMMDDHHMinMinSS ", HardID=" X***X " (hardware ID) and SoftwareVersion=" Va.b " (software version number).
(3) the time Year=" YYYY " of timestamp is intercepted.Due to here in order to promote the treatment effeciency of program, machine The variation of time device time is relatively slow and data processing is to handle in real time, therefore setting current year is fixed value, that is, Year_Now here =" 2018 ", every adjacent 2 year transitional period can update once.Source log store path format is "~/year/month/ simultaneously day/hour/log_file.data”。
(4) judge whether Year is equal to Year_Now, if equal, timestamp is correct, continues subsequent processing;Otherwise, from Year/month/day/hour is intercepted on Source log store path, and carries out log timestamp error correction, i.e. timestamp= “year”+“month”+“day”+“hour”+“MinMinSS”。
Step 4: continuing follow-up parsing operation.
In the present embodiment, by first four of timestamp in detection terminal user's row daily record whether the time with current time It is identical, if differing, the time intercepted in file store path is replaced with when by its date, to be combined into new user Log timestamp realizes the fault-tolerant purpose of user journal timestamp.
Based on the same technical idea, the present invention also provides a kind of user journal timestamp tolerant system, the fault-tolerant systems System may be used the present invention user journal timestamp fault-tolerance approach, specifically, as shown in figure 5, the present invention user journal when Between stamp tolerant system include:Collection module 100, for collecting user log files;Parsing module 200 is decompressed, for described The user log files that collection module 100 is collected are decompressed, are parsed, and the timestamp of the user log files is obtained; Error-detection error-correction module 300 is used for the store path based on the user log files, is obtained to the decompression parsing module 200 The timestamps of the user log files carry out error detection and error correction.
As shown in fig. 6, on the basis of above system embodiment, the decompression parses the another system embodiment of the present invention Module 200 includes:Filename acquisition submodule 210 obtains the user day for being decompressed to the user log files The title of will file;Timestamp acquisition submodule 220, for parsing the user from the title of the user log files The temporal information of journal file obtains the timestamp of the user log files.
Another embodiment of the present invention, shown in Fig. 6, based on any of the above embodiments, the error detection Correction module 300 includes:Reference time acquisition submodule 310, the store path for obtaining the user log files, interception Temporal information in the store path of the user log files, which is used as, refers to temporal information;Judging submodule 320, for judging It is described decompression parsing module 200 obtain the user log files timestamp temporal information whether with the reference time The reference time information that acquisition submodule obtains is consistent;If it is not, judging that the timestamp of the user log files is wrong;Modification Module 330, for when the judging submodule 320 judges that the timestamp of the user log files is wrong, according to the ginseng Temporal information is examined, the timestamp of the user log files is changed.
Preferably, on the basis of the above embodiments, the judging submodule 320 includes:First acquisition unit 321 is used Year information in the timestamp for obtaining the user log files;First judging unit 322, for judging that described first obtains Take unit 321 obtain the user log files timestamp in year information whether the year information one with current time It causes;When the year information in the timestamp for judging the user log files is consistent with the year information of current time, pass through Second judgment unit 324 continues the judgement of follow-up time information;Year in the timestamp for judging the user log files When the year information of part information and current time is inconsistent, the user log files are changed by the modification submodule 330 Timestamp;Second acquisition unit 323, except year, especially remaining time believed in the timestamp for obtaining the user log files Breath;The second judgment unit 324, for when in the timestamp for judging the user log files year information with it is current when Between year information it is consistent when, judge the second acquisition unit 323 obtain the user log files timestamp in remove Year, especially whether remaining time information was consistent with corresponding temporal information in the reference time information;As the judgement user day Remaining time information and corresponding temporal information in the reference time information be not in addition to year information in the timestamp of will file When consistent, the timestamp of the user log files is changed by the modification submodule 330.
In the present embodiment, by first four of timestamp in detection terminal user log files whether with current machine time Time it is identical, if differing, the time intercepted in file store path is replaced with when by its date, it is new to be combined into User journal timestamp, realize the fault-tolerant purpose of user journal timestamp, promote treatment effeciency.
In any of the above-described tolerant system embodiment, the file name information of the user log files includes three parts:Time Information, hardware id information and software version number information;Wherein, the temporal information includes:Year information, month information, date Information and hour information.
The user journal timestamp fault-tolerance approach of the user journal timestamp tolerant system embodiment of the present invention and the present invention Embodiment corresponds to, and the technical detail of fault-tolerance approach embodiment of the invention can equally be well applied to the tolerant system implementation of the present invention Example is repeated to reduce, is repeated no more.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of user journal timestamp fault-tolerance approach, which is characterized in that including:
S100 collects user log files;
S200 decompresses the user log files, is parsed, and the timestamp of the user log files is obtained;
Store paths of the S300 based on the user log files carries out error detection to the timestamp of the user log files and entangles It is wrong.
2. a kind of user journal timestamp fault-tolerance approach according to claim 1, which is characterized in that the step S200 packets It includes:
S210 decompresses the user log files, obtains the title of the user log files;
S220 parses the temporal information of the user log files from the title of the user log files, obtains the use The timestamp of family journal file.
3. wanting a kind of user journal timestamp fault-tolerance approach described in 1 according to right, which is characterized in that the step S300 packets It includes:
S310 obtains the store path of the user log files, intercepts the time in the store path of the user log files Information, which is used as, refers to temporal information;
S320 judges whether the temporal information of the timestamp of the user log files is consistent with the reference time information, if It is no, enter step S330;
S330 judges that the timestamp of the user log files is wrong, according to the reference time information, changes the user day The timestamp of will file.
4. a kind of user journal timestamp fault-tolerance approach according to claim 3, which is characterized in that the step S320 packets It includes:
S321 obtains the year information in the timestamp of the user log files;
S322 judges whether the year information in the timestamp of the user log files is consistent with the year information of current time; If so, entering step S323;Otherwise, S330 is entered step;
S323 is obtained in the timestamps of the user log files except year especially remaining time information, judges the user journal text Except year, especially whether remaining time information was consistent with corresponding temporal information in the reference time information in the timestamp of part;If It is no, enter step S330.
5. according to a kind of user journal timestamp fault-tolerance approach of claim 1-4 any one of them, which is characterized in that
The file name information of the user log files includes three parts:Temporal information, hardware id information and software version number letter Breath;Wherein, the temporal information includes:Year information, month information, date information and hour information.
6. a kind of user journal timestamp tolerant system, which is characterized in that including:
Collection module, for collecting user log files;
Parsing module is decompressed, the user log files for being collected to the collection module are decompressed, parsed, and institute is obtained State the timestamp of user log files;
Error-detection error-correction module is used for the store path based on the user log files, is obtained to the decompression parsing module The timestamp of the user log files carries out error detection and error correction.
7. a kind of user journal timestamp tolerant system according to claim 6, which is characterized in that the decompression parses mould Block includes:
Filename acquisition submodule obtains the name of the user log files for being decompressed to the user log files Claim;
Timestamp acquisition submodule, for parsed from the title of the user log files user log files when Between information, obtain the timestamp of the user log files.
8. a kind of user journal timestamp tolerant system according to claim 6, which is characterized in that the error-detection error-correction mould Block includes:
Reference time acquisition submodule, the store path for obtaining the user log files intercept the user journal text Temporal information in the store path of part, which is used as, refers to temporal information;
Judging submodule, the time letter of the timestamp of the user log files for judging the decompression parsing module acquisition Whether breath is consistent with the reference time information that the reference time acquisition submodule obtains;If it is not, judging the user journal text The timestamp of part is wrong;
Submodule is changed, for when the judging submodule judges that the timestamp of the user log files is wrong, according to institute Reference time information is stated, the timestamp of the user log files is changed.
9. a kind of user journal timestamp tolerant system according to claim 8, which is characterized in that the judging submodule Including:
First acquisition unit, the year information in timestamp for obtaining the user log files;
First judging unit, the year in timestamp for judging user log files that the first acquisition unit obtains Whether part information is consistent with the year information of current time;Year information in the timestamp for judging the user log files When consistent with the year information of current time, follow-up time information is continued by second judgment unit and is judged;When judgement institute State the year information and current time in the timestamp of user log files year information it is inconsistent when, pass through the modification son Module changes the timestamp of the user log files;
Second acquisition unit, except year especially remaining time information in the timestamp for obtaining the user log files;
The second judgment unit, for when the year information and current time in the timestamp for judging the user log files Year information it is consistent when, judge in the timestamp for the user log files that the second acquisition unit obtains except year especially Whether remaining time information is consistent with corresponding temporal information in the reference time information;When the judgement user log files Timestamp in when remaining time information temporal information corresponding with the reference time information is inconsistent in addition to year information, The timestamp of the user log files is changed by the modification submodule.
10. according to a kind of user journal timestamp tolerant system of claim 6-9 any one of them, which is characterized in that
The file name information of the user log files includes three parts:Temporal information, hardware id information and software version number letter Breath;Wherein, the temporal information includes:Year information, month information, date information and hour information.
CN201810237129.2A 2018-03-21 2018-03-21 A kind of user journal timestamp fault-tolerance approach and system Pending CN108509293A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810237129.2A CN108509293A (en) 2018-03-21 2018-03-21 A kind of user journal timestamp fault-tolerance approach and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810237129.2A CN108509293A (en) 2018-03-21 2018-03-21 A kind of user journal timestamp fault-tolerance approach and system

Publications (1)

Publication Number Publication Date
CN108509293A true CN108509293A (en) 2018-09-07

Family

ID=63377955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810237129.2A Pending CN108509293A (en) 2018-03-21 2018-03-21 A kind of user journal timestamp fault-tolerance approach and system

Country Status (1)

Country Link
CN (1) CN108509293A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947411A (en) * 2019-03-29 2019-06-28 成都章鱼侠科技股份有限公司 The method that distributed software generates unique ID major key
CN113420751A (en) * 2021-06-15 2021-09-21 读书郎教育科技有限公司 System and method for offline time calibration of smart watch
CN114021530A (en) * 2021-11-09 2022-02-08 卡斯柯信号有限公司 Method for checking and correcting interlocking table

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026447A (en) * 2006-02-02 2007-08-29 村田机械株式会社 Network terminal device, and timestamp correcting method of the same
CN101719085A (en) * 2009-12-23 2010-06-02 金蝶软件(中国)有限公司 Log file processing method, device and system
CN103092745A (en) * 2013-01-22 2013-05-08 中兴通讯股份有限公司 Control method and control device of system log records
CN104601349A (en) * 2013-10-30 2015-05-06 北京思博途信息技术有限公司 Method and device for correcting time of network behavior log
CN104935465A (en) * 2015-06-17 2015-09-23 北京京东尚科信息技术有限公司 Log generating method and log generating device of client application program, and server
CN107124289A (en) * 2016-02-24 2017-09-01 华为技术有限公司 Network log time unifying method, device and main frame

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026447A (en) * 2006-02-02 2007-08-29 村田机械株式会社 Network terminal device, and timestamp correcting method of the same
CN101719085A (en) * 2009-12-23 2010-06-02 金蝶软件(中国)有限公司 Log file processing method, device and system
CN103092745A (en) * 2013-01-22 2013-05-08 中兴通讯股份有限公司 Control method and control device of system log records
CN104601349A (en) * 2013-10-30 2015-05-06 北京思博途信息技术有限公司 Method and device for correcting time of network behavior log
CN104935465A (en) * 2015-06-17 2015-09-23 北京京东尚科信息技术有限公司 Log generating method and log generating device of client application program, and server
CN107124289A (en) * 2016-02-24 2017-09-01 华为技术有限公司 Network log time unifying method, device and main frame

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947411A (en) * 2019-03-29 2019-06-28 成都章鱼侠科技股份有限公司 The method that distributed software generates unique ID major key
CN109947411B (en) * 2019-03-29 2022-06-17 成都章鱼侠科技股份有限公司 Method for generating unique ID (identity) primary key by distributed software
CN113420751A (en) * 2021-06-15 2021-09-21 读书郎教育科技有限公司 System and method for offline time calibration of smart watch
CN114021530A (en) * 2021-11-09 2022-02-08 卡斯柯信号有限公司 Method for checking and correcting interlocking table

Similar Documents

Publication Publication Date Title
CN112307121B (en) Oracle-based data synchronization method and device and computer equipment
US20100199132A1 (en) Systems, methods and computer program products for remote error resolution reporting
US20200341868A1 (en) System and Method for Reactive Log Spooling
CN106778260A (en) Attack detection method and device
CN108509293A (en) A kind of user journal timestamp fault-tolerance approach and system
KR20130019366A (en) Efficiently collecting transction-separated metrics in a distributed enviornment
CN110764980A (en) Log processing method and device
CN109992476B (en) Log analysis method, server and storage medium
US10915510B2 (en) Method and apparatus of collecting and reporting database application incompatibilities
CN112506702A (en) Data center disaster tolerance method, device, equipment and storage medium
CN109949069A (en) Suspicious user screening technique, device, computer equipment and storage medium
CN110716922A (en) Incep-based database operation and maintenance method and device, computer equipment and storage medium
US20170315858A1 (en) Metric payload ingestion and replay
CN109582504A (en) A kind of data reconstruction method and device for apple equipment
CN113419872A (en) Application system interface integration system, integration method, equipment and storage medium
CN109218401A (en) Log collection method, system, computer equipment and storage medium
US7457991B1 (en) Method for scanning windows event logs on a cellular multi-processor (CMP) server
CN110489208B (en) Virtual machine configuration parameter checking method, system, computer equipment and storage medium
CN117395153A (en) Hospital information system based on micro-service architecture
CN111162938A (en) Data processing system and method
CN113760608B (en) Data recovery method and device, electronic equipment and storage medium
EP3895015B1 (en) Collecting repeated diagnostics data from across users participating in a document collaboration session
CN116264541A (en) Multi-dimension-based database disaster recovery method and device
CN111552566B (en) Data processing system, method, electronic equipment and storage medium
CN109992475B (en) Log processing method, server and 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180907