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 » Dynamic file name in TRACE NODE ?

Post new topic  Reply to topic
 Dynamic file name in TRACE NODE ? « View previous topic :: View next topic » 
Author Message
Adrian Jaravete
PostPosted: Thu Mar 20, 2008 12:15 am    Post subject: Dynamic file name in TRACE NODE ? Reply with quote

Newbie

Joined: 19 Mar 2008
Posts: 2

Hi,
I am using a trace node to log incoming messages in a file.
The trace mode is configurated with destination=file and a full file path is supplied, such as C:\BROKER\LOGS\DAILY_PROGRAM.txt.
The message flow is running daily so all the messages are appended into the same file.
Question is how to dynamically produce different log files, for example I need daily basis?
Or how to obtain the trace file for last message flow execution ?

The "File path" parameter of Trace Node cannot use variables as ${CURRENT_DATE} to obtain different file names.
Some ideas?
Thank You.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Mar 20, 2008 3:32 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Mods - please move this to Message Broker forum.

Adrian - you can't do this, I believe, even in 6.1.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Mar 20, 2008 3:40 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Moved to WMB
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Mar 20, 2008 3:48 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

What you need is a script to rename DAILY_PROGRAM.txt to DAILY_PROGRAM_<today's date>.txt

Or use a more flexible method to capture whatever the trace node is intended to capture.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Sun Mar 23, 2008 8:19 pm    Post subject: Re: Dynamic file name in TRACE NODE ? Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Adrian Jaravete wrote:
Hi,
I am using a trace node to log incoming messages in a file.
The trace mode is configurated with destination=file and a full file path is supplied, such as C:\BROKER\LOGS\DAILY_PROGRAM.txt.
The message flow is running daily so all the messages are appended into the same file.
Question is how to dynamically produce different log files, for example I need daily basis?
Or how to obtain the trace file for last message flow execution ?

The "File path" parameter of Trace Node cannot use variables as ${CURRENT_DATE} to obtain different file names.
Some ideas?
Thank You.


hmmmmm....
how about changing broker.xml n doing fresh deployments daily.....

or esle go by as vitor has said....
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Sun Mar 23, 2008 11:13 pm    Post subject: Re: Dynamic file name in TRACE NODE ? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

AkankshA wrote:
hmmmmm....
how about changing broker.xml n doing fresh deployments daily.....


Which could of course be automated through Ant or similar...

Very large sledgehammer to crack very small nut. I stand by my original assertion that whatever you're trying to capture (presumably audit information) can be captured in other ways.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Dynamic file name in TRACE NODE ?
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.