Author |
Message
|
skrv |
Posted: Wed Oct 28, 2015 10:24 am Post subject: Broker Syslog Daemon Configuration |
|
|
Centurion
Joined: 26 Oct 2012 Posts: 118
|
any one know the steps involved in setting up the syslog daemon for message broker on soalris platform? |
|
Back to top |
|
 |
skrv |
Posted: Wed Oct 28, 2015 10:36 am Post subject: |
|
|
Centurion
Joined: 26 Oct 2012 Posts: 118
|
I have below steps for a broker on Linux, where i do see /var/log/messages folder. But in Solaris i dont see /var/log/messages folder. So not sure what will the below step needs to be replaced with : authpriv.*Â /var/log/messages
· Log on as root
· touch /var/mqsi/syslog/syslog.user
· chown mqadmin:mqbrkrs /var/mqsi/syslog/syslog.user
· chmod 640 /var/mqsi/syslog/syslog.user
· Add the following line to the /etc/syslog.conf :
/etc/syslog.conf
# MQ Specific logging
# MQ Specific logging
user.debug /var/mqsi/syslog/syslog.user
authpriv.*Â /var/log/messages
· Restart the syslog daemon |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Oct 28, 2015 10:37 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
Vitor |
Posted: Wed Oct 28, 2015 10:41 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
skrv wrote: |
I have below steps for a broker on Linux, where i do see /var/log/messages folder. But in Solaris i dont see /var/log/messages folder. |
I think the Solaris equivalent is /var/adm/messages _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
skrv |
Posted: Wed Oct 28, 2015 10:48 am Post subject: |
|
|
Centurion
Joined: 26 Oct 2012 Posts: 118
|
thanks, I will try /var/adm/messages and see if it works.
can u explain below 2 steps?
user.debug /var/mqsi/syslog/syslog.user
authpriv.*Â /var/adm/messages
this will capture all broker related INFO/WARNINGS/ERRORS ?? |
|
Back to top |
|
 |
Vitor |
Posted: Wed Oct 28, 2015 11:32 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
skrv wrote: |
can u explain below 2 steps?
user.debug /var/mqsi/syslog/syslog.user
authpriv.*Â /var/adm/messages |
You should really ask your Solaris admin this but AFAIK the first line directs user messages of debug or higher (and broker emits messages as "user") to that log file. If there's anything else on the box that uses "user" it will capture those as well. The second line captures security errors to the named log file, adding weight to my belief that's the location of the OS syslog in Solaris.
skrv wrote: |
this will capture all broker related INFO/WARNINGS/ERRORS ?? |
As well as all messages from other software using the same config, and I would urge you to speak to the OS admin before making changes to syslog.conf, even if you have the root access to do so. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
skrv |
Posted: Wed Oct 28, 2015 11:45 am Post subject: |
|
|
Centurion
Joined: 26 Oct 2012 Posts: 118
|
so if my broker user ID is 'mqsi', do i need to replace user.debug with mqsi.debug? from below commind?
user.debug /var/mqsi/syslog/syslog.user |
|
Back to top |
|
 |
Vitor |
Posted: Wed Oct 28, 2015 11:55 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
skrv wrote: |
so if my broker user ID is 'mqsi', do i need to replace user.debug with mqsi.debug? from below commind?
user.debug /var/mqsi/syslog/syslog.user |
No.
The "user" literal is the facility broker uses - see here and here. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
skrv |
Posted: Wed Oct 28, 2015 11:57 am Post subject: |
|
|
Centurion
Joined: 26 Oct 2012 Posts: 118
|
|
Back to top |
|
 |
skrv |
Posted: Thu Oct 29, 2015 9:34 am Post subject: |
|
|
Centurion
Joined: 26 Oct 2012 Posts: 118
|
does below entry log all the INFO/WARNING/ERROR of broker activity to the broker log?
user.info /var/mqsi/syslog/syslog.user |
|
Back to top |
|
 |
skrv |
Posted: Thu Oct 29, 2015 9:36 am Post subject: |
|
|
Centurion
Joined: 26 Oct 2012 Posts: 118
|
user.debug /var/mqsi/syslog/syslog.user
user.debug is not logging anything to the broker log |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 29, 2015 9:58 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Speak to your Solaris sys prog. Which I recommended you do first. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
skrv |
Posted: Thu Oct 29, 2015 9:59 am Post subject: |
|
|
Centurion
Joined: 26 Oct 2012 Posts: 118
|
yeah, it seems he also doesnt know much, so i was basically helping him.... |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 29, 2015 10:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Then repost your question on a Solaris forum.
If the syslog daemon isn't outputting anything then it's a problem with the daemon.
It's of course possible broker isn't sending anything to the log, but I discount that possibility. You should at least see start up and shut down info messages.
You could try testing it with *.info and see if that catches anything. If that doesn't work either the daemon is definitely hosed. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
skrv |
Posted: Thu Oct 29, 2015 10:06 am Post subject: |
|
|
Centurion
Joined: 26 Oct 2012 Posts: 118
|
ok let me try below before posting anything to solaris forum
*.info /var/mqsi/syslog/syslo.user |
|
Back to top |
|
 |
|