Author |
Message
|
monkey |
Posted: Wed Feb 15, 2006 3:19 am Post subject: How can I change the AMQERR01.LOG file size? |
|
|
 Novice
Joined: 15 Feb 2006 Posts: 24 Location: London
|
I need to increase the size of the error logs from the default 256 MB, and also increase the number of files that are kept when they rotate to AMQERR02.LOG etc.
I can't seem to find any way to do this, I assumed it would be set in qm.ini but it isn't, and I can't find anything useful on the net relating to these files specifically.
I'm running 5.3 on Solaris.
Please help!
Thanks. |
|
Back to top |
|
 |
monkey |
Posted: Wed Feb 15, 2006 3:22 am Post subject: |
|
|
 Novice
Joined: 15 Feb 2006 Posts: 24 Location: London
|
oop, think I created this in the wrong forum, can an admin please move it into the support forum please?
Thanks |
|
Back to top |
|
 |
wschutz |
Posted: Wed Feb 15, 2006 3:27 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
|
Back to top |
|
 |
monkey |
Posted: Wed Feb 15, 2006 3:30 am Post subject: |
|
|
 Novice
Joined: 15 Feb 2006 Posts: 24 Location: London
|
Fantastic! I'll try that out.
Does anyone know how to change the number of files kept from the default of 3? |
|
Back to top |
|
 |
ramires |
Posted: Wed Feb 15, 2006 3:45 am Post subject: |
|
|
Knight
Joined: 24 Jun 2001 Posts: 523 Location: Portugal - Lisboa
|
|
Back to top |
|
 |
Vitor |
Posted: Wed Feb 15, 2006 3:47 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
There are 2 other parameters alongside LogFilePages. There are LogPrimaryFiles and LogSecondaryFiles. Primary files defaults to 3 & can be changed using the same techniques as log file size.
Check out the System Administration manual (or online equivalent) for details of possible system & performance implications. Don't forget to check the file system has enough space!  |
|
Back to top |
|
 |
wschutz |
Posted: Wed Feb 15, 2006 3:49 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Vitor wrote: |
There are 2 other parameters alongside LogFilePages. There are LogPrimaryFiles and LogSecondaryFiles. Primary files defaults to 3 & can be changed using the same techniques as log file size.
Check out the System Administration manual (or online equivalent) for details of possible system & performance implications. Don't forget to check the file system has enough space!  |
Those are for "transactional logging" done by the qmgr (ie /var/mqm/log ... files), not "error logging" (ie /var/mqm/qgmrs/xxx/errors ... files) _________________ -wayne |
|
Back to top |
|
 |
Vitor |
Posted: Wed Feb 15, 2006 3:56 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
wschutz wrote: |
Those are for "transactional logging" done by the qmgr (ie /var/mqm/log ... files), not "error logging" (ie /var/mqm/qgmrs/xxx/errors ... files) |
Oops!
Sorry monkey - you can't get the staff these days....  |
|
Back to top |
|
 |
ramires |
Posted: Wed Feb 15, 2006 4:01 am Post subject: |
|
|
Knight
Joined: 24 Jun 2001 Posts: 523 Location: Portugal - Lisboa
|
But... if you are using version 6, there are properties to control logs. They can be acessed under Websphere MQ Explorer -> <qmgr_name> -> Properties -> Extended.
You have there:
ErrorLogSize=maxsize
ExcludeMessages=msgIds
SuppressMessages=msgIds
I've not tried them. Look to MQSystem Administration Guide version 6 - chapter 9.
Regards. [/quote] |
|
Back to top |
|
 |
monkey |
Posted: Wed Feb 15, 2006 4:07 am Post subject: |
|
|
 Novice
Joined: 15 Feb 2006 Posts: 24 Location: London
|
Vitor wrote: |
wschutz wrote: |
Those are for "transactional logging" done by the qmgr (ie /var/mqm/log ... files), not "error logging" (ie /var/mqm/qgmrs/xxx/errors ... files) |
Oops!
Sorry monkey - you can't get the staff these days....  |
I wasn't sure whether you were right or not so I stayed quiet! |
|
Back to top |
|
 |
monkey |
Posted: Wed Feb 15, 2006 4:08 am Post subject: |
|
|
 Novice
Joined: 15 Feb 2006 Posts: 24 Location: London
|
Thanks for all your swift replies!
I'll try out MQMAXERRORLOGSIZE later.
Anyone know how to increase the number of files above the default of only 3? |
|
Back to top |
|
 |
markt |
Posted: Wed Feb 15, 2006 4:37 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
>> Anyone know how to increase the number of files above the default of only 3?
You can't. |
|
Back to top |
|
 |
monkey |
Posted: Wed Feb 15, 2006 5:32 am Post subject: |
|
|
 Novice
Joined: 15 Feb 2006 Posts: 24 Location: London
|
It works.
Just set it in the mqm user's profile and retart mq
job done.
Shame about not being able to increase the number of files, an odd restriction! Gonna have to come up with a cunning script! |
|
Back to top |
|
 |
EddieA |
Posted: Wed Feb 15, 2006 9:31 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
I guess that one question wasn't aksed. Why. What reason do you need for having more/bigger logs.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
monkey |
Posted: Thu Feb 16, 2006 12:42 am Post subject: |
|
|
 Novice
Joined: 15 Feb 2006 Posts: 24 Location: London
|
No need to make it a global encironment variable, no other users run mq processes, we don't use inetd. Thanks for the tip though.
The reason we need bigger logs is simply that we want logs to be around for longer. We have had in the past had some major problems which cause a lot of data to be written to the logs so by the time we get to the logs to find the initial error - they have rotated and the initial error is gone.
The increased size will just give us more time and information.
This combined with a script to copy AMQERR03.LOG to a datestamped file when it is changed should give us plenty of history on the box. (any suggestions for the script greatly appreciated!) And daily backups should then make sure we never lose the logs.
256 is pretty small for a log file, especially when I'm used to dealing with webserver logs which can be huge! Although I take your point, under normal conditiond MQ doesn't write a lot to these logs, it's never under normal conditions that we need to look at these logs. |
|
Back to top |
|
 |
|