Private Log Files
Private Log Files
Is there a way to have the private log files automatically create a new log every month instead of one continuous log?
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Sure. You may use "Special file processing" options, located on "Options" -> "Log Processing" tab. Quote from the manual: http://www.ks-soft.net/hostmon.eng/mfra ... processing
================================
You may choose one of 2 options to specify when HostMonitor should execute external command for processing private log file(s). They could be same as for common log (above) or different:
* If private log(s) was created <N> days/weeks/months/years ago
with this option selected HostMonitor will apply specified external command for each log file that was created specified number of days/weeks/months or years ago. HostMonitor checks age of log files once a day (normally at midnight).
* If private log(s) is bigger than <N> KB
with this option selected HostMonitor will apply specified external command for current log file only when its size reaches specified limit. ("current" means this option does not affect old log files into which no records are added anymore).
================================
Regards,
Max
================================
You may choose one of 2 options to specify when HostMonitor should execute external command for processing private log file(s). They could be same as for common log (above) or different:
* If private log(s) was created <N> days/weeks/months/years ago
with this option selected HostMonitor will apply specified external command for each log file that was created specified number of days/weeks/months or years ago. HostMonitor checks age of log files once a day (normally at midnight).
* If private log(s) is bigger than <N> KB
with this option selected HostMonitor will apply specified external command for current log file only when its size reaches specified limit. ("current" means this option does not affect old log files into which no records are added anymore).
================================
Regards,
Max
You may use date macro variables for private log as well (just like for common log)
http://www.ks-soft.net/hostmon.eng/mfra ... htm#macros
Regards
Alex
http://www.ks-soft.net/hostmon.eng/mfra ... htm#macros
Regards
Alex