Project

General

Profile

Actions

Feature #15986

open

status_output: increase system log file length, currently limited to 1000 entries

Added by Craig Coonrad 3 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Diagnostics
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default

Description

For troubleshooting purposes it would be nice for the system.log captured with status.php to gather more than 1000 lines.
By comparison a tnsr-diag typically captures up to 50 thousand lines or more of syslog, which doesn't seem to be a problem.

Currently all logs captured with the `status_log_add` function in `status_output.inc` are limited to 1000 entries.
Not sure if it would be better to just increase the global value, or break out the system.log and increase that.

Actions #1

Updated by Jim Pingle 3 months ago

It has to use the function, otherwise if a log was recently rotated it would only get the new/nearly empty file. The function looks into the rotated files/archives and pulls out the most recent number of entries requested there.

We could probably increase it a bit (2500 or 5000 lines maybe?), but I wouldn't just dump in all the logs/archives. We have no idea how large people set their log files, the archives could end up far too large. Comparing pfSense and TNSR logging is also a bit of an apples/oranges situation. TNSR doesn't allow users to easily adjust the total size of those logs, where pfSense does.

Actions #2

Updated by Craig Coonrad 3 months ago

Yes, an increase to 2500 or 5000 would be great.
I would say 5000, unless you have any concerns with that. Thanks.

Actions

Also available in: Atom PDF