Page 1 of 1

Clearing log file from Unix

Posted: Wed Jan 05, 2005 1:03 am
by vinodlakshmanan
How can I clear the log file from Unix? This is because the size of the file has become huge and takes a lot of time to open in director. Alternatively, can I get to know the RT_LOGnn file corrsp to a job so that I can clear it from administrator.

Clearing log file from Unix

Posted: Wed Jan 05, 2005 5:01 am
by Sunshine2323
Hi!

SELECT * FROM DS_JOBS; To get the job id.-----executed from the Administrator


TO DELETE LOG FILES:

CLEAR.FILE RT_LOGxxx; where xxx is the job id.-----executed from the Administrator

Hope this helps, :)

Also u can do a search on the same. You will get plenty of material to read.

Posted: Wed Jan 05, 2005 7:39 am
by chulett
Biggest thing to realise is that when you do this to a log file - the CLEAR.FILE clears everything from the log. Not just the log entries but the control records as well, so you'd lose any Auto-Purge settings you may have had and would need to reestablish those after doing so.

Posted: Wed Jan 05, 2005 3:47 pm
by ray.wurlod
You do not need to have the log view open in Director to clear a job's log file. You can clear the log with the job selected in status view. Of course it still takes a while, because it is a selective deletion, but you don't have to wear the overhead of opening log view.
:idea: