Nico
Nico

Reputation: 83

EC2 runs out of storage, which logs etc. can be deleted?

I am having a problem with an EC2 which uses nearly all of the 8GB of storage. I regularly delete log files from the server and files which get created by cronjobs in the users folder (can I turn this off?), but in the past there is always less space after deleting all the files. So somewhere else the EC2 creates files, but I don't know where.

Does anybody know where I can look for unused files automatically created by the Amazon Linux AMI or apache?

Thanks!

Upvotes: 7

Views: 9895

Answers (2)

Zekarias Taye Hirpo
Zekarias Taye Hirpo

Reputation: 849

You can clear all log files from your ec2 Ubuntu instance using this command

sudo rm -rf /opt/bitnami/apache2/logs/

Upvotes: 0

platforms
platforms

Reputation: 2726

Look in /var/log, and for Apache they will likely be in /var/log/httpd. I also suggest that you look into logrotate.

Upvotes: 2

Related Questions