Start a conversation

How to use VFSMGR to manage HTTP log files

When HTTP logging is enabled in SOAPam Server, log files can accumulate over time and if not proactively managed, can eventually consume all space in the VFS. In version 2.4.1 of SOAPam Server, a feature was introduced in the VFSMGR utility that can help manage these log files. The VFSMGR -logclean option can be used to archive and/or purge the HTTP log files based on age. The utility can be used periodically to cleanup logs or be scheduled as part of automated system maintenance procedures. The syntax for the logclean option is:

-logclean  < copy | move | purge > [ dry-run ]

Copies, moves, or purges HTTP log files in the VFS folder /logs/http that are days old or older. If 'copy' is specified, the logs are copied to the specified subvol. If 'move' is specified, the logs are copied to the specified subvol and then purged from the VFS. If 'purge' is specifed, the logs are purged from the VFS. Note that if any logs are purged, a VFS 'clean' operation is performed. If 'dry-run' is specified, command operation is simulated, i.e., command output is displayed but no actual copy, move, or purge operations are performed.

Examples

Copy logs more than 7 days old to subvol $DATA.HTTPLOGS and delete them from the VFS:

tacl>run vfsmgr -vfs $DATA.VFS -logclean 7 move $DATA.HTTPLOGS
Delete logs more than 30 days old:
tacl>run vfsmgr -vfs $DATA.VFS -logclean 30 purge
Test the command to delete logs more than 14 days old:
tacl>run vfsmgr -vfs $DATA.VFS -logclean 14 purge dry-run

  More information about managing VFS disk space can be found in the article How to reduce the disk space used by the VFS files.
Choose files or drag and drop files
Was this article helpful?
Yes
No