ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Changing log files directory.

Post new topic  Reply to topic Goto page 1, 2  Next
 Changing log files directory. « View previous topic :: View next topic » 
Author Message
eai143
PostPosted: Sun Dec 03, 2006 10:12 pm    Post subject: Changing log files directory. Reply with quote

Apprentice

Joined: 16 Aug 2006
Posts: 28

Hi,
I want to change the log files directory to some other location in the system. How to do it?


Thanks in advance
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 04, 2006 12:19 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

AFAIK the log path is fixed when the queue manager is created. So you need to save the queue manager settings & delete/redefine.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
sebastianhirt
PostPosted: Mon Dec 04, 2006 12:27 am    Post subject: Reply with quote

Yatiri

Joined: 07 Jun 2004
Posts: 620
Location: Germany

dunno whether this is supported, but one could stop the queue manager, change the the log path in qm.ini, move the files and restart the queue manager.

But, that's on your own risk, and I would strongly suggest to do a backup before, and try on test first.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 04, 2006 12:54 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sebastianhirt wrote:
dunno whether this is supported, but one could stop the queue manager, change the the log path in qm.ini, move the files and restart the queue manager.

But, that's on your own risk, and I would strongly suggest to do a backup before, and try on test first.


It's not supported, it may well work but your first mistake would probably be your last!

I try not to perpetuate potentially dubious dodges (no matter how useful) and preach the supported path of virtue.

Also on v6 I believe qm.ini has migrated into the Windows Registry, and editing that adds a whole new level of danger to the process.....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
eai143
PostPosted: Mon Dec 04, 2006 1:11 am    Post subject: Reply with quote

Apprentice

Joined: 16 Aug 2006
Posts: 28

Thanks for the reply.

Can I change the Queue managers and logs path in the registry.
Will be any problem, if I do so?

Thanks in advance.
Back to top
View user's profile Send private message
eai143
PostPosted: Mon Dec 04, 2006 1:17 am    Post subject: Reply with quote

Apprentice

Joined: 16 Aug 2006
Posts: 28

Iam workin on Windows and MB V5.

Thanks in advance
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 04, 2006 1:21 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

eai143 wrote:

Can I change the Queue managers and logs path in the registry.
Will be any problem, if I do so?


I would NEVER change any registry setting unless absolutely certain of what I was doing and had total confidence of the effects.

Or put simply, never. You can't have that level of confidence in the wretched software.

If you've got MBv5, which MQ are you running? Prior to v6 I believe that the qm.ini file exists and you could make the change sebastianhirt referred to.

I would still council the supported method. But that's just me.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
eai143
PostPosted: Mon Dec 04, 2006 1:37 am    Post subject: Reply with quote

Apprentice

Joined: 16 Aug 2006
Posts: 28

Iam workin on MQ V5.3.
I want ot change the MB and MQ logs location.
So,can I change in qm.ini file?

Thanks in Advance.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 04, 2006 1:46 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Again, yes but I wouldn't recommend it for MQ.

MB maintains it's logs separately so a change to qm.ini will not affect it. I don't believe there's an equivalent for qm.ini for MB; the logging is separate and works differently.

Check the product admin guides for detailed information.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
wschutz
PostPosted: Mon Dec 04, 2006 3:06 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

eai143 wrote:
I want ot change the MB and MQ logs location.
So,can I change in qm.ini file?
Are you referring to "recovery logs" or "human readable error logs"?
There are no "recovery logs" for broker ....
For MQ, you can't change the location of "human readable error logs", it's fixed.
For Broker, its controlled by syslog.conf ....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
tleichen
PostPosted: Mon Dec 04, 2006 7:49 am    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

At the risk of sounding nosey, is there a real good reason for ever wanting to do this? Just curious...
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 04, 2006 7:56 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

You might want to point the files to an area with more space, where the current position has a number of applications diminisishing free space.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 04, 2006 7:58 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

tleichen wrote:
At the risk of sounding nosey, is there a real good reason for ever wanting to do this? Just curious...


Or did you mean "why would you not use the supported method"?

I'm the wrong person to ask, but if you had your back to the wall space wise you might consider an edit.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
eai143
PostPosted: Mon Dec 04, 2006 9:57 pm    Post subject: Reply with quote

Apprentice

Joined: 16 Aug 2006
Posts: 28

Hi everybody,
I want to give permissions to one location where the users can read the logs.So I want to change the location of log files.

Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Dec 05, 2006 12:05 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

eai143 wrote:
I want to give permissions to one location where the users can read the logs.So I want to change the location of log files.


Why would anybody other than an MQ administrator want or need to view the logs??
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » Changing log files directory.
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.