Tuesday, 18 September 2012

Types Of Logs

Logs
IBM MQ has two types of logs
  1. Transaction Logs
  2. Error Logs
Transaction Logs
Transactions like messages inbound, outbound, objects creation, deletion, permission etc.are going to be written to the transaction logs for every QueueManager.
  • Default Path For Log Files On Windows
C:\Program Files\IBM\WebSphere MQ\log\QMGR(QM1)\active\

  1. S0000000.log
  2. S0000001.log
  3. S0000002.log
  • Default Path For Log Files On Linux/Solaris/AIX/Unix
$ /var/mqm/log/QMGR(QM1)/active/

  1. S0000000.log
  2. S0000001.log
  3. S0000002.log

  • Types Of Transaction Logs
Primary Logs
LogPrimaryFiles=3|2-254 (Windows)|2-510 (UNIX systems)
The log files allocated when the queue manager is created.

The minimum number of primary log files you can have is 2 and the maximum is 254 on Windows, or 510 on UNIX systems. The default is 3.



The total number of primary and secondary log files must not exceed 255 on Windows, or 511 on UNIX systems, and must not be less than 3.
The value is examined when the queue manager is created or started. You can change it after the queue manager has been created. However, a change in the value is not effective until the queue manager is restarted, and the effect might not be immediate.
Secondary Logs

LogSecondaryFiles=2|1-253 (Windows)|1-509 (UNIX systems)
The log files allocated when the primary files are exhausted.
The minimum number of secondary log files is 1 and the maximum is 253 on Windows, or 509 on UNIX systems. The default number is 2.



The total number of primary and secondary log files must not exceed 255 on Windows, or 511 on UNIX systems, and must not be less than 3.
The value is examined when the queue manager is started. You can change this value, but changes do not become effective until the queue manager is restarted, and even then the effect might not be immediate.

Log File Size Detail Table 

OS        Min File Size                Default File Size               Max File Size

Win     128 KB (32 Pages)   16 MB (4096 Pages)    256 MB (65535 Pages)
Linux   256 KB (64 Pages)  16 MB  (4096 Pages)    2 GB (65535*8(pages))

Error Logs
The operations going on(running) on MQ series will be written to errorlogs. 
MQSeries have 2 types of error logs
  1. MQ Level Error Logs
The operations or errors which are occurring on MQSeries are considered as MQSeries level errors.

Default Path Of MQ Level Error logs on windows
C:\program files\IBM\Websphere mq\errors\ 
  1. AMQERRO1.log
  2. AMQERRO2.log
  3. AMQERRO3.log
Default Path Of MQ Level Error Logs On Linux,AIX

$/var/mqm/errors/
  1. AMQERRO1.log
  2. AMQERRO2.log
  3. AMQERRO3.log
Note: each file size is 256KB

QueueManager Level Error Logs
The operations and errors happening at QueueManager are written to the QueueManager error logs

Default Path Of QMGR Level Error logs on windows

C:\Program Files\IBM\WebSphere MQ\Qmgrs\QMGR(QM1)\errors\

Default Path Of QMGR Level Error Logs On Linux,AIX

$/var/mqm/Qmgrs/QMGR(QM1)/errors

MORE


No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Best Regards,
MADHU K
IBM MQ Certified Professional
HYDERABAD
+917893751171/+919964371404
mailme.mq@gmail.com
trainingontech.com
http://www.ibmmqadmin-madhu.blogspot.in