Amazon S3 - Monitoring
To monitor an Amazon S3 file system and the local caches, censhare creates the FileSystemCache and S3FileSystemImpl log entries. The associated packet path is com.censhare.manager.filesystem.
Introduction
You can specify the degree of information that the log class provides. With the Logger Manager commands you can temporarily change the log level. If you need to have a certain log level on a permanent basis, you need to do this in the server.xml file.
To open the Logger Manager, click the Server actions button in the toolbar of the censhare Admin Client. A dialog opens showing a list of all active loggers, in addition to a bit of other information. The entries are sorted alphabetically. Go to the following entries:
com.censhare.manager.filesystem.FileSystemCache
com.censhare.manager.filesystem.S3FileSystemImpl
At the beginning of every entry, you see the log level for this class. Change the level to FINE in order to see all of the information in the log. For the changes to take effect, restart the censhare server.
censhare automatically creates the list with the ongoing loggers. You do not need to add your own entries. If a logger does not appear in the list, the system has not used the associated function up to this point.
If the Logger Manager server action is not available, you will need to activate it:
In the censhare Admin Client go to the folder "Configuration/Modules/Administration/Logger Manager".
Double click the entry and select the Enabled field in the section General setup.
Then click OK or exit the dialog with CANCEL.
The server.xml file can be found under:
~/cscs/app/config/server.$CSS_ID.xml
The variable $CSS_ID represents the name of the server, for example, master. In this case, the name of the file is "server.master.xml". "cscs" is the directory containing the customer-specific configuration files for a censhare Server installation.
Open the server.xml file in the editor and go to the section "<logging ...>". Here you find entries for the logger configurations. Add the following line:
<!-- File System Cache --> <logger name="com.censhare.manager.filesystem.FileSystemCache" level="FINE"/> <!-- S3 File System Implementation --> <logger name="com.censhare.manager.filesystem.S3FileSystemImpl" level="FINE"/>
The attribute name contains the packet path and the associated class names. The attribute level determines the log level for the referenced log class. You have to restart the server in order to activate the changed settings.