Hello guys,
I have a question regarding the measurement of incoming logs, let's say some kind of "rate" of logs per second or minute. Related to that I have found two SKs:
- sk88681 [How to calculate/count the total amount of FireWall Logs per second that arrive to Securi...
- sk120341 [How to monitor the Log Receive Rate on Management Server / Log Server R80 and above]
The intersting thing is that both SKs are valid for R80.20 and also apply for MDM environmnets, such as the current case where I want to use this. However; here is the example output of one of my domains:
sk120341 output:
[Expert@MDMSERVER:0]# cpstat mg -f log_server
Log Receive Rate: 50
Log Receive Rate Peak: 4722
Log Receive Rate Last 10 Minutes: 57
Log Receive Rate Last Hour: 59
Log Server Connected Gateways
---------------------------------------------------------------------------------------------
|Name |State |Last Login Time |Log Receive Rate|
---------------------------------------------------------------------------------------------
|Local Clients |Connected|N/A | 0|
|VSX-GW-A|Connected|Wed Aug 14 10:57:19 2019 | 0|
|VSX-GW-B|Connected|Fri Aug 9 11:28:53 2019 | 50|
---------------------------------------------------------------------------------------------
sk88681 output:
[Expert@MDMSERVER:0]# ls -l fw.logptr ; sleep 180 ; ls -l fw.logptr
-rw-r--r-- 1 admin root 18895720 Sep 19 12:18 fw.logptr
-rw-r--r-- 1 admin root 18972856 Sep 19 12:21 fw.logptr
(18972856 - 18895720) / (4* 180) = about107
I have run these commands in the related management domain (switched via mdsenv) - however the results are kinda different. The output of sk88681 seems to be more correct as lots of connections pass through the gateway. But how does the first output lists only about 50 logs per second and the second one more than 100? I guess the "log receive rate" of the cpstat mg command also references to logs per second. Where is the difference between both? And why does the cpstat command also tell that "Log Receive Rate Last 10 Minutes" is just 57. That's definitely not the case or do I mix something up in this case?
Also a different question regarding log file movement. Is it save to move e.g. the following files from /CPsuite-R80.20/fw1/log to a different system in order to save them as a backup? Or do I have some negative impact on the management server if I'm going to remove these files?
2018-11-10_000000.adtlog
2018-11-10_000000.adtlogaccount_ptr
2018-11-10_000000.adtloginitial_ptr
2018-11-10_000000.adtlogptr
2018-11-10_000000.log
I have the requirement to move all log entries which are older than 3 months to a different system - or even delete them. As far as I know this option is not possible via the SmartConsole itself (only via a script that checks the timestamp of files in the log dir and removes them if they are older than three months). Or are there other ways in order to achieve the described goal? Currently thinking about a cronjob that runs each night, which looks for log files older than x days and removes them. But still - I am not sure if this method is "clean".
Thanks and best regards,
Maik