Log line limit
Moderators: Developers, Moderators
Log line limit
Hi,
I've noticed that in the log viewer it's possible to select more than 1000 lines to be displayed, but if you select for example 5000 no more than 1000 lines are displayed and at the end of the log it's displayed "LINE LIMIT OF 1000 LINES REACHED"...
It's happening only to me?
I've noticed that in the log viewer it's possible to select more than 1000 lines to be displayed, but if you select for example 5000 no more than 1000 lines are displayed and at the end of the log it's displayed "LINE LIMIT OF 1000 LINES REACHED"...
It's happening only to me?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
It's not a bug, it's a feature!
It's actually intentionally that way.
It's actually intentionally that way.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Is it possible to disable this limit of 1000 lines? Cause it's a problem for me, cause my log-file is a bit huge
Perhaps somewhere in the php code.
//EDIT
I got it:
open the file <cacti path>/site/utilities.php
search for "LINE LIMIT OF 1000 LINES REACHED"
You will find this:
Then you only have to change the first line:
into:
And to make it perfekt, the line:
into:
Then save the file
Perhaps somewhere in the php code.
//EDIT
I got it:
open the file <cacti path>/site/utilities.php
search for "LINE LIMIT OF 1000 LINES REACHED"
You will find this:
Code: Select all
if ($j > 1000) {
?>
<tr bgcolor='#EACC00'>
<td>
<?php print ">>>> LINE LIMIT OF 1000 LINES REACHED!! <<<<";?>
</td>
</tr>
<?php
break;
}
Code: Select all
if ($j > 1000) {
Code: Select all
if ($j > 10000) {
Code: Select all
<?php print ">>>> LINE LIMIT OF 1000 LINES REACHED!! <<<<";?>
Code: Select all
<?php print ">>>> LINE LIMIT OF 10000 LINES REACHED!! <<<<";?>
Re: Log line limit
Problem still exists as of Cacti 0.8.8a. Attached is a patch which does what reisercl suggests. It works.
- Attachments
-
- Cacti-0.8.8.a_log_limit_10000.patch
- Patch to change log line limit to 10000.
- (429 Bytes) Downloaded 92 times
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Log line limit
Thx for the contribution.
But I'm sorry to say that it is by far better to create an entry at http://bugs.cacti.net. Those won't be skipped accidentally
R.
But I'm sorry to say that it is by far better to create an entry at http://bugs.cacti.net. Those won't be skipped accidentally
R.
Who is online
Users browsing this forum: No registered users and 2 guests