Author |
Message
|
deep100 |
Posted: Mon Sep 17, 2012 9:09 am Post subject: change broker error logs path |
|
|
Newbie
Joined: 17 Sep 2012 Posts: 3
|
Is there way to change the location of broker error logs (syslogs) on unix? |
|
Back to top |
|
 |
Vitor |
Posted: Mon Sep 17, 2012 9:11 am Post subject: Re: change broker error logs path |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
deep100 wrote: |
Is there way to change the location of broker error logs (syslogs) on unix? |
The syslogs are a Unix construct. Speak to the sys admins for your box on what options they have available. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
NealM |
Posted: Mon Sep 17, 2012 9:44 am Post subject: |
|
|
 Master
Joined: 22 Feb 2011 Posts: 230 Location: NC or Utah (depends)
|
I have the steps for directing broker errors to a /var/mqsi/user.log file on a linux system, which may be the same for whatever unix system you are on. It involves logging in as root. I can post here if you think it might fill the bill. |
|
Back to top |
|
 |
deep100 |
Posted: Mon Sep 17, 2012 9:52 am Post subject: |
|
|
Newbie
Joined: 17 Sep 2012 Posts: 3
|
@NealM
I know how to redirect WebSphere Message Broker (mq) messages to a file ...but all that can be done before a broker is created.
Any way of doing it after the broker has been created? |
|
Back to top |
|
 |
NealM |
Posted: Mon Sep 17, 2012 10:01 am Post subject: |
|
|
 Master
Joined: 22 Feb 2011 Posts: 230 Location: NC or Utah (depends)
|
This procedure just involves restarting the syslog daemon after you set up the file and permissions, and update the syslog.conf file |
|
Back to top |
|
 |
deep100 |
Posted: Mon Sep 17, 2012 10:45 am Post subject: |
|
|
Newbie
Joined: 17 Sep 2012 Posts: 3
|
|
Back to top |
|
 |
NealM |
Posted: Mon Sep 17, 2012 10:57 am Post subject: |
|
|
 Master
Joined: 22 Feb 2011 Posts: 230 Location: NC or Utah (depends)
|
OK, here it is:
1.Log on as root.
2.Enter the following commands to create a file called user.log.
On Linux systems, enter the command:
touch /var/mqsi/user.log
chown root:mqbrkrs /var/mqsi/user.log
chmod 640 /var/mqsi/user.log
3.Add the following line to the /etc/syslog.conf file to redirect debug level messages to the file user.log:
On Linux, enter :
user.info\t/var/mqsi/user.log
where “\t” is the tab character.
4.Restart the syslog daemon.
On Linux, enter the command:
/etc/init.d/syslog restart
or
/etc/rc.d/init.d/syslog restart
for systems where rc.d is not a soft link
For other syslog options, see the documentation for your operating system. |
|
Back to top |
|
 |
|