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 IndexWebSphere Message Broker (ACE) Supportchange broker error logs path

Post new topicReply to topic
change broker error logs path View previous topic :: View next topic
Author Message
deep100
PostPosted: Mon Sep 17, 2012 9:09 am Post subject: change broker error logs path Reply with quote

Newbie

Joined: 17 Sep 2012
Posts: 3

Is there way to change the location of broker error logs (syslogs) on unix?
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Sep 17, 2012 9:11 am Post subject: Re: change broker error logs path Reply with quote

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
View user's profile Send private message
NealM
PostPosted: Mon Sep 17, 2012 9:44 am Post subject: Reply with quote

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
View user's profile Send private message
deep100
PostPosted: Mon Sep 17, 2012 9:52 am Post subject: Reply with quote

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
View user's profile Send private message
NealM
PostPosted: Mon Sep 17, 2012 10:01 am Post subject: Reply with quote

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
View user's profile Send private message
deep100
PostPosted: Mon Sep 17, 2012 10:45 am Post subject: Reply with quote

Newbie

Joined: 17 Sep 2012
Posts: 3

ok. Thanks.
Back to top
View user's profile Send private message
NealM
PostPosted: Mon Sep 17, 2012 10:57 am Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) Supportchange broker error logs path
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.