Method and system for collecting data in log file
A log file and data collection technology, applied in the field of big data processing, can solve problems such as spooldir does not support breakpoint resume, file content is immutable, and timeliness is poor
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0020] like figure 1 As shown, the data collection method in this log file includes the following steps:
[0021] (1) Regularly check the information of the log files under the log directory, the information includes: log file name, log file length, inode value of the log file;
[0022] Explain why the inode value is taken: Since the name will change when the log is rolled, in order to still find the file, you need to find a unique identifier; when the file in the same physical disk is rename or mv, its inode value remains unchanged; Log rolling is equivalent to doing rename or mv operations; for example: for example, the inode of app.log=5914332, when the log is rolling, the inode of the generated log file app.log.20160422 is still 5914332, and the inode of the new app.log file is New value, for example: 5914335;
[0023] (2) Real-time collection: collect logs, the consumption offset of the newly generated file is 0, and record the inode value and consumption offset of the ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com