Logging Configuration: Keep last xx hours in logfile

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
JuergenF
Posts: 331
Joined: Sun Jan 26, 2003 6:00 pm
Location: Germany, North Rhine-Westphalia

Logging Configuration: Keep last xx hours in logfile

Post by JuergenF »

I'd like to have a log file that contains all entries of the last 72 Hours. Automatically trimmed. Is that possible ?

Alternativ a "maximum log size" with "rollover-option" would help.

At the moment I use "maximum log size 20 MB" and "clear log and start over".
Problem: After start over the log is empty. And that just happens 5 minutes before I need the infos.
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

You can set the log to change every day (or month) and have no limit. All data of one day will be stored in a single log file.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

>I'd like to have a log file that contains all entries of the last 72 Hours. Automatically trimmed. Is that possible ?

Its very bad for performance. In this case HostMonitor will need to rewrite whole log file every time new record added (after 72 hours).

>Alternativ a "maximum log size" with "rollover-option" would help.

Possible solution: maintain log till "maximum log size" and then cut log to half of its size (keep most recent records of course).
I have added this task into to do list.

Regards
Alex
JuergenF
Posts: 331
Joined: Sun Jan 26, 2003 6:00 pm
Location: Germany, North Rhine-Westphalia

Post by JuergenF »

Alex wrote:
Possible solution: maintain log till "maximum log size" and then cut log to half of its size (keep most recent records of course).
I have added this task into to do list.
Thank you. That will be a good solution for me.

Other possibility:
"Automatically change the name every day"
and a new option: Keep x days (to automatically trim the number of files)

Juergen
HiQDevil
Posts: 20
Joined: Tue May 06, 2003 6:00 pm

Post by HiQDevil »

The solution to create a new every day is fine, but is it possible to have an auto delete funktion.
For example: delete the log files after 30 days.
It looks like the only chance to have this funktion is to use a batch file, or is there a way with HM?

Regards

Claas
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

>It looks like the only chance to have this funktion is to use a batch file, or is there a way with HM?

No, HostMonitor cannot do that. And I am not sure it will be implemented because HostMonitor knows about current log file only. During a month you may change log settings several times and use different names for log files and so on...

Regards
Alex
Post Reply