Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Clear Systems > Log ? (update: redmine + patch submitted)

    Scheduled Pinned Locked Moved Netgate Nexus
    7 Posts 3 Posters 333 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • luckman212L Offline
      luckman212 LAYER 8
      last edited by luckman212

      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

      829679ff-9873-4372-b0d0-a51c0b2eeb27-CleanShot 2026-09-21 at 6.10.52 PM.png

      provelsP 1 Reply Last reply Reply Quote 0
      • provelsP Offline
        provels @luckman212
        last edited by

        @luckman212 Can do it from the other GUI.

        Peder

        pfSense+ 26.07-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG

        luckman212L 1 Reply Last reply Reply Quote 0
        • luckman212L Offline
          luckman212 LAYER 8 @provels
          last edited by

          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
          
          luckman212L 1 Reply Last reply Reply Quote 0
          • luckman212L Offline
            luckman212 LAYER 8 @luckman212
            last edited by luckman212

            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:

            939ffa6b-46b7-4dc5-9c34-ab9cf12f961d-CleanShot 2026-09-21 at 11.21.02 PM.png

            luckman212L 1 Reply Last reply Reply Quote 0
            • luckman212L Offline
              luckman212 LAYER 8 @luckman212
              last edited by

              Shows up in the syslogs too...

              bdad3716-3800-401a-b94e-6c5b3c0211bf-CleanShot 2026-09-22 at 12.26.34 AM.png

              luckman212L 1 Reply Last reply Reply Quote 0
              • luckman212L Offline
                luckman212 LAYER 8 @luckman212
                last edited by luckman212

                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:

                nexus1.png

                nexus2.png

                1 Reply Last reply Reply Quote 1
                • M Offline
                  marcosm Netgate
                  last edited by

                  We'll get that fixed, thanks!

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post
                  Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                  Privacy Policy · Cookie Policy