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 » WebSphere Message Broker (ACE) Support » Customization of activity logs in message broker

Post new topic  Reply to topic
 Customization of activity logs in message broker « View previous topic :: View next topic » 
Author Message
16legal
PostPosted: Thu Jun 13, 2013 4:28 am    Post subject: Customization of activity logs in message broker Reply with quote

Novice

Joined: 05 Jun 2013
Posts: 21

Can activity logs of message broker be customized to capture incoming message fields ? There are defaults fields that are captured ie MessageNo,severity,timestamp etc..Can i modify this list to capture fields of incoming message?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Jun 13, 2013 4:35 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

You can capture and log any data you want, including all or parts of any payload.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fbj55070_.htm

You must store customized fields in a custom table. You can tie back through foreign key reference to the off-the-shelf table.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
16legal
PostPosted: Thu Jun 13, 2013 5:55 am    Post subject: Reply with quote

Novice

Joined: 05 Jun 2013
Posts: 21

How do i add a column to add keydata to the already defined columns ?Here is a sample activity log with predefined tags

MessageNumber,Severity,Timestamp,ThreadID,FormattedMessage,Tags,Inserts
11504,I,"2013-06-13 10:53:03.000383",9512,,"MSGFLOW=com.test.TestFlow,NODE=IN,NODETYPE=INPUT,",IN,com.test.TestFlow,

Here i want to add a user defined tag say 'KeyData' to capture the incoming message field .How to go about it ?

[/img]
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Jun 13, 2013 6:03 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Code:
    INSERT INTO Database.WMB_HST ( ID, MSG_ID, ASSIGNED_DATE,  RECORD_STATE, KEYDATA, CREATE_DATE, CREATE_USER )
        VALUES( Environment.Variables.XMLNSC.{ReplyId}.HST_sequence.NextVal,
                ReplyId,
                Root.XMLNSC.AssignedDate,
                'INFLIGHT',
                Root.XMLNSC.KeyData,
                CURRENT_GMTTIMESTAMP,
                'wmbuser' );
           


lancelotlinc wrote:
You can capture and log any data you want, including all or parts of any payload. You must store customized fields in a custom table. You can tie back through foreign key reference to the off-the-shelf table.

_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER


Last edited by lancelotlinc on Thu Jun 13, 2013 6:06 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Thu Jun 13, 2013 6:06 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

It's a shame that that DB statement has nothing to do with the Activity Log shown by MB Explorer.

I don't believe there's any way to reconfigure the Activity Log viewer in MB Explorer to display a different set of information.

That doesn't mean that other things can't be used to capture and display the same, or additional, data.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Jun 13, 2013 6:07 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

mqjeff wrote:
It's a shame that that DB statement has nothing to do with the Activity Log shown by MB Explorer.

I don't believe there's any way to reconfigure the Activity Log viewer in MB Explorer to display a different set of information.

That doesn't mean that other things can't be used to capture and display the same, or additional, data.


I don't know why it is a shame as the statement directly supports the chain of conversation in this thread.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Thu Jun 13, 2013 6:11 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

lancelotlinc wrote:
I don't know why it is a shame as the statement directly supports the chain of conversation in this thread.

So you can cite a documentation link that indicates that the Activity Log viewer in MB Explorer can read from a database table?

Or that the Activity Log configurable service can write to a database table?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Jun 13, 2013 6:18 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

mqjeff wrote:
lancelotlinc wrote:
I don't know why it is a shame as the statement directly supports the chain of conversation in this thread.

So you can cite a documentation link that indicates that the Activity Log viewer in MB Explorer can read from a database table?

Or that the Activity Log configurable service can write to a database table?


The OP did not say he wanted to use the the Activity Log viewer to view the custom data and I did not say that custom data would be available in the off-the-shelf user interface.

The OP's question is:

Quote:
Can activity logs of message broker be customized to capture incoming message fields


My answer is:

Yes,

Quote:
You can capture and log any data you want, including all or parts of any payload. You must store customized fields in a custom table. You can tie back through foreign key reference to the off-the-shelf table.



To your point, mqjeff, no, the product's off-the-shelf data store and off-the-shelf Activity Log viewer is not designed to be expandable by the end-user.

: RFE :
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Thu Jun 13, 2013 6:19 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

lancelotlinc wrote:
To your point, mqjeff, no, the product's off-the-shelf data store and off-the-shelf Activity Log viewer is not designed to be expandable by the end-user.


Which is a shame.

However, as you say, the data is easily consumable by anything and thus any reasonable viewer tool can be used to consume the existing data and enhance it with additional data from any relevant source.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Jun 13, 2013 6:31 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

mqjeff wrote:
lancelotlinc wrote:
To your point, mqjeff, no, the product's off-the-shelf data store and off-the-shelf Activity Log viewer is not designed to be expandable by the end-user.


Which is a shame.

However, as you say, the data is easily consumable by anything and thus any reasonable viewer tool can be used to consume the existing data and enhance it with additional data from any relevant source.


What I like about Eclipse in general, and WMB toolkit in particular (also the MB Explorer), is that adding some light-hearted plug-in to display this information is a relatively trivial effort and could be accomplished to the greater good of the user community.

I use Log Viewer for Eclipse just about every day when reviewing ESQL code for places that need adjustment. The Eclipse Log Viewer is a non blocking IO stream reader that can tail any number of files and eclipse consoles. It allows you to syntax color the log files with either a regular expression or a word match.

http://marketplace.eclipse.org/content/logviewer#.UbnXwfnVA1I

One could use this Log Viewer for Eclipse to tail a log file that has detail information created by a command sent into the Broker runtime through a TCPIPInput node from a cURL script piped from an XML file stored in your toolkit workspace. I do it all the time to dump relevant Global Cache info for particular messages.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Thu Jun 13, 2013 6:39 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Maybe you should give the talk on MQExplorer for power users...

Yes, Eclipse is a nice platform for doing lots of fun things.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Jun 13, 2013 6:54 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

mqjeff wrote:
Maybe you should give the talk on MQExplorer for power users...

Yes, Eclipse is a nice platform for doing lots of fun things.


I'm sorry I will miss your presentation. Will it be recorded?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
16legal
PostPosted: Thu Jun 13, 2013 9:52 am    Post subject: Reply with quote

Novice

Joined: 05 Jun 2013
Posts: 21

Even I don't believe that there's any way to reconfigure the Activity Log viewer in MB Explorer to display a different set of information.All i intended to do is to reconfigure the activitylog file generated at runtime in UTF-8 format through configurable services.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jun 13, 2013 10:21 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

16legal wrote:
Even I don't believe that there's any way to reconfigure the Activity Log viewer in MB Explorer to display a different set of information.All i intended to do is to reconfigure the activitylog file generated at runtime in UTF-8 format through configurable services.


Again, that's not possible. The information gathered is not user-customizable.

There's nothing that prevents you from augmenting that information with information you store yourself, and using some method of producing a unified view of the two sets of information....
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Customization of activity logs in message broker
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.