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 » IBM MQ Installation/Configuration Support » Log MQ Messages (possible?)

Post new topic  Reply to topic Goto page 1, 2  Next
 Log MQ Messages (possible?) « View previous topic :: View next topic » 
Author Message
skoesters
PostPosted: Wed Dec 17, 2008 6:49 am    Post subject: Log MQ Messages (possible?) Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Dec 17, 2008 6:58 am    Post subject: Re: Log MQ Messages (possible?) Reply with quote

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
View user's profile Send private message
skoesters
PostPosted: Wed Dec 17, 2008 7:30 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Wed Dec 17, 2008 8:25 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Wed Dec 17, 2008 8:53 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Dec 17, 2008 8:57 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Wed Dec 17, 2008 10:24 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Dec 17, 2008 12:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
exerk
PostPosted: Wed Dec 17, 2008 11:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mehrdad
PostPosted: Thu Dec 18, 2008 12:33 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
yogeshi12
PostPosted: Tue Feb 03, 2009 5:37 pm    Post subject: I don't get the joke? Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Tue Feb 03, 2009 10:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Feb 04, 2009 1:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Feb 04, 2009 1:22 am    Post subject: Re: I don't get the joke? Reply with quote

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
View user's profile Send private message
exerk
PostPosted: Wed Feb 04, 2009 1:24 am    Post subject: Reply with quote

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
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 » IBM MQ Installation/Configuration Support » Log MQ Messages (possible?)
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.