[Howto] Clear InterWorx log files

Hi guys,

I am new here first post.

Now i show how to clear all log files with safe. This just clear log files (null) not delete it. DO NOT delete the log files under /var/logs/ or you could get errors.

And now free 10+GB for me… Useful!

Here is the code :slight_smile:

cat /dev/null > /var/log/messages
cat /dev/null > /var/log/openwebmail.log
cat /dev/null > /var/log/maillog
cat /dev/null > /var/log/secure
cat /dev/null > /var/log/httpd/error_log
cat /dev/null > /var/log/httpd/ssl_error_log
cat /dev/null > /var/log/httpd/ssl_request_log
cat /dev/null > /var/log/httpd/ssl_access_log
cat /dev/null > /var/log/httpd/access_log
cat /dev/null > /var/log/btmp
cat /dev/null > /var/log/cron
cat /dev/null > /var/log/lastlog
cat /dev/null > /var/log/mysqld.log
cat /dev/null > /var/log/yum.log
cat /dev/null > /var/log/proftpd/auth.log
cat /dev/null > /var/log/proftpd/tls.log
cat /dev/null > /var/log/proftpd/xfer.log
cat /dev/null > /var/log/boot.log
cat /dev/null > /var/log/bfd_log
cat /dev/null > /var/log/apf_log
cat /dev/null > /var/log/wtmp

Hi zwreitiger

Welcome to IW forums and thanks for your post.

You can set the log file rotation etc from nodeworx server settings, system I think from memory, and it will keep them to a smaller size\history. Similarly you can set the depth of files, ie debugging, information only etc or you can just turn off logging.

I hope this helps and I’m sorry if I’m wrong.

Many thanks

John

Thanks that’s amazing :slight_smile:

Ah John with these:
Keep Daily Transfer Logs:
Keep Daily Error Logs: