CN109558385B - Log file management device based on Linux system - Google Patents
Log file management device based on Linux system Download PDFInfo
- Publication number
- CN109558385B CN109558385B CN201811369104.4A CN201811369104A CN109558385B CN 109558385 B CN109558385 B CN 109558385B CN 201811369104 A CN201811369104 A CN 201811369104A CN 109558385 B CN109558385 B CN 109558385B
- Authority
- CN
- China
- Prior art keywords
- log file
- log
- monitoring
- calling
- 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.)
- Active
Links
- 238000012544 monitoring process Methods 0.000 claims abstract description 82
- 238000000034 method Methods 0.000 claims abstract description 9
- 238000012806 monitoring device Methods 0.000 claims description 3
- 238000007726 management method Methods 0.000 description 9
- 238000012360 testing method Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a log file management device based on a Linux system, which comprises: a log calling module: the log file is used for calling and displaying the called log file; log scanning and searching module: the log file display device is used for scanning a set area, searching and displaying the log file in the set area; a log monitoring module: the log file updating method is used for monitoring the updating state of the log file in the set area. The invention can conveniently call log files, conveniently check batch files, monitor the update condition of the log files in real time, has simple and convenient operation and effectively improves the working efficiency.
Description
Technical Field
The invention relates to the field of log file management, in particular to a log file management device based on a Linux system.
Background
With the development of technology, computers, servers, industrial computers and embedded hardware platforms should be increased greatly, and operating systems are the basis for the operation of all hardware platforms. The operation system running log, the application program running log and the user-defined log are key data for troubleshooting and system maintenance, and how to conveniently check the log information in real time has important significance for system debugging and user application program debugging.
At present, a relatively wide log viewing mode is to directly open corresponding log files, but the log files can only be viewed in a mode of being taken out for devices which are inconvenient to view without interfaces and the like, so that the log viewing mode is complicated and inconvenient. And if a plurality of logs need to be checked, multiple times of opening operation is needed, time and labor are wasted, and the working efficiency is influenced.
Disclosure of Invention
In order to solve the problems, the invention provides a log file management device based on a Linux system, which is convenient for log retrieval, viewing and monitoring.
The technical scheme of the invention is as follows: a log file management device based on a Linux system comprises:
a log calling module: the log file is used for calling and displaying the called log file;
log scanning and searching module: the log file display device is used for scanning a set area, searching and displaying the log file in the set area;
a log monitoring module: the log file updating method is used for monitoring the updating state of the log file in the set area.
Further, the log retrieval module includes:
a path calling unit: the log file name input device is used for inputting a calling path and a log file name;
a calling execution unit: the log file calling system is used for executing a calling process according to the calling path and the name of the log file and calling the log file;
a first log display unit: and the log file information is used for displaying the called log file information.
Further, the air conditioner is provided with a fan,
the log file information displayed by the first log display unit includes: calling paths and names of log files and contents of the log files; and the calling path and the name of the displayed log file are hyperlinked to the position of the log file.
Further, the log scan lookup module comprises:
scanning area setting means: used for setting a required scanning area;
a scan execution unit: the device is used for scanning the set scanning area and searching the log file in the area;
a second log display unit: for displaying the log file information found in the scanning area.
Further, the air conditioner is provided with a fan,
the log file information displayed by the second log display unit comprises a log file directory; the log file directory includes: the log file checking method comprises the following steps of (1) checking a serial number, a path and a file name of each log file and a checking link of each log file; the path and the file name of each log file are hyperlinked to the position of the log file; clicking the view link displays the content of the corresponding log file.
Further, the air conditioner is provided with a fan,
the scan region setting unit sets the scan region to include: hard disk, file folder.
Further, the log monitoring module includes:
a monitoring area setting unit: the monitoring system is used for setting a required monitoring area;
a monitoring time setting unit: the monitoring system is used for setting a monitoring time period and monitoring frequency;
a monitoring execution unit: the monitoring device is used for monitoring the update state of the log files in the monitoring area according to the set monitoring time;
a monitoring result display unit: for displaying the monitored results.
Further, the monitoring execution unit includes:
a save subunit: used for saving the last monitoring content; the monitoring content comprises the number of log files and the updating time of each log file;
a comparison subunit: for comparing the monitored content of the current monitoring and the monitored content of the last monitoring.
Further, the air conditioner is provided with a fan,
the monitoring area set by the monitoring area setting unit includes: hard disk, file folder.
According to the log file management device based on the Linux system, logs are called through the log calling module, and multiple file directories are prevented from being opened each time; the log scanning and searching module can scan all logs in a set area, the set area can be a hard disk or a folder, and all logs in the set area are called out at the same time, so that corresponding log files can be conveniently checked in batches; the log monitoring module can monitor the log updating condition in the set area in real time, and once the log is updated, the log monitoring module can timely inform workers to timely check and master the system or program running condition. The invention can conveniently call log files, conveniently check batch files, monitor the update condition of the log files in real time, has simple and convenient operation and effectively improves the working efficiency.
Drawings
FIG. 1 is a block diagram illustrating the structure of an embodiment of the present invention.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings by way of specific examples, which are illustrative of the present invention and are not limited to the following embodiments.
As shown in fig. 1, the present embodiment provides a log file management device based on a Linux system, and the device implements management of log files through a log retrieving module 1, a log scanning and searching module 2, and a log monitoring module 3.
The log calling module 1: the log file is used for calling and displaying the called log file;
the log scanning and searching module 2: the log file display device is used for scanning a set area, searching and displaying the log file in the set area;
the log monitoring module 3: the log file updating method is used for monitoring the updating state of the log file in the set area.
The log calling module 1 calls out and displays the required log file through the calling path and the log file name, and specifically comprises the following units:
a path calling unit: the log file name input device is used for inputting a calling path and a log file name;
a calling execution unit: the log file calling system is used for executing a calling process according to the calling path and the name of the log file and calling the log file;
a first log display unit: and the log file information is used for displaying the called log file information.
For example, the calling path and the log file name inputted by the calling path unit are/home/test/log/messages, the calling execution unit calls the messages log file under the path by the path and the file name, and the first log display unit displays the log file information.
The log file information displayed by the first log display unit includes: calling paths and names of log files and contents of the log files; and the calling path and the name of the displayed log file are hyperlinked to the position of the log file. Taking the above example as an example, the unit display content includes: the log contents of the/home/test/log/messages log file, wherein the/home/test/log/messages may also be hyperlinked to the location of the messages log file, i.e. the/home/test/log folder.
The log scanning and searching module 2 searches and displays all log files in the area by scanning the set area, so as to realize batch calling and display of the log files, and the module specifically comprises:
scanning area setting means: used for setting a required scanning area;
a scan execution unit: the device is used for scanning the set scanning area and searching the log file in the area;
a second log display unit: for displaying the log file information found in the scanning area.
It should be noted that the scanning area set by the scanning area setting unit is a hard disk or a folder, and may be configured to scan all log files in a certain hard disk or all log files in a certain folder.
The log file information displayed by the second log display unit comprises a log file directory; the log file directory includes: the log file checking method comprises the following steps of (1) checking a serial number, a path and a file name of each log file and a checking link of each log file; the path and the file name of each log file are hyperlinked to the position of the log file; clicking the view link displays the content of the corresponding log file. The content displayed by the second log display unit comprises three columns, the first column is a serial number, the second column is a path and a file name of the log file, and the third column is a viewing link corresponding to the log file. The second column is hyperlinked to the position of the corresponding log file, and the content of the corresponding log file can be displayed by clicking the viewing link of the third column.
The log monitoring module 3 monitors the update state of the log file in the set area, and if the log file in the area is updated, the log monitoring module notifies the staff in time. The module specifically comprises:
a monitoring area setting unit: the monitoring system is used for setting a required monitoring area;
a monitoring time setting unit: the monitoring system is used for setting a monitoring time period and monitoring frequency;
a monitoring execution unit: the monitoring device is used for monitoring the update state of the log files in the monitoring area according to the set monitoring time;
a monitoring result display unit: for displaying the monitored results.
It should be noted that the monitoring area set by the monitoring area setting unit may be a hard disk or a folder, that is, all logs in a certain hard disk may be monitored, and all logs in a certain folder may also be monitored.
The monitoring time setting unit sets contents including a monitoring time period and a monitoring frequency, in which time period the monitoring is performed, and how often the monitoring is performed within the monitoring time period. For example, in 13: 00-17:00, monitored every hour.
The monitoring execution unit monitors according to the monitoring condition, judges whether the log is updated or not, and judges whether the number of the log files is changed or not and whether the updating time of each log file is changed or not. The unit specifically includes:
a save subunit: used for saving the last monitoring content; the monitoring content comprises the number of log files and the updating time of each log file;
a comparison subunit: for comparing the monitored content of the current monitoring and the monitored content of the last monitoring.
The monitoring result displayed by the monitoring result display unit of the embodiment may include whether there is an update reminder and which log file has an update.
The log file management device provided by the embodiment is convenient for calling log files, batch files are convenient to check, the update condition of the log files can be monitored in real time, the operation is simple and convenient, and the working efficiency is effectively improved.
The above disclosure is only for the preferred embodiments of the present invention, but the present invention is not limited thereto, and any non-inventive changes that can be made by those skilled in the art and several modifications and amendments made without departing from the principle of the present invention shall fall within the protection scope of the present invention.
Claims (7)
1. A log file management device based on a Linux system is characterized by comprising:
a log calling module: the log file is used for calling and displaying the called log file;
log scanning and searching module: the log file display device is used for scanning a set area, searching and displaying the log file in the set area;
a log monitoring module: the log file updating system is used for monitoring the updating state of the log file in the set area;
the log scanning and searching module comprises:
scanning area setting means: used for setting a required scanning area;
a scan execution unit: the device is used for scanning the set scanning area and searching the log file in the area;
a second log display unit: the log file information is used for displaying the searched log file information in the scanning area;
the log file information displayed by the second log display unit comprises a log file directory; the log file directory includes: the log file checking method comprises the following steps of (1) checking a serial number, a path and a file name of each log file and a checking link of each log file; the path and the file name of each log file are hyperlinked to the position of the log file; clicking the view link displays the content of the corresponding log file.
2. The Linux system-based log file management device of claim 1, wherein the log retrieval module comprises:
a path calling unit: the log file name input device is used for inputting a calling path and a log file name;
a calling execution unit: the log file calling system is used for executing a calling process according to the calling path and the name of the log file and calling the log file;
a first log display unit: and the log file information is used for displaying the called log file information.
3. The Linux system-based log file management device of claim 2,
the log file information displayed by the first log display unit includes: calling paths and names of log files and contents of the log files; and the calling path and the name of the displayed log file are hyperlinked to the position of the log file.
4. The Linux system-based log file management device of claim 1,
the scan region setting unit sets the scan region to include: hard disk, file folder.
5. The Linux system-based log file management device of claim 1, wherein the log monitoring module comprises:
a monitoring area setting unit: the monitoring system is used for setting a required monitoring area;
a monitoring time setting unit: the monitoring system is used for setting a monitoring time period and monitoring frequency;
a monitoring execution unit: the monitoring device is used for monitoring the update state of the log files in the monitoring area according to the set monitoring time;
a monitoring result display unit: for displaying the monitored results.
6. The Linux system-based log file management device of claim 5, wherein the monitoring execution unit comprises:
a save subunit: used for saving the last monitoring content; the monitoring content comprises the number of log files and the updating time of each log file;
a comparison subunit: for comparing the monitored content of the current monitoring and the monitored content of the last monitoring.
7. A log file management apparatus based on Linux system according to claim 5 or 6,
the monitoring area set by the monitoring area setting unit includes: hard disk, file folder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811369104.4A CN109558385B (en) | 2018-11-16 | 2018-11-16 | Log file management device based on Linux system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811369104.4A CN109558385B (en) | 2018-11-16 | 2018-11-16 | Log file management device based on Linux system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109558385A CN109558385A (en) | 2019-04-02 |
CN109558385B true CN109558385B (en) | 2021-10-29 |
Family
ID=65866555
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811369104.4A Active CN109558385B (en) | 2018-11-16 | 2018-11-16 | Log file management device based on Linux system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109558385B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102880935A (en) * | 2012-09-10 | 2013-01-16 | 曙光信息产业(北京)有限公司 | Method and system for managing Linux cluster software |
CN104464381A (en) * | 2013-09-24 | 2015-03-25 | 霍尼韦尔国际公司 | A method to facilitate retrieving an all ready reviewed datalink message for review again |
CN105117411A (en) * | 2015-07-29 | 2015-12-02 | 上海斐讯数据通信技术有限公司 | Server log file management system and method |
CN106412061A (en) * | 2016-09-28 | 2017-02-15 | 上海爱数信息技术股份有限公司 | Linux-based log folder remote transmission system |
CN106855888A (en) * | 2016-12-29 | 2017-06-16 | 北京车智赢科技有限公司 | Daily record monitoring system based on Logstash distributed systems |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8996563B2 (en) * | 2010-04-06 | 2015-03-31 | Tokutek, Inc. | High-performance streaming dictionary |
US9535981B2 (en) * | 2013-07-15 | 2017-01-03 | Netapp, Inc. | Systems and methods for filtering low utility value messages from system logs |
RU2645265C2 (en) * | 2013-12-05 | 2018-02-19 | Закрытое акционерное общество "Лаборатория Касперского" | System and method of blocking elements of application interface |
-
2018
- 2018-11-16 CN CN201811369104.4A patent/CN109558385B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102880935A (en) * | 2012-09-10 | 2013-01-16 | 曙光信息产业(北京)有限公司 | Method and system for managing Linux cluster software |
CN104464381A (en) * | 2013-09-24 | 2015-03-25 | 霍尼韦尔国际公司 | A method to facilitate retrieving an all ready reviewed datalink message for review again |
CN105117411A (en) * | 2015-07-29 | 2015-12-02 | 上海斐讯数据通信技术有限公司 | Server log file management system and method |
CN106412061A (en) * | 2016-09-28 | 2017-02-15 | 上海爱数信息技术股份有限公司 | Linux-based log folder remote transmission system |
CN106855888A (en) * | 2016-12-29 | 2017-06-16 | 北京车智赢科技有限公司 | Daily record monitoring system based on Logstash distributed systems |
Also Published As
Publication number | Publication date |
---|---|
CN109558385A (en) | 2019-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6901582B1 (en) | Monitoring system for monitoring the performance of an application | |
US7559053B2 (en) | Program and system performance data correlation | |
US11044144B2 (en) | Self-monitoring | |
CN111352921A (en) | ELK-based slow query monitoring method and device, computer equipment and storage medium | |
EP1895391A1 (en) | Method and system for displaying a multitude of objects on a display | |
CN113010484A (en) | Log file management method and device | |
CN108809729A (en) | The fault handling method and device that CTDB is serviced in a kind of distributed system | |
CN109800124B (en) | CPU utilization monitoring method and device, electronic equipment and storage medium | |
CN109558385B (en) | Log file management device based on Linux system | |
US20130307854A1 (en) | Method and System for Visualising a System Model | |
CN112256529A (en) | Web crawler monitoring method and device, computer equipment and storage medium | |
US20130238103A1 (en) | Machine management system | |
JPH11212826A (en) | Output system and device for fault information | |
CN114077510B (en) | Method and device for positioning and displaying fault root cause | |
KR100443914B1 (en) | system and method for providing fault information | |
JP2001060178A (en) | Selecting method for remote control object | |
CN117130810A (en) | Error information collection method and device, electronic equipment and readable storage medium | |
JPH11327610A (en) | Monitoring method and device for programmable controller system | |
CN104331511A (en) | Method and device for updating static pages | |
CN115827394A (en) | Monitoring alarm method based on Zabbix | |
US11609958B1 (en) | System and method for managing log records of elements of a distributed computing environment | |
CN117539531A (en) | User-defined configuration operation and maintenance monitoring method and device | |
CN115268360A (en) | Tobacco production line fault point acquisition method and system | |
CN112560023A (en) | Interactive data acquisition method, robot, system and computer equipment | |
CN117873647A (en) | Cluster management method and device, computer equipment 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |