Author |
Message
|
skoesters |
Posted: Wed Dec 17, 2008 6:49 am Post subject: Log MQ Messages (possible?) |
|
|
Acolyte
Joined: 08 Jun 2008 Posts: 73
|
Hi,
i did not find anything in the "IBM Help" (maybe my search query was not optimal).
Is it possible to log the MQ Messages that a QMGR has received or send? If yes, how can i configure this?
Thanks for you help and sorry for my bad english.
Kind regards
Sebastian |
|
Back to top |
|
 |
Vitor |
Posted: Wed Dec 17, 2008 6:58 am Post subject: Re: Log MQ Messages (possible?) |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
skoesters wrote: |
Is it possible to log the MQ Messages that a QMGR has received or send? If yes, how can i configure this? |
There's not a setting for this. There's also very seldom a genuine need to do this except for a kind of management nervousness that thinks it might help. Questions to ask are:
What use will the logged messages be put to?
How long will they be kept for?
What process will delete obsolete logs?
You do have statistics and monitoring options within the queue manager, showing details of volume and message flow. This might meet your needs.
If you actually want to log each and every message flowing through the queue manager, options open to you include:
- Don't bother. Monitor the health of the queue manager instead.
- Purchase a toole like Cressida's ReQuest which can read the transaction logs. Do not attempt to write your own application which does this
- Put proper logging in the sending / receiving applications
- Have the sending / receiving applications use COD/COA messages
- Use something like a mirrorq exit on all the local queues (note that you can't monitor sent messages with this method, but must install it on all the receiving ends)
Other solutions are probably possible, but they probably suck as much as these do. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
skoesters |
Posted: Wed Dec 17, 2008 7:30 am Post subject: |
|
|
Acolyte
Joined: 08 Jun 2008 Posts: 73
|
thanks for your answer.
I will talk to our developers if they can implement something for more logging |
|
Back to top |
|
 |
zpat |
Posted: Wed Dec 17, 2008 8:25 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Another option is to use WMB (assuming you have it) to warehouse the messages to a database by routing the messages through a suitable message flow to achieve this.
Generally this is not required, providing the applications use persistent messages with proper syncpointing (ideally 2 phase commit) - they won't lose any. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Dec 17, 2008 8:53 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Another option, often discussed here, is to write SEND and RECEIVE channel exits that capture messages as they arrive/leave, and write them to tape or disk or whatever.
I'd suspect that there's an auditor lurking somewhere in the background, believing that this is a Soxley requirement. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Dec 17, 2008 8:57 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bruce2359 wrote: |
Another option, often discussed here, is to write SEND and RECEIVE channel exits that capture messages as they arrive/leave, and write them to tape or disk or whatever. |
That's even worse than mirrorq!
bruce2359 wrote: |
I'd suspect that there's an auditor lurking somewhere in the background, believing that this is a Soxley requirement. |
Or just wanting a lot of lovely but purposeless logs for Xmas. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Dec 17, 2008 10:24 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
That's even worse ... |
Yes, on the worse-o-meter. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Dec 17, 2008 12:26 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Nice new word Bruce. I know of Sarbannes Oxley or Sox. Soxley is a new one for me....  _________________ MQ & Broker admin |
|
Back to top |
|
 |
exerk |
Posted: Wed Dec 17, 2008 11:54 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Vitor wrote: |
Or just wanting a lot of lovely but purposeless logs for Xmas. |
 _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
Mehrdad |
Posted: Thu Dec 18, 2008 12:33 am Post subject: |
|
|
Master
Joined: 27 Feb 2004 Posts: 219 Location: Europe
|
Soxley was cute , noticed Exerk's signature extension as well
and thanks for that little Cressida plug too. |
|
Back to top |
|
 |
yogeshi12 |
Posted: Tue Feb 03, 2009 5:37 pm Post subject: I don't get the joke? |
|
|
Newbie
Joined: 03 Feb 2009 Posts: 4
|
I am eneeding to do the same thing and was planning to do exits and enters, is that not a good idea? |
|
Back to top |
|
 |
zpat |
Posted: Tue Feb 03, 2009 10:41 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Depends how long you want to keep the copies and where.
Consider message duplication (a very simple program or WMB flow can do this).
MQSoftware have Statwatch which copies the first 4k of messages.
There are other options. You could just use MQ linear logging and keep the log files. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Feb 04, 2009 1:21 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
zpat wrote: |
There are other options. You could just use MQ linear logging and keep the log files. |
And read them back how? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Feb 04, 2009 1:22 am Post subject: Re: I don't get the joke? |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
yogeshi12 wrote: |
I am eneeding to do the same thing and was planning to do exits and enters, is that not a good idea? |
a) Exits are never a good idea
b) See my options above. Doing this is seldom a good idea _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
exerk |
Posted: Wed Feb 04, 2009 1:24 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Vitor wrote: |
zpat wrote: |
There are other options. You could just use MQ linear logging and keep the log files. |
And read them back how? |
Don't Cressida make something that will do it? (plug for a mug? - only joking! ) _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
|