Set up the logger
A file or database logger is required to keep history and audit information about transfer activity for the configuration. In this example you create a file logger.
Before starting
We must have set up the:- Configuration queue manager
- Command queue manager
- Agent
Procedure
-
Issue the following command:
fteCreateLogger -loggerQMgr MFT5 -loggerType FILE -fileLoggerMode CIRCULAR -fileSize 5MB -fileCount 3 MFT5lgr1
After you run the fteCreateLogger command, the data\mqft\config\MFT5\loggers directory is crated, with an MFT5LGR1 subdirectory.
The MFT5LGR1 subdirectory holds the logger.properties file. Also in the directory is a file called MFT5LGR1_create.mqsc with IBM MQ definitions required by the logger.
- Change to the directory data\mqft\config\MFT5\loggers\MFT5LGR1.
-
Run the associated MQSC command file.
runmqsc MFT5 < MFT5_create.mqsc
to create the definitions required by the logger.- Review the results of the object definitions to confirm that the required objects have been created successfully.
- Start the logger by issuing the following command fteStartLogger MFT5LGR1.
-
Review the contents of file output0.log at
data\mqft\logs\MFT5\loggers\MFT5LGR1\logs.
After some information about the logger, the last statement should contain message:
BFGDB0023I: The logger has completed startup activities and is now
running.
Occasionally, log information might not be written to the output0.log the first time the logger starts. If the output0.log file is empty, restart the logger by typing fteStopLogger MFT5LGR1 and pressing the Enter key.
Restart the logger by typing fteStartLogger MFTULGR1 and pressing the Enter key. File output0.log now shows data.
The same behavior extends to the agent version of the output0.log file the first time an agent is started.
Stop and start the agent by using fteStopAgent and fteStartAgent commands. You then see log data written to the agent output0.log file.
Results
We have configured the base server, which includes the coordination queue manager for this configuration.
What to do next
You now do similar work for the partner server, which contains a remote agent.
Parent topic: Configure the base server