You can use logrotate to keep your log files trimmed, and zipped. You can use this for any log, generated by any program.
You should also try to figure out the most repeated useless messages and work to solve them. If your logs are getting spammed so violently, there’s surely a process occupying the server more than it should, it is likely causing a performance problem also.
Okey but the problem if i delete this 2 log big log files i get the database error.
And i dont know why. Now i downloaiding them to see what files it, because this wasnt problem in the last one year when we used it.
Is there are any working solution to rebuild the mongodb?
Now i have got it work.I deleted the big databases, make a restart.
Mysql still not worked, and in the mysql log it say cant init tc.log.
So i deleted the /var/lib/mysql/tc.log and started mysql service now its working.