cancel
Showing results for 
Search instead for 
Did you mean: 

worker.log

SOLVED
Level 3 Adventurer

worker.log

worker.log file it taking up close to 70gb on my pem server,  is there a way to clear out this file or limit it file size so it will overwrite its self

 

 

matt

Tags (1)
2 ACCEPTED SOLUTIONS

Accepted Solutions
EDB Team Member

Re: worker.log

Hi,

 

In present version there's no log rotation feature. You need to rely on some OS log rotation model to clear out the logs. 

 

You can try below one of the methods.

https://www.thegeekstuff.com/2010/07/logrotate-examples/

 

--Raghav

EDB Team Member

Re: worker.log

Hi Matt,

 

There is no direct way to clear the file or limit the file size. You can use below mentioned workaround's to roatate the PEM worker log.

 

 
For example.
 
cat /etc/logrotate.d/pem-7.3
 
 /var/log/pem/worker.log {
    su root 
    daily
    copytruncate
    rotate 7
    compress
}
 
2) You can compress the current file and it will be creating a new file.
 
Hope this helps you.
 
2 REPLIES
EDB Team Member

Re: worker.log

Hi,

 

In present version there's no log rotation feature. You need to rely on some OS log rotation model to clear out the logs. 

 

You can try below one of the methods.

https://www.thegeekstuff.com/2010/07/logrotate-examples/

 

--Raghav

EDB Team Member

Re: worker.log

Hi Matt,

 

There is no direct way to clear the file or limit the file size. You can use below mentioned workaround's to roatate the PEM worker log.

 

 
For example.
 
cat /etc/logrotate.d/pem-7.3
 
 /var/log/pem/worker.log {
    su root 
    daily
    copytruncate
    rotate 7
    compress
}
 
2) You can compress the current file and it will be creating a new file.
 
Hope this helps you.