0

I use jelastic cloud. And I need have to clear logs manualy.

How can I make log rotation for nodes (especially apache and nginx).

verybadbug
  • 899
  • 1
  • 9
  • 16

2 Answers2

1

Log rotation should be configured and enabled by default on every type of Jelastic node.

If you are seeing issues with this or you want to adjust the log rotation details in some way, I recommend to contact your hosting provider's support team to check it.

Damien - Layershift
  • 1,508
  • 8
  • 15
  • Hosting provider said that I need to add crontab task for logrotate. But there are not cron folder in nginx node. – verybadbug Feb 04 '14 at 22:33
  • @verybadbug I don't think your user (running the cron) will have appropriate permissions for that. – Damien - Layershift Feb 05 '14 at 11:28
  • Checked this further, and by default the cron already exists (in cron.daily). There's also already logrotate.d/nginx config (for example) defined to rotate the log files. It's surprising that your hosting provider does not know about this! – Damien - Layershift Feb 05 '14 at 12:13
  • Ok.. I'll contact with my provider and ask about this. Thanks. – verybadbug Feb 07 '14 at 00:46
  • Yes.. Provider fully configure log rotation on environment. And later I ask for make changes in rotation (time of execution), that the provider also made. It remains to verify that old logs is removing. – verybadbug Feb 12 '14 at 23:12
1

You can to clear logs manually from your dashboard.

Unfortunately,in Jelastic logrotate configuration and editing is not available for users.

grg
  • 5,023
  • 3
  • 34
  • 50
leo
  • 346
  • 1
  • 7