Clear logs and / or quick logs

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
rustyhill
Posts: 10
Joined: Wed Nov 17, 2004 9:51 am
Location: London

Clear logs and / or quick logs

Post by rustyhill »

I'm probably being stupid but I can't figure out how to clear the quick logs which shows up under each test in the main window.

I want to do this as we are now putting HMon into a Production environment and would like to trash the older 'test' results.

I've created a script to reset the tests which seems OK but it doesn't clear the old logs.

What am I missing? - with thanks,

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

Post by KS-Soft »

HostMonitor removes old records when it adds new log records.
If you want to remove log records right away, you may export test settings in to text file (menu File -> Export into text file), set "ImportMode = Replace" option (just insert such line on begining of text file) then import test settings using menu File -> Import from text file.
=================
ImportMode = Add
in this mode HostMonitor adds new tests to the list; prompts for confirmation when the test with specified name already exists within the list (in any folder). This mode is used by default as it conforms with the behavior of previous versions of HostMonitor (version 4.30 or earlier);

ImportMode = Modify
in this mode application adds new test if the test with specified name doesn't exist in the folder. Otherwise, HostMonitor replaces the test settings by those provided in the imported file. Statistical information (dead ratio, alive ratio, etc) is kept intact;

ImportMode = Replace
adds new test if the test with provided name doesn't exist in the specified folder. Otherwise, HostMonitor replaces the test settings with the settings that are specified in the imported file and resets all statistical information (similar to the effect of complete removing of an old test and then creating the new one instead.
=================

Regards
Alex
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

Post by xcentric »

I had a need to do this but it didnt work for me.

It does reset all statistics and recurrences but the quick log data remains. Where is the quick log data stored? The hml file right?

Do I need to import into a new hml file to get rid of quick log data?

Also, if I have a large folder structure that needs to be recreated in the new hml file. Is there an easier way to import the folders without adding a CreateFolder param for every folder in the test import file? This seems like a lot of work.

What am I missing?

Or does any of this really matter since the quick log is short and old entries will drop off when new ones are created.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

It does reset all statistics and recurrences but the quick log data remains. Where is the quick log data stored? The hml file right?
Yes, its stored in HML file.
Why do you need to remove quick log records? They do not effect your statistics.
Also, if I have a large folder structure that needs to be recreated in the new hml file. Is there an easier way to import the folders without adding a CreateFolder param for every folder in the test import file? This seems like a lot of work.
I think you may copy HML file and then just remove all test items. Pretty easy.
Or does any of this really matter since the quick log is short and old entries will drop off when new ones are created.
Quick Log stores just 10 records for each test.

Regards
Alex
Post Reply