Purging logs

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
pavankvk
Participant
Posts: 202
Joined: Thu Dec 04, 2003 7:54 am

Purging logs

Post by pavankvk »

Hi

i was wondering if there is any way to configure datastage to purge logs when the history of logs exceeds say the last 3 runs for a job. i know that there is a auto purge,but this only has the latest run in the log. i would like to know if we can configure the number of runs to keep the log info.

Or

can we automate the purging of jobs instead of manually selecting each and every log and clearing it?
velagapudi_k
Premium Member
Premium Member
Posts: 142
Joined: Mon Jun 27, 2005 5:31 pm
Location: Atlanta GA

Post by velagapudi_k »

yes you can configure. Go to Director.
Job--> ClearLog
Select Auto Purge in the Clear log window. It gives two options.
1)UpTo Previous (Job Runs)
2)Older Than (Days).

Select Option 1 then enter the number of runs you want to keep.
Venkat Velagapudi
pavankvk
Participant
Posts: 202
Joined: Thu Dec 04, 2003 7:54 am

Post by pavankvk »

velagapudi_k wrote:yes you can configure. Go to Director.
Job--> ClearLog
Select Auto Purge in the Clear log window. It gives two options.
1)UpTo Previous (Job Runs)
2)Older Than (Days).


Select Option 1 then enter the number of runs you want to keep.
sorry. i was supposed to be more explicit. can we configure this at project level rather than setting it for each job?
pavankvk
Participant
Posts: 202
Joined: Thu Dec 04, 2003 7:54 am

Post by pavankvk »

velagapudi_k wrote:yes you can configure. Go to Director.
Job--> ClearLog
Select Auto Purge in the Clear log window. It gives two options.
1)UpTo Previous (Job Runs)
2)Older Than (Days).

Select Option 1 then enter the number of runs you want to keep.
i got it..this thread can be marked resolved
velagapudi_k
Premium Member
Premium Member
Posts: 142
Joined: Mon Jun 27, 2005 5:31 pm
Location: Atlanta GA

Post by velagapudi_k »

Yes provided you have Admin rights. You should be able to do it by logging to DS Administrator. I guess you will net be having Admin rights so talk to your DSAdmin.
Venkat Velagapudi
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

Yes. You can. Go to DS Administrator, select your project and click on the "Properties" button. In first tab "General", you can specify the purge settings you want.

Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
velagapudi_k
Premium Member
Premium Member
Posts: 142
Joined: Mon Jun 27, 2005 5:31 pm
Location: Atlanta GA

Post by velagapudi_k »

Then mark it resolve. Only the OP or the site Admin can mark the topic 'Resolve.
Venkat Velagapudi
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I_Server_Whale wrote:Yes. You can. Go to DS Administrator, select your project and click on the "Properties" button. In first tab "General", you can specify the purge settings you want.
Both of you making this suggestion fail to note that it is only applied to new jobs created after the 'global' change. It doesn't automagically change it for any of the existing jobs.

For that you'd need the utilities that Ken Bland and Troup have already written or roll your own.
-craig

"You can never have too many knives" -- Logan Nine Fingers
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

chulett wrote:It doesn't automagically change it for any of the existing jobs.
Argghhh!!!! I'm :evil: at myself. You are absolutely right Craig.
pavankvk, I hope you read this post again in case you are thinking about auto-purge settings of old/existing jobs.

Many thanks Craig!!!
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
velagapudi_k
Premium Member
Premium Member
Posts: 142
Joined: Mon Jun 27, 2005 5:31 pm
Location: Atlanta GA

Post by velagapudi_k »

Thanks Craig. I didnt know that till today. Hope the OP reads your post.
Venkat Velagapudi
Post Reply