CN107480233A - A kind of method and system of daily record data positioning - Google Patents

A kind of method and system of daily record data positioning Download PDF

Info

Publication number
CN107480233A
CN107480233A CN201710666135.5A CN201710666135A CN107480233A CN 107480233 A CN107480233 A CN 107480233A CN 201710666135 A CN201710666135 A CN 201710666135A CN 107480233 A CN107480233 A CN 107480233A
Authority
CN
China
Prior art keywords
keyword
index
file
generation
journal file
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
CN201710666135.5A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710666135.5A priority Critical patent/CN107480233A/en
Publication of CN107480233A publication Critical patent/CN107480233A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs

Abstract

This application discloses a kind of method of daily record data positioning, including:Obtain the journal file of given server;Journal file is traveled through according to keyword and obtains the positional information of keyword, generation includes the index file of positional information;When receiving index selection instruction, the position according to corresponding to index file navigates to index selection instruction, and export the daily record data positioned at the position.Method provided herein only needs user to input screening conditions, it is possible to filters out required daily record data, user can be made to be freed from numerous and jumbled, substantial amounts of file journalization, save human resources, improve the quality and efficiency of O&M.The application additionally provides a kind of system of daily record data positioning simultaneously, has above-mentioned beneficial effect.

Description

A kind of method and system of daily record data positioning
Technical field
The application is related to computer software, more particularly to a kind of method and system of daily record data positioning.
Background technology
With the development of internet and increasing for Internet service, also more and more therewith, the scale of application of various applications It is increasing, the compactness more and more higher between.The exploitation operation maintenance personnel that this directly results in needs is also more and more.But With the increasingly increase of system scale, what maintenance work also became becomes increasingly complex.
When applying in the process of running, a logout can be all produced;Per a line daily record all recite the date, the time, The description of the associative operation such as user and action.Daily record is generally in the backseat of construction cycle, but actually high-performance, Accurately daily record exports, and is the important evidence of O&M, developer in positioning analysis problem.However, counting easily with ten thousand rows The daily record data related to problem is found in the journal file of note, it is unpractical to leaf through page by page.
Therefore, how fast and accurately to find the daily record data related to problem in journal file is people in the art The current technical issues that need to address of member.
Apply for content
The purpose of the application is to provide a kind of method and system of daily record data positioning, can be quick accurate in journal file True finds the daily record data related to problem.
In order to solve the above technical problems, the application provides a kind of method of daily record data positioning, this method includes:
Obtain the journal file of given server;
The journal file is traveled through according to keyword and obtains the positional information of the keyword, generation is believed comprising the position The index file of breath;
When receiving index selection instruction, the position according to corresponding to the index file navigates to the index selection instruction Put, and export the daily record data positioned at the position.
Optionally, it is described that the positional information of the keyword, generation bag are obtained according to the keyword traversal journal file Index file containing the positional information, including:
The journal file is traveled through according to the first keyword and obtains the first position information of first keyword, generation bag The first index file containing the first position information;First keyword is the keyword pre-set;
When receiving the second keyword, the journal file is traveled through according to second keyword and obtains second pass The second place information of key word, generation include the second index file of the second place information;Second keyword is use The keyword of family input.
Optionally, it is described that the positional information of the keyword, generation bag are obtained according to the keyword traversal journal file Index file containing the positional information, including:
Receive the 3rd keyword;3rd keyword is the keyword that user needs to input;
The journal file is traveled through according to the 3rd keyword and obtains the 3rd positional information of the 3rd keyword, it is raw Into the 3rd index file for including the 3rd positional information.
Optionally, the journal file for obtaining given server, including:
Server address, username and password according to receiving determine the given server, obtain the specified clothes The journal file of business device.
The application also provides a kind of system of daily record data positioning, and the system includes:
Acquisition module, for obtaining the journal file of the given server;
Generation module is indexed, institute's rheme of the keyword is obtained for traveling through the journal file according to the keyword Confidence ceases, and generation includes the index file of the positional information;
Receiving module, for receiving the index selection instruction;
Output module is positioned, for position corresponding to navigating to index selection instruction according to the index file, and The daily record data of the output positioned at the position.
Optionally, the index generation module includes:
First index generation submodule, first key is obtained for traveling through the journal file according to the first keyword The first position information of word, generation include first index file of the first position information;Described first is crucial Word is the keyword pre-set;
Second keyword receiving submodule, for receiving second keyword;
Second index generation submodule, for when receiving second keyword, according to second keyword time Go through the journal file and obtain the second place information of second keyword, generation includes the second place information Second index file;Second keyword is the keyword of user's input.
Optionally, the index generation module includes:
3rd keyword receiving submodule, for receiving the 3rd keyword;3rd keyword is the user Need the keyword inputted;
3rd index generation submodule, the described 3rd is obtained for traveling through the journal file according to the 3rd keyword The 3rd positional information of keyword, generation include the 3rd index file of the 3rd positional information.
Optionally, the acquisition module includes:
Determination sub-module is received, for receiving the server address, the user name and the password, and according to described Server address, the user name and the password determine the given server;
Acquisition submodule, for obtaining the journal file of the given server.
The method of a kind of daily record data positioning provided herein, by obtaining the journal file of given server, root The positional information of keyword is obtained according to keyword traversal journal file, and generation includes the index file of the positional information, when connecing When receiving index selection instruction, the position according to corresponding to index file navigates to index selection instruction, and export and be located at the position Daily record data.Obviously, method provided herein only needs user to input screening conditions, it is possible to filters out required day Will data, user can be made to be freed from numerous and jumbled, substantial amounts of file journalization, save human resources, improve the matter of O&M Amount and efficiency.The application additionally provides a kind of system of daily record data positioning simultaneously, has above-mentioned beneficial effect, no longer superfluous herein State.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of application, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
The flow chart for the method that a kind of daily record data that Fig. 1 is provided by the embodiment of the present application positions;
The flow of S102 a kind of practical manifestation mode in the method that a kind of daily record data that Fig. 2 is provided by Fig. 1 positions Figure;
The flow chart for the system that a kind of daily record data that Fig. 3 is provided by the embodiment of the present application positions;
The flow chart for the system that another daily record data that Fig. 4 is provided by the embodiment of the present application positions.
Embodiment
The core of the application is to provide a kind of method and system of daily record data positioning, and this method only needs user to input screening Condition, it is possible to filter out required daily record data, user can be made to be freed from numerous and jumbled, substantial amounts of file journalization, save Human resources have been saved, have improved the quality and efficiency of O&M.
To make the purpose, technical scheme and advantage of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belong to the scope of the application protection.
It refer to Fig. 1, the flow chart for the method that a kind of daily record data that Fig. 1 is provided by the embodiment of the present application positions.
It specifically includes following steps:
S101:Obtain the journal file of given server;
When needing fast and accurately to find the daily record data related to problem in journal file, it is necessary first to get The journal file of given server;
In general, given server is determined according to server address, user name and password, the quantity of given server can Think one, or it is multiple, the quantity of given server is not construed as limiting;
Determine that given server can have many forms, for example, can first according to server address, user name and Password all lists the server that can obtain journal file, and user chooses further according to demand to be needed to obtain journal file Server is as given server;The numbering that the server for needing to obtain journal file can also be directly inputted directly determines to specify Server, although the approach realized is different, always last will reach the purpose for determining given server, as long as can reach The purpose, wherein concrete implementation mode and approach are simultaneously not specifically limited.
After determining given server, the journal file for obtaining the given server is loaded from remote server.The acquisition side Method can have many forms, and the approach of realization can be different, but finally always to reach and get the given server Journal file purpose, as long as the purpose can be reached, wherein concrete implementation mode and approach and be not specifically limited.
S102:Journal file is traveled through according to keyword and obtains the positional information of keyword, generation includes the positional information Index file;
On the premise of S101, the journal file got is carried out traveling through crucial word processing, if there is bag in journal file Daily record data containing the keyword, then the positional information of the daily record data where the keyword is preserved, and generate and include the position The index file of information, and the index file is exported so that user checks;
Referred to herein as keyword can be the keyword that pre-sets or the keyword of user's input, certainly, In the case where being not previously set keyword, fast and accurately to find the daily record number related to problem in journal file Need to input keyword according to, user, referred to herein as user need the keyword inputted, as the 3rd keyword.
S103:When receiving index selection instruction, the position according to corresponding to index file navigates to index selection instruction, Daily record data of the output positioned at the position.
On the premise of S102, when user wants to check the details of a certain bar index file, index selection is sent Instruction, after system receives index selection instruction, according to corresponding to index selection instruction navigates to index selection instruction Position, and export the daily record data positioned at the position.
It can also print or other way of outputs that the way of output, which can be shown on screen, this Shen Please this is not construed as limiting.
Optionally, when keyword for it is multiple when, for example keyword be Error and Exception, then Error with Daily record data under Exception may be multiple, can carry out packet displaying, as mono- group of Error in this case, Mono- group of Exception, the position of respective daily record data is shown under group respectively.
Based on above-mentioned technical proposal, a kind of method for daily record data positioning that the embodiment of the present application provides, referred to by obtaining Determine the journal file of server, traveling through journal file according to keyword obtains the positional information of keyword, and generation includes the position The index file of information, when receiving index selection instruction, the position according to corresponding to index file navigates to index selection instruction Put, and export the daily record data positioned at the position, only need user to input screening conditions, it is possible to filter out required daily record number According to, user can be made to be freed from numerous and jumbled, substantial amounts of file journalization, save human resources, improve O&M quality and Efficiency.
Fig. 2 is referred to below, and Fig. 2 is actual by one kind of S102 in a kind of method of Fig. 1 daily record data positioning provided The flow chart of manifestation mode, it specifically includes following steps:
S201:Journal file is traveled through according to the first keyword and obtains first position information, generation includes first position information The first index file;
Journal file is traveled through according to the first keyword and obtains first position information, generation includes the first of first position information Index file, referred to herein as the first keyword be the keyword that pre-sets, such as:debug,info,error,exception The operating process for being to reduce user Deng the purpose through commonly used keyword, the first keyword of setting, improve efficiency;
When user fails to find the log information oneself wanted from the first index file, key can be voluntarily inputted Word, the keyword are the second keyword being mentioned below.
S202:When receiving the second keyword, journal file is traveled through according to the second keyword and obtains second place information, Generation includes the second index file of second place information.
On the premise of step S201, when system receives the second keyword, journal file is traveled through according to the second keyword Second place information is obtained, generation includes the second index file of second place information.
Fig. 3, the structure stream for the system that a kind of daily record data that Fig. 3 is provided by the embodiment of the present application positions are referred to below Cheng Tu.
The system can include:
Acquisition module 100, for obtaining the journal file of given server;
Generation module 200 is indexed, the positional information of the keyword is obtained for traveling through journal file according to keyword, generates Index file comprising the positional information;
Receiving module 300, for receiving index selection instruction;
Output module 400 is positioned, for position corresponding to navigating to index selection instruction according to index file, and is exported Daily record data positioned at the position.
Refer to Fig. 4, the flow chart for the system that another daily record data that Fig. 4 is provided by the embodiment of the present application positions, Further, in addition to:
First index generation submodule, the first of the first keyword is obtained for traveling through journal file according to the first keyword Positional information, generation include the first index file of first position information;
Second keyword receiving submodule, for receiving the second keyword;
Second index generation submodule, for when receiving the second keyword, daily record text to be traveled through according to the second keyword Part obtains the second place information of the second keyword, and generation includes the second index file of second place information.
Determination sub-module is received, for the reception server address, username and password, and according to server address, user Name and password determine given server;
Acquisition submodule, for obtaining the journal file of given server.
Each part in system above can be applied in a following actual flow:
By receiving determination sub-module the reception server address, username and password, and according to server address, user name Given server is determined with password;The journal file of given server is obtained by acquisition submodule;
Submodule is generated by the first index the first of the first keyword is obtained according to the first keyword traversal journal file Positional information, generation include the first index file of first position information;
Second keyword is received by the second keyword receiving submodule;When receiving the second keyword, pass through second Index generation submodule travels through journal file according to the second keyword and obtains the second place information of the second keyword, and generation includes Second index file of second place information.
Index selection is received by receiving module to instruct;The index is navigated to according to index file by positioning output module Position corresponding to selection instruction, and export the daily record data positioned at the position.
Each embodiment is described by the way of progressive in specification, and what each embodiment stressed is and other realities Apply the difference of example, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment Speech, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method part illustration .
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, the composition and step of each example are generally described according to function in the above description.These Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specialty Technical staff can realize described function using distinct methods to each specific application, but this realization should not Think to exceed scope of the present application.
The method and system positioned above to daily record data provided herein are described in detail.It is used herein Specific case is set forth to the principle and embodiment of the application, and the explanation of above example is only intended to help and understands The present processes and its core concept.It should be pointed out that for those skilled in the art, this is not being departed from On the premise of applying for principle, some improvement and modification can also be carried out to the application, these are improved and modification also falls into the application In scope of the claims.
It should also be noted that, in this manual, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except other identical element in the process including the key element, method, article or equipment being also present.

Claims (8)

  1. A kind of 1. method of daily record data positioning, it is characterised in that including:
    Obtain the journal file of given server;
    The journal file is traveled through according to keyword and obtains the positional information of the keyword, generation includes the positional information Index file;
    When receiving index selection instruction, the position according to corresponding to the index file navigates to the index selection instruction, And export the daily record data positioned at the position.
  2. 2. according to the method for claim 1, it is characterised in that described that institute is obtained according to the keyword traversal journal file The positional information of keyword is stated, generation includes the index file of the positional information, including:
    The journal file is traveled through according to the first keyword and obtains the first position information of first keyword, generation includes institute State the first index file of first position information;First keyword is the keyword pre-set;
    When receiving the second keyword, the journal file is traveled through according to second keyword and obtains second keyword Second place information, generation includes the second index file of the second place information;Second keyword is that user is defeated The keyword entered.
  3. 3. according to the method for claim 1, it is characterised in that described that institute is obtained according to the keyword traversal journal file The positional information of keyword is stated, generation includes the index file of the positional information, including:
    Receive the 3rd keyword;3rd keyword is the keyword that user needs to input;
    The journal file is traveled through according to the 3rd keyword and obtains the 3rd positional information of the 3rd keyword, generation bag The 3rd index file containing the 3rd positional information.
  4. 4. according to the method described in claim 1-3 any one, it is characterised in that the daily record text for obtaining given server Part, including:
    Server address, username and password according to receiving determine the given server, obtain the given server Journal file.
  5. A kind of 5. system of daily record data positioning, it is characterised in that including:
    Acquisition module, for obtaining the journal file of the given server;
    Generation module is indexed, the position letter of the keyword is obtained for traveling through the journal file according to the keyword Breath, generation include the index file of the positional information;
    Receiving module, for receiving the index selection instruction;
    Output module is positioned, for position corresponding to navigating to index selection instruction according to the index file, and is exported The daily record data positioned at the position.
  6. 6. system according to claim 5, it is characterised in that the index generation module includes:
    First index generation submodule, first keyword is obtained for traveling through the journal file according to the first keyword The first position information, generation include first index file of the first position information;First keyword is The keyword pre-set;
    Second keyword receiving submodule, for receiving second keyword;
    Second index generation submodule, for when receiving second keyword, institute to be traveled through according to second keyword State journal file and obtain the second place information of second keyword, generation is described comprising the second place information Second index file;Second keyword is the keyword of user's input.
  7. 7. system according to claim 5, it is characterised in that the index generation module includes:
    3rd keyword receiving submodule, for receiving the 3rd keyword;3rd keyword needs for the user The keyword of input;
    3rd index generation submodule, the 3rd key is obtained for traveling through the journal file according to the 3rd keyword The 3rd positional information of word, generation include the 3rd index file of the 3rd positional information.
  8. 8. according to the system described in claim 5-7 any one, it is characterised in that the acquisition module includes:
    Determination sub-module is received, for receiving the server address, the user name and the password, and according to the service Device address, the user name and the password determine the given server;
    Acquisition submodule, for obtaining the journal file of the given server.
