Can I find logs cleared by user from director? if yes how?

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Can I find logs cleared by user from director? if yes how?

Post by priyadarshikunal »

Hi,

Can I find logs cleared by another user from director?

if yes how can i get that?


Regards,
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
AmeyJoshi14
Participant
Posts: 334
Joined: Fri Dec 01, 2006 5:17 am
Location: Texas

Post by AmeyJoshi14 »

I am not sure, that whether you can find the logs in Datastage Director.. :oops:
:!: But you can see the logs in unix.
Use following commands..
. $DSHOME/dsenv
dsjob -logsum -type INFO -max (number of logs you want to see) PROJECT_NAME JOB_NAME

Now inorder to get last 3 runs use this command
dsjob -logsum -type STARTED -max 6 PROJECT_NAME JOB_NAME
from that take the difference(from the first column) and use that number in above command. :wink:
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I suppose you could find that, yes, but not who cleared it. Use the standard 'DSGet' functions for the logs and search for 'Log cleared by user' as one of the events.
-craig

"You can never have too many knives" -- Logan Nine Fingers
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

chulett wrote:I suppose you could find that, yes, but not who cleared it. Use the standard 'DSGet' functions for the logs and search for 'Log cleared by user' as one of the events. ...
I tried using DSGetLogEntry(JobHandle, DSJ.LOGANY)

but I am getting a warning message

Cannot get log event with id '99'

and retrurn code is (-4)

I am unable to find why?
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

chulett wrote:I suppose you could find that, yes, but not who cleared it. Use the standard 'DSGet' functions for the logs and search for 'Log cleared by user' as one of the events. ...
I tried using DSGetLogEntry(JobHandle, DSJ.LOGANY)

but I am getting a warning message

Cannot get log event with id '99'

and retrurn code is (-4)

I am unable to find why?
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

-4 is BADVALUE, your syntax is wrong. DSJ.LOGANY is valid for DSGetNewestLogId, your function requires a specific EventId and pulls a single entry from the log.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I read the question differently. I understand that the question is whether it's possible to recover log events that have been cleared.

The answer to that question is NO.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ok... if the question is 'can I recover cleared log messages?' then as Ray notes, the answer is no. I read it as the OP wanted to identify which logs had been cleared, which is what I attempted to answer.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

We await clarification from priyadarshikunal.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply