Clear Systems > Log ? (update: redmine + patch submitted)
-
My Nexus logs go back to 2026-08-15 and are filled with mostly garbage probably caused by things that have been fixed by now. I'd love to clear this ... not sure how

-
@luckman212 Can do it from the other GUI.
-
Ah, somehow I thought this log lived in a separate sqlite db or something. Now I see it's just part of the normal /var/log system logs. So, is it safe to just delete these 2?
/var/log/pfnet-controller-pty.log /var/log/pfnet-controller.log -
Ok I realized I could hit the little wrench and clear just the Nexus log which is what I wanted.
While I was in there I noticed this little oddity:

-
Shows up in the syslogs too...

-
I made a little patch for this, redmine 17121
--- a/src/usr/local/www/status_logs_common.inc +++ b/src/usr/local/www/status_logs_common.inc @@ -165,25 +165,24 @@ } } - // Log Table header function system_log_table_panel_title() { global $rawfilter, $filtersubmit, $filterlogentries_submit, $filterlog, $nentries; - global $allowed_logs, $logfile; + global $allowed_logs, $logfile, $log_name; $rtnstr = ''; if ($rawfilter) { if (($filtersubmit) || ($filterlogentries_submit)) { - $rtnstr .= sprintf(gettext('%1$s Matched %2$s Log Entries.'), "<span id='count'>_ _</span>", gettext($allowed_logs[$logfile]["name"])); + $rtnstr .= sprintf(gettext('%1$s Matched %2$s Log Entries.'), "<span id='count'>_ _</span>", $log_name); } else { - $rtnstr .= sprintf(gettext('Last %1$s %2$s Log Entries.'), "<span id='count'>_ _</span>", gettext($allowed_logs[$logfile]["name"])); + $rtnstr .= sprintf(gettext('Last %1$s %2$s Log Entries.'), "<span id='count'>_ _</span>", $log_name); } } else { if (($filtersubmit) || ($filterlogentries_submit)) { - $rtnstr .= sprintf(gettext('%1$d Matched %2$s Log Entries.'), count($filterlog), gettext($allowed_logs[$logfile]["name"])); + $rtnstr .= sprintf(gettext('%1$d Matched %2$s Log Entries.'), count($filterlog), $log_name); } else { - $rtnstr .= sprintf(gettext('Last %1$d %2$s Log Entries.'), count($filterlog), gettext($allowed_logs[$logfile]["name"])); + $rtnstr .= sprintf(gettext('Last %1$d %2$s Log Entries.'), count($filterlog), $log_name); } } @@ -645,7 +644,7 @@ return; } - global $logfile, $specific_log, $pconfig, $save_settings, $input_errors, $extra_save_msg, $retval, $changes_applied, $allowed_logs; + global $logfile, $log_name, $specific_log, $pconfig, $save_settings, $input_errors, $extra_save_msg, $retval, $changes_applied, $allowed_logs; $changes_applied = false; $filterlog_changed = false; @@ -823,7 +822,7 @@ $changes_applied = true; // If any of the logging settings were changed then backup and sync (standard write_config). Otherwise only write config (don't backup, don't sync). - $log_friendly_name = empty($allowed_logs[$logfile]["name"]) ? $logfile : $allowed_logs[$logfile]["name"]; + $log_friendly_name = empty($log_name) ? $logfile : $log_name; if ($logging_changed) { write_config($desc = gettext("Log Display Settings Saved: ") . gettext($log_friendly_name), $backup = true, $write_config_only = false); system_syslogd_start(); @@ -865,7 +864,7 @@ return; } - global $g, $input_errors, $allowed_logs, $logfile, $pconfig; + global $g, $input_errors, $allowed_logs, $logfile, $log_name, $pconfig; global $system_logs_manage_log_form_hidden; if ($input_errors) { @@ -889,7 +888,7 @@ $form = new Form(false); $form->setAttribute('id', 'manage-log-form')->addClass('collapse ' . $panel_state); - $section = new Form_Section(sprintf(gettext('Manage %1$s Log'), gettext($allowed_logs[$logfile]["name"])), 'manage-log-panel', COLLAPSIBLE|$panel_body_state); + $section = new Form_Section(sprintf(gettext('Manage %1$s Log'), $log_name), 'manage-log-panel', COLLAPSIBLE|$panel_body_state); $section->addInput(new Form_StaticText( '', --- a/src/usr/local/www/status_logs.php +++ b/src/usr/local/www/status_logs.php @@ -89,6 +89,10 @@ } } +$log_name = gettext($allowed_logs[$logfile]["name"]); +if ($logfile == 'pfnet-controller') { + $log_name = html_entity_decode(strip_tags($log_name), ENT_QUOTES | ENT_HTML5); +} // Log Filter Submit - System log_filter_form_system_submit(); @@ -107,13 +111,13 @@ } if (in_array($logfile, array('system', 'pfnet-controller', 'gateways', 'routing', 'resolver', 'wireless', 'nginx', 'dmesg.boot', 'watchdogd'))) { - $pgtitle = array(gettext("Status"), gettext("System Logs"), gettext("System"), $allowed_logs[$logfile]["name"]); + $pgtitle = array(gettext("Status"), gettext("System Logs"), gettext("System"), $log_name); $pglinks = array("", "status_logs.php", "status_logs.php", "@self"); } elseif (in_array($logfile, array('auth', 'portalauth', 'utx', 'userlog'))) { - $pgtitle = array(gettext("Status"), gettext("System Logs"), gettext("Authentication"), $allowed_logs[$logfile]["name"]); + $pgtitle = array(gettext("Status"), gettext("System Logs"), gettext("Authentication"), $log_name); $pglinks = array("", "status_logs.php", "status_logs.php", "@self"); } else { - $pgtitle = array(gettext("Status"), gettext("System Logs"), $allowed_logs[$logfile]["name"]); + $pgtitle = array(gettext("Status"), gettext("System Logs"), $log_name); $pglinks = array("", "status_logs.php", "@self"); }After:


-
We'll get that fixed, thanks!
Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
Privacy Policy · Cookie Policy
Privacy Policy · Cookie Policy