Log size statistics


Job details

Name: Log size statistics
Platform: Postgres
Category: Capacity
Description: Checks the size of the log file.
Long description: Checks the size of the log file.
Version: 1.2
Default schedule: 19 1,7,13,19 * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘postgres’]/.[hasengine=‘YES’ & is_awsrds = ‘0′ ]

Parameters

Name Default value Description

Job Summary

select pg_ls_dir('log_directory');

Job Description and Dependencies

This job is named “Log size statistics”. It primarily focuses on collecting detailed statistics about the log files’ sizes, including the total size of all logs, the size of each log file, and the count of log files. This data is stored in a designated table and updated periodically through a PostgreSQL function.

Dependencies

Implementation Details

The job operates by:

The result is periodically updated, including details like the total size and number of files for snapshot reporting purposes via the PostgreSQL function `dbw_log_size_statistics`.

Reporting and Visualization

The job offers various reporting and visualization formats which can be accessed in the “dbWatch Control Center”.

Presentations Included:

Table Structure

File Size (MB)
Current Log File File Size

Graph Overviews

This structured reporting assists in immediate visual assessments and long-term log management strategies.