Score:0

/var/log/syslog and /var/log/syslog.1 running wild, please help!

al flag

I don't know what happened but a few days ago my main disk was clogged, when looking around for the culprit, I found out that /var/log directory was over 600Gb, then I discovered that it was /var/log/syslog file that was to blame. Looking around online for a solution, I came across this post on StackOverflow with someone with a similar situation.

https://stackoverflow.com/questions/35638219/ubuntu-large-syslog-and-kern-log-files

I followed the instructions in the first answer, I did steps one and two. The thing is, this is a question about a Ubuntu server creating too many logs and clogging the system, I'm just running the desktop Ubuntu 22.04 LTS.

Anyways, after doing steps 1 and 2, 2 days after, I was back at the beginning. /var/log directory was over 600Gb again. Now it is /var/log/syslog at 550Gb and /var/log/syslog.1 at 110Gb, so I did "> /var/log/syslog" and "> /var/log/syslog.1" so clean up the file.

So I looked online again for a new solution and came across this page where they talk about stopping and disabling logging.

https://stackoverflow.com/questions/17358499/how-to-disable-all-logs

I followed command line 1 and 2 of the best answer to stop and disable the logging.

12 hours later and I'm back at the beginning again.

I have not restarted the system, not sure if any of those steps require restarting the system for it to take effect.

Aside from browsing the web, the only other thing I do on this PC is play games on steam, I did buy a game (X-Plane 11) and installed it about 3 days ago when all this started happening, but I don't think Steam has root access to mess with logs.

I'm hopping someone has come across this problem and found a fix, if not, I'm planning on deleting syslog and syslog.1 files.

I have this message over and over again:

Oct 27 12:09:52 shadowhouse update-notifier-crash[69261]: [69261:69261:0100/000000.143030:ERROR:zygote_linux.cc(240)] Error reading message from browser: Socket operation on non-socket (88)

I suspect it might be a download i started 2-3 days ago,a grand canyon scenery patch for X-plane 11, I'm downloading it as a guest for free, so at the slowest speed. 56.1Gb out of 88.1Gb done, have about 2 days left. I remember when I first ran "> /var/log/syslog", it crashed the download, I restarted it and never happened again. –

uz flag
Jos
Your log files will be filled with millions of identical lines. Tell us what they are, so we can suppress those.
S2000fred avatar
al flag
I have this message over and over again: "Oct 27 12:09:52 shadowhouse update-notifier-crash[69261]: [69261:69261:0100/000000.143030:ERROR:zygote_linux.cc(240)] Error reading message from browser: Socket operation on non-socket (88)" Error from the Browser, I suspect it might be a download i started 2-3 days ago,a grand canyon scenery patch for X-plane 11, I'm downloading it as a guest for free, so at the slowest speed. 56.1Gb out of 88.1Gb done, have about 2 days left. I remember when I first ran "> /var/log/syslog", it crashed the download, I restarted it and never happened again.
uz flag
Jos
First of all, kill the process: `sudo kill 69261` (unless the process ID changes).
S2000fred avatar
al flag
That helped, it's been hours and syslog isn't bigger than 15Kb. Not sure what caused it to be logging hundreds of lines a second. About 4-6 months ago, the Brave browser received an update, if I tried to upload a file to a page or download a file, it would freeze the browser. I have two monitors with browsers on each side, it would only freeze on one side and not the other. I did receive a Brave Browser update through Ubuntu's Software Updater 4 days ago, I was able to start downloading stuff without the browser crashing which surprised me, maybe there are still bugs for Brave to iron out.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.