E
E
eversset2020-10-05 21:48:51
syslog
eversset, 2020-10-05 21:48:51

54 GB syslog and 54 GB kern.log - all disk space eaten up - what to do?

Good, today I got an error that I have ".. 0 kb of free space"
fba533a2.jpg
Here are two "heroes of the occasion" syslog "and" kern.log ".
I looked on the Internet - there are programs that can open them, but since I have absolutely nothing will give (because I'm 0.01 in linux) then please help me how to fix
it.Ubuntu 16.04

I also read that you can somehow limit logging, but it was written
.. "that you can only do nightly or some other logging."
. . "You can only delete from root, but you can somehow overwrite"
.. "it was said more often about kern.log.1 - but everything is ok with it"

In theory, ROOT is.

Just tell me please what needs to be done to:
1. "clear these logs"
2. "if they are needed, then limit the sizes, maybe you can somehow make them rewritable (by the way, the OS is about 2 weeks no more) and there are already so many logs. functions have been removed".

And if possible, please write what you need to enter on the terminal.
Because the phrase

"You can do this from the command line:
sudo rm /var/log/kern.log"

will not give anything because I will not understand what to do next.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor, 2020-10-06
@exorka

Look in the direction of the term "log rotation" this time, and secondly, find out who is spamming you in the log just by examining the content, perhaps some program is in debug mode, etc. etc. ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question