Installing the MFT stand-alone file logger
The stand-alone file logger is a Java process that must connect to a coordination queue manager using IBM MQ bindings. To define a stand-alone file logger use the fteCreateLogger command and follow the steps in this topic.
For more information about the stand-alone file logger, see Configure an MFT logger. The steps in this topic configure a logger to connect to a
coordination queue manager. For alternative logger configurations see Alternative configurations for an MFT stand-alone loggerThe stand-alone file logger is not
supported on the following platforms:
- z/OS
- IBM i
Procedure
- Ensure that we have the Managed File Transfer Logger component installed. For more information, see Managed File Transfer product options
- Run the fteCreateLogger command specifying the coordination queue manager, and setting the parameter -loggerType to FILE to create your stand-alone file logger. For more information, see fteCreateLogger.
- Optional: To use a custom format then we can modify the XML file created by the fteCreateLogger command. The log format definition is located in the FileLoggerFormat.xml file. For more information, see MFT stand-alone file logger format.
- Run the MQSC commands, provided by the fteCreateLogger command, against your coordination queue manager to create the logger queues.
- Identify a user to run the logger process and configure permissions for that user. For more information, see Configure user access for an MFT stand-alone file logger.
- Optional: We can configure the stand-alone file logger further by editing the logger.properties file created when you ran the fteCreateLogger command. This file is a Java properties file that consists of key-value pairs. The logger.properties file is in the MQ_DATA_PATH/mqft/config/coordination_qmgr_name/loggers/logger_name directory. For more information about available properties and their affects, see MFT logger configuration properties.
- Optional: If we are using a Windows system, we can run the stand-alone file logger as a Windows service. Run the fteModifyLogger command with the -s parameter. For more information, see fteModifyLogger.
-
Start the stand-alone file logger with the fteStartLogger command. For more
information, see fteStartLogger.
If you carried out the previous step and used the fteModifyLogger command with the -s parameter on Windows, the stand-alone file logger starts as a Windows service.
- Check the logger output. The stand-alone file logger generates two types of output, file transfer audit data and logger diagnostic data. The file transfer audit data can be found in MQ_DATA_PATH/mqft/logs/coordination_qmgr_name/loggers/logger_name/logs. The logger diagnostic data can be found in MQ_DATA_PATH/mqft/logs/coordination_qmgr_name/loggers/logger_name
- We can stop the logger by using the fteStopLogger command. For more information, see fteStopLogger.
Results
- MFT stand-alone file logger format
The format of message information written by the file logger can be defined in the FileLoggerFormat.xml file. - Configure user access for an MFT stand-alone file logger
In a test environment, we can add any new privileges needed to your normal user account. In a production environment, we are recommended to create a new user with the minimum permissions required to do the job.
Parent topic: Configure an MFT logger
Related tasks
Related reference
Related information
- MFT logger configuration properties
- fteStartLogger
- fteCreateLogger
- fteModifyLogger
- fteStopLogger
- Authorities for the MFT logger