Purging logs
Moderators: chulett, rschirm, roy
Purging logs
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?
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?
-
- Premium Member
- Posts: 142
- Joined: Mon Jun 27, 2005 5:31 pm
- Location: Atlanta GA
sorry. i was supposed to be more explicit. can we configure this at project level rather than setting it for each job?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.
-
- Premium Member
- Posts: 142
- Joined: Mon Jun 27, 2005 5:31 pm
- Location: Atlanta GA
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
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.
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
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
-
- Premium Member
- Posts: 142
- Joined: Mon Jun 27, 2005 5:31 pm
- Location: Atlanta GA
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.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.
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
"You can never have too many knives" -- Logan Nine Fingers
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
Argghhh!!!! I'm at myself. You are absolutely right Craig.chulett wrote:It doesn't automagically change it for any of the existing jobs.
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
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
-
- Premium Member
- Posts: 142
- Joined: Mon Jun 27, 2005 5:31 pm
- Location: Atlanta GA