# US 2022/0027254 A1 · Storage-based log file management

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0027254 A1
- Document ID: US20220027254A1
- Status: Published application
- Kind: A1
- Application number: 17/492,785
- Filed: 2021-10-04
- Published: 2022-01-27
- Earliest claimed: 2019-05-06
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Michael Kolesnik; Mordecay Asayag
- Web page: https://patentgrep.com/patent/US20220027254A1

## CPC

- G06F 11/3476: {Data logging (G06F11/14, G06F11/2205 take precedence)}
- G06F 11/0766: {Error or fault reporting or storing}
- G06F 11/3034: {where the computing system component is a storage system, e.g. DASD based or network based (digital input from or digital output to record carriers G06F3/06; digital recording or reproducing G11B20/18; for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS], H04L67/1097)}
- G06F 12/023: {Free address space management}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A process in a system can monitor available free storage space on a storage device, and, based on preset log file parameters, can act upon log files being stored on or written to the storage device to keep the storage device from running out of storage space due to excessive logging. The process monitors the device free space as reported by the file system to determine space utilization. A threshold of free space can be specified as a parameter. A log file action can also be specified as a parameter and is an action designed to reduce the space being used by a log file or log files. Once the process recognizes that the free space is under the threshold it will perform the configured action.

## Claims

### Claim 1

A system comprising:
a processing device; and
at least one storage device including instructions for an application or service that are executable by the processing device for causing the processing device to perform operations comprising:
monitoring free space on the at least one storage device while at least one log file is being written to the at least one storage device by the application or service, the free space configured for use by multiple applications or services;
comparing the free space on the at least one storage device to a predetermined threshold indicative of storage space to be maintained as free space on the at least one storage device; and
executing at least one log file action in response to the free space as reported by an operating system for the at least one storage device falling below the predetermined threshold.

### Claim 2 (depends on 1)

The system of claim 1, wherein the at least one storage device comprises a first storage device for storing the instructions and a second storage device for storing the at least one log file.

### Claim 3 (depends on 1)

The system of claim 1, wherein the operations further comprise receiving or accessing log file storage parameters, the log file storage parameters including the predetermined threshold and the at least one log file action.

### Claim 4 (depends on 3)

The system of claim 3, further comprising a user input device configured to receive the log file storage parameters.

### Claim 5 (depends on 3)

The system of claim 3, wherein the log file storage parameters further include at least one of a log file identifier, a log file directory, or a log file priority.

### Claim 6 (depends on 3)

The system of claim 3, wherein the operation of executing the at least one log file action further comprises an operation executing at least one of log file deletion, log file rotation, or log file write prevention.

### Claim 7 (depends on 1)

The system of claim 1, wherein the operation of executing at least one log file action comprises the operations of:
rotating the at least one log file to produce a closed log file; and
compressing the closed log file.

### Claim 8

A method comprising:
monitoring, by a processing device executing an application or service, free space on a storage device while at least one log file is being written to the storage device by the application or service, the free space being used by multiple applications or services;
comparing, by the processing device, the free space for the storage device to a predetermined threshold indicative of storage space to be maintained as free space on the storage device; and
executing, by the processing device, at least one log file action in response to the free space as reported by an operating system for the storage device falling below the predetermined threshold.

### Claim 9 (depends on 8)

The method of claim 8, further comprising receiving or accessing log file storage parameters, the log file storage parameters including the predetermined threshold and the at least one log file action.

### Claim 10 (depends on 9)

The method of claim 9, further wherein the log file storage parameters are received through a user input device.

### Claim 11 (depends on 9)

The method of claim 9, wherein the log file storage parameters further include at least one of a log file identifier, a log file directory, or a log file priority.

### Claim 12 (depends on 9)

The method of claim 9, wherein the at least one log file action includes at least one of log file deletion, log file rotation, or log file write prevention.

### Claim 13 (depends on 8)

The method of claim 8, wherein the at least one log file action comprises:
rotating the at least one log file to produce a closed log file; and
compressing the closed log file.

### Claim 14

A non-transitory computer-readable medium comprising program code for an application or service that is executable by a processing device for causing the processing device to:
monitor free space on a storage device while at least one log file is being written to the storage device by the application or service, the free space configured for use by multiple applications or services;
compare the free space for the storage device to a predetermined threshold indicative of storage space to be maintained as free space on the storage device; and
execute at least one log file action in response to the free space as reported by an operating system for the storage device falling below the predetermined threshold.

### Claim 15 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the storage device comprises the non-transitory computer-readable medium.

### Claim 16 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the program code is executable by the processing device for causing the processing device to receive or access log file storage parameters, the log file storage parameters including the predetermined threshold and the at least one log file action.

### Claim 17 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein the program code is executable by the processing device for causing the processing device to receive the log file storage parameters through a user input device.

### Claim 18 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein the log file storage parameters further include at least one of a log file identifier, a log file directory, or a log file priority.

### Claim 19 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein the program code that is executable by the processing device for causing the processing device to execute at least one log file action further causes the processing device to execute at least one of log file deletion, log file rotation, or log file write prevention.

### Claim 20 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the program code is executable by the processing device for causing the processing device to:
rotate the at least one log file to produce a closed log file; and
compress the closed log file.
