You can clear an individual stats log as follows from your terminal window:
- Change directory to your stats directory (which is typically located in the /path/to/openam/var directory (AM 7 and later) or the /path/to/openAM directory (Pre-AM 7)).
- Enter the following command: $ cat /dev/null >[filename]replacing [filename] with the name of the stats log file you want to clear.
You can clear all stats logs in the stats directory as follows:
- Enter the following command in your terminal window: $ for file in /path/to/stats/*; do > $file; done to empty all the stats log files in the stats directory.
You could also create an alias to run this command to make it easy to re-use. For example, enter the following command:$ alias flushamstats='for file in /path/to/stats/*; do > $file; done'
and then just enter the following command to run it at any time:$ flushamstats