Page 1 of 1
command to stop logs generation in UNIX server?
Posted: Sun Aug 24, 2008 3:15 am
by dashamukhi
Hi,
When we run a job, logs will be generated can view in Director.
My requirement is I don't want these logs to be generted in backend in Unix server. Please give me the command in UNIX to stop logs generation in UNIX server.
Thanks in advance,
Posted: Sun Aug 24, 2008 3:43 am
by ArndW
There is no command, either UNIX or from within DataStage, to prevent log files from being generated.
PX Jobs allow certain log entries to be suppressed, you can check out "message handlers" in the documentation to see how to do this.
Posted: Sun Aug 24, 2008 8:01 am
by chulett
Why the 'requirement'? What problem are you facing, if any?
Thanks
Posted: Mon Aug 25, 2008 1:18 am
by dashamukhi
Thanks arnd,
I will try with this. But it suppresses the logs. But i don't want any logs to be created at all. Any way thanks for the immediate response.
Posted: Mon Aug 25, 2008 1:21 am
by ray.wurlod
You will never prevent the logs from being created. Jobs won't run unless the log (a database table in the local Repository) can be opened for writing. And some entries just can't be suppressed. Let me ask again why you wish to do this.
logs in Unix server
Posted: Mon Aug 25, 2008 4:46 am
by dashamukhi
Thanks Ray,
I will mark this as Resolved now.
logs in Unix server
Posted: Mon Aug 25, 2008 4:52 am
by dashamukhi
Dear Ray,
Can we clear the logs atleast for some limited runs to save the space on server?
Can anyone give me the UNIX command for this?
Thanks in advance
Posted: Mon Aug 25, 2008 5:11 am
by ray.wurlod
There is no UNIX command. Job logs are database tables.
Purging a job log involves not only deleting records from the table but also updating a number of control records.
Set auto-purge defaults for the project using the Administrator client, you can override these defaults for particular jobs.
Posted: Mon Aug 25, 2008 7:26 am
by chulett
Set the Auto Purge that suits each job - X number of runs or X number of days. Do this from the Director. As noted, the Administrator can set the defaults for the Project but that only affects jobs created after the default is in place.