CN201710666135.5A 2017-08-07 2017-08-07 A kind of method and system of daily record data positioning Pending CN107480233A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710666135.5A CN107480233A (en) 2017-08-07 2017-08-07 A kind of method and system of daily record data positioning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710666135.5A CN107480233A (en) 2017-08-07 2017-08-07 A kind of method and system of daily record data positioning

Publications (1)

Publication Number Publication Date
CN107480233A true CN107480233A (en) 2017-12-15

Family

ID=60598312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710666135.5A Pending CN107480233A (en) 2017-08-07 2017-08-07 A kind of method and system of daily record data positioning

Country Status (1)

Country Link
CN (1) CN107480233A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857714A (en) * 2018-12-24 2019-06-07 浪潮电子信息产业股份有限公司 Journal obtaining method, device, electronic equipment and computer readable storage medium
CN110474807A (en) * 2019-08-16 2019-11-19 北京云中融信网络科技有限公司 A kind of log processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281672A (en) * 2014-09-28 2015-01-14 网神信息技术(北京)股份有限公司 Log data processing method and device
US9244972B1 (en) * 2012-04-20 2016-01-26 Google Inc. Identifying navigational resources for informational queries
CN105279278A (en) * 2015-11-13 2016-01-27 珠海市君天电子科技有限公司 File searching method and device
CN106055621A (en) * 2016-05-26 2016-10-26 浪潮电子信息产业股份有限公司 Log retrieval method and device
CN106886375A (en) * 2017-03-27 2017-06-23 百度在线网络技术(北京)有限公司 The method and apparatus of data storage

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9244972B1 (en) * 2012-04-20 2016-01-26 Google Inc. Identifying navigational resources for informational queries
CN104281672A (en) * 2014-09-28 2015-01-14 网神信息技术(北京)股份有限公司 Log data processing method and device
CN105279278A (en) * 2015-11-13 2016-01-27 珠海市君天电子科技有限公司 File searching method and device
CN106055621A (en) * 2016-05-26 2016-10-26 浪潮电子信息产业股份有限公司 Log retrieval method and device
CN106886375A (en) * 2017-03-27 2017-06-23 百度在线网络技术(北京)有限公司 The method and apparatus of data storage

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857714A (en) * 2018-12-24 2019-06-07 浪潮电子信息产业股份有限公司 Journal obtaining method, device, electronic equipment and computer readable storage medium
CN110474807A (en) * 2019-08-16 2019-11-19 北京云中融信网络科技有限公司 A kind of log processing method and device
CN110474807B (en) * 2019-08-16 2022-06-21 北京云中融信网络科技有限公司 Log processing method and device

Similar Documents

Publication Publication Date Title
CN100489879C (en) Method, system and server for checking page data
CN103744891B (en) A kind of data query method and system
Bachmann et al. Existence and uniqueness of entropy solution of scalar conservation laws with a flux function involving discontinuous coefficients
CN102004641B (en) Topology potential-based software requirement case priority sorting method
CN107256232A (en) A kind of information recommendation method and device
US10002117B1 (en) Translating annotation tags into suggested markup
CN107480233A (en) A kind of method and system of daily record data positioning
CN109902117A (en) Operation system analysis method and device
US20180253735A1 (en) Program identifier response to unstructured input
CN110489087A (en) A kind of method, apparatus, medium and electronic equipment generating fractal structure
CN106600213B (en) Intelligent management system and method for personal resume
CN112506479A (en) Page editing method, device, equipment and storage medium
CN109408502A (en) A kind of data standard processing method, device and its storage medium
CN106406985B (en) Distributed computing framework and distributed computing method
CN103793420A (en) Cross-site data analysis method and system
Wang et al. Asynchronous hierarchical federated learning
Gu* All optimal Hankel-norm approximations and their error bounds in discrete-time
US20150046443A1 (en) Document-based search with facet information
Rajkumar et al. Dynamic web page segmentation based on detecting reappearance and layout of tag patterns for small screen devices
Raça et al. Real-time monitoring and assessing open government data: A case study of the western Balkan countries
Wang et al. Stability of discrete-time networked control systems and its extension for robust H∞ control
Pichugin et al. Optimum structure for a uniform load over multiple spans
CN109918084B (en) Data mapping method of service management system
Cisco About This Guide
Yi et al. An efficient method based on the second kind Chebyshev wavelets for solving variable-order fractional convection diffusion equations

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171215

RJ01 Rejection of invention patent application after publication