cacti icon indicating copy to clipboard operation
cacti copied to clipboard

Enhance logging capabilities to allow for compressed formats

Open yingbaiibm opened this issue 6 years ago • 3 comments

  1. The current cacti log is generated every day. In order to avoid cacti log taking a lot of space, better to support cacti log auto compress by user setting.

  2. Go to system utilities - Log Administration page, check File drop down list, it can not only show cacti.log, but also show files named begin with cacti.log.xxx that I created, thus the gz file can not display -- Failed.

Screen Shot 2019-05-29 at 11 26 13 AM

Cacti 1.2.3 FF rhel7 x64

yingbaiibm avatar May 29 '19 03:05 yingbaiibm

Under cacti/clog.php, File dropdown list only valid log file name that is endwith '.log'

So, I prefer replace 'cacti/utilities.php?action=view_logfile' implementation with 'cacti/clog.php'

ddb4github avatar Jun 09 '19 10:06 ddb4github

I agree that the bug fix should be to make the utilities have the same limitations as the clog. The enhancement would be the handling of compressed formats.

netniV avatar Jun 09 '19 12:06 netniV

We should block the *.gz extension for now.

cigamit avatar Jun 10 '19 00:06 cigamit

Once we implement the new logging interface we're going to expect that these logs will be forwarded to a central login server so I don't think there's really reason to do this one.

Making the executive decision to close.

TheWitness avatar Dec 25 '24 02:12 TheWitness