Revision 0541e302
Added by Scott Ullrich almost 19 years ago
usr/local/www/diag_logs.php | ||
---|---|---|
45 | 45 |
system_syslogd_start(); |
46 | 46 |
} |
47 | 47 |
|
48 |
if ($_GET['filtertext']) |
|
49 |
$filtertext = $_GET['filtertext']; |
|
50 |
|
|
51 |
if ($_POST['filtertext']) |
|
52 |
$filtertext = $_POST['filtertext']; |
|
53 |
|
|
48 | 54 |
$pgtitle = "Diagnostics: System logs: System"; |
49 | 55 |
include("head.inc"); |
50 | 56 |
|
... | ... | |
79 | 85 |
<tr> |
80 | 86 |
<td colspan="2" class="listtopic">Last <?=$nentries;?> system log entries</td> |
81 | 87 |
</tr> |
82 |
<?php dump_clog($system_logfile, $nentries, true, array(), array("racoon", "ntpd", "pppoe")); ?> |
|
88 |
<?php |
|
89 |
if($filtertext) |
|
90 |
dump_clog($system_logfile, $nentries, true, array("$filtertext"), array("racoon", "ntpd", "pppoe")); |
|
91 |
else |
|
92 |
dump_clog($system_logfile, $nentries, true, array(), array("racoon", "ntpd", "pppoe")); |
|
93 |
?> |
|
83 | 94 |
<tr> |
84 |
<td> |
|
85 |
<br> |
|
86 |
<form action="diag_logs.php" method="post"> |
|
87 |
<input name="clear" type="submit" class="formbtn" value="Clear log"> |
|
95 |
<td align="left" valign="top"> |
|
96 |
<form id="filterform" name="filterform" action="diag_logs.php" method="post" style="margin-top: 14px;"> |
|
97 |
<input id="submit" name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log");?>" /> |
|
98 |
</form> |
|
99 |
</td> |
|
100 |
<td align="right" valign="top" > |
|
101 |
<form id="clearform" name="clearform" action="diag_logs.php" method="post" style="margin-top: 14px;"> |
|
102 |
<input id="filtertext" name="filtertext" value="<?=gettext($filtertext);?>" /> |
|
103 |
<input id="filtersubmit" name="filtersubmit" type="submit" class="formbtn" value="<?=gettext("Filter");?>" /> |
|
88 | 104 |
</form> |
89 | 105 |
</td> |
90 | 106 |
</tr> |
Also available in: Unified diff
Add filtering capabilities to system log so that operators can identify information quicker.