worker.log

SOLVED
Highlighted
Silver 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

Archived Discussions


Effective March 31st, we will no longer engage on PostgresRocks.


How to engage with us further?


  • Thought Leadership: EDB Blogs

  • Tips and Tricks: Postgres Tutorials

  • Customer Support: Create a Case Please note: Only customers with an active EDB support subscription and support portal authorization can create support ticket

  • Engage on Stackoverflow While engaging on Stackoverflow tag the question with EDB or EnterpriseDB.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
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

View solution in original post

Highlighted
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.
 

View solution in original post

2 REPLIES 2
Highlighted
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

View solution in original post

Highlighted
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.
 

View solution in original post

© 2019 EnterpriseDB Corporation. All rights reserved.   |   Privacy Policy   |  Terms of Use   |   Trademarks